ZeroHour

CVE-2019-13272

KEV PoC ×5mass

Local Privilege Escalation to Root in Linux Kernel ptrace (pkexec PTRACE_TRACEME)

CISA: Linux Kernel Improper Privilege Management Vulnerability

CVSS 3.1
7.8 high
EPSS
52%p99
Published
()
KEV added
AI analysis

CVE-2019-13272 is an improper privilege management flaw in the Linux kernel's ptrace_link function (kernel/ptrace.c), present in kernels before 5.1.17, in which the credentials of a process requesting a ptrace relationship are mishandled. A local attacker triggers it by stepping into a parent-child process chain where a privileged parent drops privileges and calls execve, typically by abusing Polkit's pkexec helper with PTRACE_TRACEME; contributing factors include an object lifetime issue and incorrect marking of the ptrace relationship as privileged. Successful exploitation grants the attacker full root-level privileges on the host, and the object lifetime bug can in some cases cause a system panic. Any Linux system running an unpatched kernel is affected, spanning the upstream kernel and distributions such as Debian, Fedora, Ubuntu, Red Hat Enterprise Linux and its variants, as well as NetApp AFF A700s firmware. The flaw is in CISA's Known Exploited Vulnerabilities catalog (added 2021-12-10), has multiple public proof-of-concept exploits, and carries a high exploitation probability (EPSS ~52%), so defenders should treat it as an active exploitation risk.

What to do: Upgrade the Linux kernel to 5.1.17 or later, or install the backported kernel update from your distribution (Debian, Ubuntu, Fedora, Red Hat) and NetApp's fixed firmware for AFF A700s, per CISA's required action to apply vendor updates. Where patching is delayed, SELinux with deny_ptrace may serve as a usable mitigation in some environments. Prioritize hosts that expose local shells to untrusted users and that have Polkit's pkexec installed, and verify the running kernel version (not just the installed package) on each system.

Affected
Linux (upstream) Linux kernelbefore 5.1.17
Debian Linuxkernels predating the vendor's backported fix (upstream fix in 5.1.17)
Fedora Project Fedorakernels predating the vendor's backported fix (upstream fix in 5.1.17)
Canonical Ubuntu Linuxkernels predating the vendor's backported fix (upstream fix in 5.1.17)
Red Hat Enterprise Linuxkernels predating the vendor's backported fix (upstream fix in 5.1.17)
Red Hat Enterprise Linux for ARM 64kernels predating the vendor's backported fix (upstream fix in 5.1.17)
Red Hat Enterprise Linux for IBM Z Systemskernels predating the vendor's backported fix (upstream fix in 5.1.17)
Red Hat Enterprise Linux for Real Timekernels predating the vendor's backported fix (upstream fix in 5.1.17)
Red Hat Enterprise Linux for Real Time for NFVkernels predating the vendor's backported fix (upstream fix in 5.1.17)
Red Hat Enterprise Linux for Real Time for NFV TUSkernels predating the vendor's backported fix (upstream fix in 5.1.17)
Red Hat Enterprise Linux for Real Time TUSkernels predating the vendor's backported fix (upstream fix in 5.1.17)
NetApp AFF A700s firmware
Estimated exposure
masstens of millions of installations (Linux hosts on unpatched kernels across servers, cloud instances, desktops and embedded devices) — The Linux kernel underpins most cloud workloads, enterprise servers and embedded devices, and the flaw is exploitable by any local user on hosts running kernels without the 5.1.17 fix or a vendor backport, putting the affected population…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

In the Linux kernel before 5.1.17, ptrace_link in kernel/ptrace.c mishandles the recording of the credentials of a process that wants to create a ptrace relationship, which allows local users to obtain root access by leveraging certain scenarios with a parent-child process relationship, where a parent drops privileges and calls execve (potentially allowing control by an attacker). One contributing factor is an object lifetime issue (which can also cause a panic). Another contributing factor is incorrect marking of a ptrace relationship as privileged, which is exploitable through (for example) Polkit's pkexec helper with PTRACE_TRACEME. NOTE: SELinux deny_ptrace might be a usable workaround in some environments.

CISA Known Exploited Vulnerability
Affected
Linux Kernel
Required action
Apply updates per vendor instructions.
Due date
Ransomware use
Unknown
Vendors
linuxdebianfedoraprojectcanonicalredhatnetapp
Products
linux kernel, debian linux, fedora, ubuntu linux, enterprise linux, enterprise linux for arm 64, enterprise linux for ibm z systems, enterprise linux for real time, enterprise linux for real time for nfv, enterprise linux for real time for nfv tus, enterprise linux for real time tus, aff a700s firmware
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

In the news