Vulnerability record · CVE-2019-13272 · published 17 July 2019
CVE-2019-13272: Linux kernel ptrace credential mishandling allows local root escalation
Linux · Linux Kernel
The Linux kernel before 5.1.17 mishandles credential recording in ptrace_link (kernel/ptrace.c) when a process creates a ptrace relationship, and also incorrectly marks the relationship as privileged. A local user can exploit parent-child process scenarios, such as a parent dropping privileges and calling execve, to gain root.
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.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Automated analysis
high priorityIt is a locally exploitable kernel privilege escalation to root with KEV-listed exploitation and very high EPSS, though it requires local access rather than being remotely reachable.
What it is
The Linux kernel before 5.1.17 mishandles credential recording in ptrace_link (kernel/ptrace.c) when a process creates a ptrace relationship, and also incorrectly marks the relationship as privileged. A local user can exploit parent-child process scenarios, such as a parent dropping privileges and calling execve, to gain root.
Impact
An attacker with local access gains full root privileges, including confidentiality, integrity and availability impact across the system. The flaw can also trigger a kernel panic through the object lifetime issue.
Attack surface
Reached locally by an authenticated user running code on the host; no user interaction or network access is required per the CVSS vector AV:L/PR:L/UI:N. The described path involves a parent-child process relationship and helpers such as Polkit's pkexec with PTRACE_TRACEME.
Exploitation
CISA KEV lists it as exploited with a 2021-12-10 addition and 2022-06-10 remediation due date, and multiple references are tagged Exploit. EPSS is 0.52199 (98.9th percentile), indicating high predicted exploitation activity.
What to do
- Patch the Linux kernel to 5.1.17 or later, or apply the vendor kernel update for your distribution (Red Hat, Debian, Ubuntu, Fedora, SUSE, NetApp advisories are referenced).
- Where patching is not immediately possible, enable SELinux deny_ptrace as a workaround in environments that support it.
- Restrict local interactive and service accounts to the minimum needed, since exploitation requires local code execution.
- Monitor and limit use of pkexec and other setuid helpers that can be combined with PTRACE_TRACEME.
- Track KEV remediation due dates and verify kernel versions across servers, appliances and firmware-listed products.
Detection
- Audit kernel versions on Linux hosts and appliances against the 5.1.17 fix threshold and vendor errata.
- Monitor for unexpected ptrace or PTRACE_TRACEME activity involving setuid helpers such as pkexec.
- Alert on privilege transitions to root from non-root parent processes that drop privileges and execve.
- Watch for kernel panic or oops events tied to ptrace credential handling.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Exploitation in the wild
CISA added CVE-2019-13272 to the Known Exploited Vulnerabilities catalog on 10 December 2021 as "Linux Kernel Improper Privilege Management Vulnerability". Required action: Apply updates per vendor instructions. Federal deadline 10 June 2022.
Affected products
22 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
Track CVE-2019-13272 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2019-13272), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.