kernel: Race condition access to n_hdlc.tbuf causes double free in n_hdlc_release()
Published Mar 7, 2017
7.0
HIGHCVSS 3.1
EPSS 1.02%
Description
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.
Affected products
No data.
Configuration 1
- ≥ 2.6.31 · < 3.2.87
- ≥ 3.3 · < 3.10.106
- ≥ 3.11 · < 3.12.72
- ≥ 3.13 · < 3.16.42
- ≥ 3.17 · < 3.18.49
- ≥ 3.19 · < 4.1.49
- ≥ 4.2 · < 4.4.54
- ≥ 4.5 · < 4.9.15
- ≥ 4.10 · < 4.10.3
Configuration 2
- 8.0
No data.
Red Hat Enterprise Linux 6
kernel-0:2.6.32-696.1.1.el6
Fixed · RHSA-2017:0892
Red Hat Enterprise Linux 6.2 Advanced Update Support
kernel-0:2.6.32-220.71.1.el6
Fixed · RHSA-2017:1126
Red Hat Enterprise Linux 6.4 Advanced Update Support
kernel-0:2.6.32-358.78.1.el6
Fixed · RHSA-2017:0986
Red Hat Enterprise Linux 6.5 Advanced Update Support
kernel-0:2.6.32-431.80.1.el6
Fixed · RHSA-2017:1232
Red Hat Enterprise Linux 6.5 Telco Extended Update Support
kernel-0:2.6.32-431.80.1.el6
Fixed · RHSA-2017:1232
Red Hat Enterprise Linux 6.6 Advanced Update Support
kernel-0:2.6.32-504.60.2.el6
Fixed · RHSA-2017:1488
Red Hat Enterprise Linux 6.6 Telco Extended Update Support
kernel-0:2.6.32-504.60.2.el6
Fixed · RHSA-2017:1488
Red Hat Enterprise Linux 6.7 Extended Update Support
kernel-0:2.6.32-573.42.1.el6
Fixed · RHSA-2017:1233
Red Hat Enterprise Linux 7
kernel-0:3.10.0-514.16.1.el7
Fixed · RHSA-2017:0933
Red Hat Enterprise Linux 7
kernel-rt-0:3.10.0-514.16.1.rt56.437.el7
Fixed · RHSA-2017:0931
Red Hat Enterprise Linux 7.2 Extended Update Support
kernel-0:3.10.0-327.53.1.el7
Fixed · RHSA-2017:1125
Red Hat Enterprise MRG 2
kernel-rt-1:3.10.0-514.rt56.219.el6rt
Fixed · RHSA-2017:0932
Red Hat Enterprise Linux 5
kernel
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | kernel-0:2.6.32-696.1.1.el6 | Fixed | RHSA-2017:0892 |
| Red Hat Enterprise Linux 6.2 Advanced Update Support | kernel-0:2.6.32-220.71.1.el6 | Fixed | RHSA-2017:1126 |
| Red Hat Enterprise Linux 6.4 Advanced Update Support | kernel-0:2.6.32-358.78.1.el6 | Fixed | RHSA-2017:0986 |
| Red Hat Enterprise Linux 6.5 Advanced Update Support | kernel-0:2.6.32-431.80.1.el6 | Fixed | RHSA-2017:1232 |
| Red Hat Enterprise Linux 6.5 Telco Extended Update Support | kernel-0:2.6.32-431.80.1.el6 | Fixed | RHSA-2017:1232 |
| Red Hat Enterprise Linux 6.6 Advanced Update Support | kernel-0:2.6.32-504.60.2.el6 | Fixed | RHSA-2017:1488 |
| Red Hat Enterprise Linux 6.6 Telco Extended Update Support | kernel-0:2.6.32-504.60.2.el6 | Fixed | RHSA-2017:1488 |
| Red Hat Enterprise Linux 6.7 Extended Update Support | kernel-0:2.6.32-573.42.1.el6 | Fixed | RHSA-2017:1233 |
| Red Hat Enterprise Linux 7 | kernel-0:3.10.0-514.16.1.el7 | Fixed | RHSA-2017:0933 |
| Red Hat Enterprise Linux 7 | kernel-rt-0:3.10.0-514.16.1.rt56.437.el7 | Fixed | RHSA-2017:0931 |
| Red Hat Enterprise Linux 7.2 Extended Update Support | kernel-0:3.10.0-327.53.1.el7 | Fixed | RHSA-2017:1125 |
| Red Hat Enterprise MRG 2 | kernel-rt-1:3.10.0-514.rt56.219.el6rt | Fixed | RHSA-2017:0932 |
| Red Hat Enterprise Linux 5 | kernel | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat 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 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.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
AV:L/AC:M/Au:N/C:C/I:C/A:C
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (14 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.02% (0.01021) | 62.10th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.03% (0.01029) | 59.06th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.46% (0.00457) | 61.88th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.04% (0.00044) | 11.89th | v3 (v2023.03.01) |
| Jul 2, 2024 | 0.04% (0.00044) | 10.25th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.04% (0.00044) | 8.24th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.55% (0.01547) | 74.98th | v2 (v2022.01.01) |
| Feb 23, 2023 | 1.55% (0.01547) | 74.94th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.55% (0.01547) | 72.92th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.55% (0.01547) | 51.82th | v2 (v2022.01.01) |
| Feb 3, 2022 | 2.33% (0.02331) | 53.76th | v1 |
| Jan 6, 2022 | 2.33% (0.02331) | 53.30th | v1 |
| Sep 1, 2021 | 2.33% (0.02331) | 78.26th | v1 |
| Apr 14, 2021 | 2.33% (0.02331) | 0.00th | v1 |
References (20)
- http://www.debian.org/security/2017/dsa-3804 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- http://www.openwall.com/lists/oss-security/2017/03/07/6 mailing-listx_refsource_MLISTMailing ListPatchThird Party Advisory
- http://www.securityfocus.com/bid/96732 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1037963 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- https://a13xp0p0v.github.io/2017/03/24/CVE-2017-2636.html x_refsource_MISCThird Party Advisory
- https://access.redhat.com/errata/RHSA-2017:0892 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2017:0931 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2017:0932 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2017:0933 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2017:0986 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2017:1125 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2017:1126 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2017:1232 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2017:1233 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2017:1488 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2017-2636 Vendor Advisory
- https://access.redhat.com/security/vulnerabilities/CVE-2017-2636
- https://bugzilla.redhat.com/show_bug.cgi?id=1428319 x_refsource_CONFIRMIssue TrackingMitigationThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-2636
- https://www.cve.org/CVERecord?id=CVE-2017-2636
Change history (0)
No recorded changes yet.