cve.bz

CVE-2017-2636 Race Condition

7.0 highEPSS 1.0%Fix available

High (7.0). EPSS 1.0% estimated probability of exploitation activity in the next 30 days.

On this page
Race condition in drivers/tty/n_hdlc.c in the Linux kernel through 4.10.1 allows local users to gain privileges or cause a denial of service (double free) by setting the HDLC line discipline.

Severity

CVSS 3.1

7.0 high
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 65th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
CWE-415 Double Free
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2017-2636 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-2636?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-2636?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2017-2636 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelfrom 2.6.31 before 3.2.87
linux:linux_kernelfrom 3.3 before 3.10.106
linux:linux_kernelfrom 3.11 before 3.12.72
linux:linux_kernelfrom 3.13 before 3.16.42
linux:linux_kernelfrom 3.17 before 3.18.49
linux:linux_kernelfrom 3.19 before 4.1.49
linux:linux_kernelfrom 4.2 before 4.4.54
linux:linux_kernelfrom 4.5 before 4.9.15
linux:linux_kernelfrom 4.10 before 4.10.3
debian:debian_linux8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian7linux3.2.86-1DLA-849-1
Debian8linux3.16.39-1+deb8u2DSA-3804-1
Debian12, 13, 14linux4.9.16-1DEBIAN-CVE-2017-2636
Ubuntu14.04:LTSlinux3.13.0-112.159UBUNTU-CVE-2017-2636 USN-3219-1
Ubuntu14.04:LTSlinux-lts-xenial4.4.0-66.87~14.04.1UBUNTU-CVE-2017-2636 USN-3220-2
Ubuntu16.04:LTSlinux4.4.0-66.87UBUNTU-CVE-2017-2636 USN-3220-1
Ubuntu16.04:LTSlinux-aws4.4.0-1007.16UBUNTU-CVE-2017-2636 USN-3220-3
Ubuntu16.04:LTSlinux-gke4.4.0-1005.6UBUNTU-CVE-2017-2636 USN-3220-1
Ubuntu16.04:LTSlinux-hwe4.8.0-41.44~16.04.1UBUNTU-CVE-2017-2636 USN-3221-2
Ubuntu16.04:LTSlinux-raspi24.4.0-1046.53UBUNTU-CVE-2017-2636 USN-3220-1
Ubuntu16.04:LTSlinux-snapdragon4.4.0-1050.54UBUNTU-CVE-2017-2636 USN-3220-1
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::workstationperf, kernel, kernel-doc and 13 more0:2.6.32-696.1.1.el6RHSA-2017:0892
Red Hatenterprise_linux:6::serverperf, kernel, kernel-doc and 19 more0:2.6.32-696.1.1.el6RHSA-2017:0892
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::workstationperf, kernel, kernel-doc and 15 more0:3.10.0-514.16.1.el7RHSA-2017:0933
Red Hatenterprise_linux:7::serverperf, kernel, kernel-doc and 22 more0:3.10.0-514.16.1.el7RHSA-2017:0933
Red Hatenterprise_mrg:2:server:el6kernel-rt, kernel-rt-doc, kernel-rt-debug and 12 more1:3.10.0-514.rt56.219.el6rtRHSA-2017:0932
Red Hatrhel_aus:6.4::serverperf, kernel, kernel-doc and 11 more0:2.6.32-358.78.1.el6RHSA-2017:0986
Red Hatrhel_aus:6.5::server, rhel_tus:6.5::serverperf, kernel, kernel-doc and 12 more0:2.6.32-431.80.1.el6RHSA-2017:1232
Red Hatrhel_aus:6.6::server, rhel_tus:6.6::serverperf, kernel, kernel-doc and 12 more0:2.6.32-504.60.2.el6RHSA-2017:1488
Red Hatrhel_eus:6.7::computenodeperf, kernel, kernel-doc and 13 more0:2.6.32-573.42.1.el6RHSA-2017:1233
Red Hatrhel_eus:6.7::serverperf, kernel, kernel-doc and 19 more0:2.6.32-573.42.1.el6RHSA-2017:1233
Red Hatrhel_eus:7.2::computenodeperf, kernel, kernel-doc and 15 more0:3.10.0-327.53.1.el7RHSA-2017:1125
Red Hatrhel_eus:7.2::serverperf, kernel, kernel-doc and 22 more0:3.10.0-327.53.1.el7RHSA-2017:1125
2 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Desktop 12 SP1, Linux Enterprise Server 12 SP1, Linux Enterprise Server for SAP Applications 12 SP1kernel-xen, kernel-syms, kernel-source and 1 more3.12.69-60.64.35.1SUSE-SU-2017:0865-1
SUSELinux Enterprise Desktop 12 SP2, Linux Enterprise Server 12 SP2, Linux Enterprise Server for Raspberry Pi 12 SP2 and 1 morekernel-syms, kernel-source, kernel-default4.4.49-92.14.1SUSE-SU-2017:0864-1
SUSELinux Enterprise High Availability Extension 12 SP2, Linux Enterprise Workstation Extension 12 SP2kernel-default4.4.49-92.14.1SUSE-SU-2017:0864-1
SUSELinux Enterprise Live Patching 12kgraft-patch-SLE12-SP1_Update_141-2.1SUSE-SU-2017:0865-1
SUSELinux Enterprise Live Patching 12kgraft-patch-SLE12-SP2_Update_08-18.7.1SUSE-SU-2017:2062-1
SUSELinux Enterprise Live Patching 12kgraft-patch-SLE12-SP2_Update_18-2.1SUSE-SU-2017:2067-1
SUSELinux Enterprise Live Patching 12kgraft-patch-SLE12-SP2_Update_27-2.1SUSE-SU-2017:2068-1
SUSELinux Enterprise Live Patching 12kgraft-patch-SLE12-SP2_Update_37-2.1SUSE-SU-2017:2043-1
SUSELinux Enterprise Live Patching 12kgraft-patch-SLE12-SP2_Update_47-2.1SUSE-SU-2017:2065-1
SUSELinux Enterprise Live Patching 12kgraft-patch-SLE12-SP2_Update_55-2.1SUSE-SU-2017:2063-1
SUSELinux Enterprise Live Patching 12kgraft-patch-SLE12-SP2_Update_61-2.1SUSE-SU-2017:0864-1
SUSELinux Enterprise Module for Public Cloud 12kernel-ec23.12.61-52.69.2SUSE-SU-2017:0866-1
28 more for SUSE in the JSON and on SUSE's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue does not affect the Linux kernel packages as shipped with Red Hat Enterprise Linux 5.

