kernel: ptrace() incorrect error handling leads to corruption and DoS
Published May 24, 2018
7.8
HIGHCVSS 3.0
EPSS 1.21%
Description
The Linux Kernel version 3.18 contains a dangerous feature vulnerability in modify_user_hw_breakpoint() that can result in crash and possibly memory corruption. This attack appear to be exploitable via local code execution and the ability to use ptrace. This vulnerability appears to have been fixed in git commit f67b15037a7a50c57f72e69a6d59941ad90a0f0f.
Affected products
No data.
Configuration 1
- 7.0
- 8.0
- 9.0
Configuration 2
- 3.18
Configuration 3
- 12.04
- 14.04
- 16.04
- 17.10
Configuration 4
- 7.0
- 7.2
- 7.3
- 7.4
- 7.5
- 7.0
- 7.0
- 7.2
- 7.3
- 7.4
- 7.3
- 7.4
- 7.5
- 7.2
- 7.0
No data.
Red Hat Enterprise Linux 7
kernel-0:3.10.0-862.2.3.el7
Fixed · RHSA-2018:1318
Red Hat Enterprise Linux 7
kernel-alt-0:4.14.0-49.2.2.el7a
Fixed · RHSA-2018:1374
Red Hat Enterprise Linux 7
kernel-rt-0:3.10.0-862.2.3.rt56.806.el7
Fixed · RHSA-2018:1355
Red Hat Enterprise Linux 7.2 Advanced Update Support
kernel-0:3.10.0-327.66.3.el7
Fixed · RHSA-2018:1347
Red Hat Enterprise Linux 7.2 Telco Extended Update Support
kernel-0:3.10.0-327.66.3.el7
Fixed · RHSA-2018:1347
Red Hat Enterprise Linux 7.2 Update Services for SAP Solutions
kernel-0:3.10.0-327.66.3.el7
Fixed · RHSA-2018:1347
Red Hat Enterprise Linux 7.3 Extended Update Support
kernel-0:3.10.0-514.48.3.el7
Fixed · RHSA-2018:1348
Red Hat Enterprise Linux 7.4 Extended Update Support
kernel-0:3.10.0-693.25.4.el7
Fixed · RHSA-2018:1345
Red Hat Enterprise MRG 2
kernel-rt-1:3.10.0-693.25.4.rt56.613.el6rt
Fixed · RHSA-2018:1354
Red Hat Enterprise Linux 5
kernel
Not affected
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 8
kernel
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | kernel-0:3.10.0-862.2.3.el7 | Fixed | RHSA-2018:1318 |
| Red Hat Enterprise Linux 7 | kernel-alt-0:4.14.0-49.2.2.el7a | Fixed | RHSA-2018:1374 |
| Red Hat Enterprise Linux 7 | kernel-rt-0:3.10.0-862.2.3.rt56.806.el7 | Fixed | RHSA-2018:1355 |
| Red Hat Enterprise Linux 7.2 Advanced Update Support | kernel-0:3.10.0-327.66.3.el7 | Fixed | RHSA-2018:1347 |
| Red Hat Enterprise Linux 7.2 Telco Extended Update Support | kernel-0:3.10.0-327.66.3.el7 | Fixed | RHSA-2018:1347 |
| Red Hat Enterprise Linux 7.2 Update Services for SAP Solutions | kernel-0:3.10.0-327.66.3.el7 | Fixed | RHSA-2018:1347 |
| Red Hat Enterprise Linux 7.3 Extended Update Support | kernel-0:3.10.0-514.48.3.el7 | Fixed | RHSA-2018:1348 |
| Red Hat Enterprise Linux 7.4 Extended Update Support | kernel-0:3.10.0-693.25.4.el7 | Fixed | RHSA-2018:1345 |
| Red Hat Enterprise MRG 2 | kernel-rt-1:3.10.0-693.25.4.rt56.613.el6rt | Fixed | RHSA-2018:1354 |
| Red Hat Enterprise Linux 5 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue does not affect the versions of Linux kernel as shipped with Red Hat Enterprise Linux 5 and Red Hat Enterprise Linux 6. This issue affects the version of the kernel package as shipped with Red Hat Enterprise Linux 7 and Red Hat Enterprise MRG 2. Future kernel updates for Red Hat Enterprise Linux 7 and Red Hat Enterprise MRG 2 may address this issue.
Red Hat mitigation
To mitigate this issue: 1) Save the following script in a 'CVE-2018-1000199.stp' file. --- probe kernel.function("ptrace_set_debugreg") { if ($n < 4) $n = 4; /* set invalid debug register #, returns -EIO */ } probe begin { printk(0, "CVE-2018-1000199 mitigation loaded") } probe end { printk(0, "CVE-2018-1000199 mitigation unloaded") } --- 2) Install systemtap package and its dependencies # yum install -y systemtap systemtap-runtime # yum install -y kernel-devel kernel-debuginfo kernel-debuginfo-common 3) Build the mitigation kernel module as root. # stap -r `uname -r` -m cve_2018_1000199.ko -g CVE-2018-1000199.stp -p4 4) Load the mitigation module as root # staprun -L cve_2018_1000199.ko
References (19)
- http://lists.opensuse.org/opensuse-security-announce/2020-06/msg00022.html vendor-advisoryx_refsource_SUSE
- http://www.securitytracker.com/id/1040806 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2018:1318 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:1345 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:1347 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:1348 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:1354 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:1355 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:1374 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2018-1000199 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1568477 Issue Tracking
- https://lists.debian.org/debian-lts-announce/2018/05/msg00000.html mailing-listx_refsource_MLISTThird Party Advisory
- https://lkml.org/lkml/2018/4/6/813 mailing-listx_refsource_MLISTMailing ListPatchThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-1000199
- https://usn.ubuntu.com/3641-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/3641-2/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-1000199
- https://www.debian.org/security/2018/dsa-4187 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- https://www.debian.org/security/2018/dsa-4188 vendor-advisoryx_refsource_DEBIANThird Party Advisory
Change history (0)
No recorded changes yet.