CVE Database›Document archive›CVE-2018-1000199

CVE-2018-1000199

kernel: ptrace() incorrect error handling leads to corruption and DoS

Loading…

Severity

Important

Red Hat Product Security

7.8

CVSS 3.0

Review impact separately from score.

Published · May 1, 2018

Updated · June 28, 2026

Description

An address corruption flaw was discovered in the Linux kernel built with hardware breakpoint (CONFIG_HAVE_HW_BREAKPOINT) support. While modifying a h/w breakpoint via 'modify_user_hw_breakpoint' routine, an unprivileged user/process could use this flaw to crash the system kernel resulting in DoS OR to potentially escalate privileges on a the system.

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.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

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") }

  1. Install systemtap package and its dependencies

    yum install -y systemtap systemtap-runtime

    yum install -y kernel-devel kernel-debuginfo kernel-debuginfo-common

  2. Build the mitigation kernel module as root.

    stap -r uname -r -m cve_2018_1000199.ko -g CVE-2018-1000199.stp -p4

  3. Load the mitigation module as root

    staprun -L cve_2018_1000199.ko

CVSS / CWE

CVSS 3.0 · 7.8
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

CWE-460 · Improper Cleanup on Thrown Exception