This issue does affect the Linux kernel packages as shipped with Red Hat Enterprise Linux 6, 7 and Red Hat Enterprise MRG 2. As this issue is rated as Important, it has been scheduled to be fixed in future updates for the respective releases.

Red Hat's mitigation

The n_hdlc kernel module will be automatically loaded when an application attempts to use the HDLC line discipline from userspace. This module can be prevented from being loaded by using the system-wide modprobe rules. The following command, run as root, will prevent accidental or intentional loading of the module. Red Hat Product Security believe this method is a robust method to prevent accidental loading of the module, even by privileged users.

​# echo "install n_hdlc /bin/true" >> /etc/modprobe.d/disable-n_hdlc.conf

The system will need to be restarted if the n_hdlc modules are already loaded. In most circumstances, the n_hdlc kernel modules will be unable to be unloaded if in use and while any current process using this line discipline is required.

Exploiting this flaw does not require Microgate or SyncLink hardware to be in use.

If further assistance is needed, see this KCS article ( https://access.redhat.com/solutions/41278 ) or contact Red Hat Global Support Services.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6kernel-0:2.6.32-696.1.1.el6Fixed 2017-04-11RHSA-2017:0892
Red Hat Enterprise Linux 6.2 Advanced Update Supportkernel-0:2.6.32-220.71.1.el6Fixed 2017-04-25RHSA-2017:1126
Red Hat Enterprise Linux 6.4 Advanced Update Supportkernel-0:2.6.32-358.78.1.el6Fixed 2017-04-18RHSA-2017:0986
Red Hat Enterprise Linux 6.5 Advanced Update Supportkernel-0:2.6.32-431.80.1.el6Fixed 2017-05-16RHSA-2017:1232
Red Hat Enterprise Linux 6.5 Telco Extended Update Supportkernel-0:2.6.32-431.80.1.el6Fixed 2017-05-16RHSA-2017:1232
Red Hat Enterprise Linux 6.6 Advanced Update Supportkernel-0:2.6.32-504.60.2.el6Fixed 2017-06-19RHSA-2017:1488
Red Hat Enterprise Linux 6.6 Telco Extended Update Supportkernel-0:2.6.32-504.60.2.el6Fixed 2017-06-19RHSA-2017:1488
Red Hat Enterprise Linux 6.7 Extended Update Supportkernel-0:2.6.32-573.42.1.el6Fixed 2017-05-16RHSA-2017:1233
Red Hat Enterprise Linux 7kernel-rt-0:3.10.0-514.16.1.rt56.437.el7Fixed 2017-04-12RHSA-2017:0931
Red Hat Enterprise Linux 7kernel-0:3.10.0-514.16.1.el7Fixed 2017-04-12RHSA-2017:0933
Red Hat Enterprise Linux 7.2 Extended Update Supportkernel-0:3.10.0-327.53.1.el7Fixed 2017-04-25RHSA-2017:1125
Red Hat Enterprise MRG 2kernel-rt-1:3.10.0-514.rt56.219.el6rtFixed 2017-04-12RHSA-2017:0932
Red Hat Enterprise Linux 5kernelNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2017-2636.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

  • OYMMYO/n_hdlc-cve-2017-2636 0 stars, C, created
    리눅스 4.11-rc1 n_hdlc 드라이버의 레이스 컨디션으로 만든 더블 프리를 통한 권한 상승 (원커맨드)익스플로잇

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON