CVE DatabaseCVE-2019-13272
한국어 권고문 →
CVE-2019-132727.8/HIGHCISA KEV

Linux Kernel ptrace_link Local Privilege Escalation Vulnerability Analysis and Mitigation (CVE-2019-13272)

⚡ Jump to Patch
Affected Vendors
linux
Affected Components
linux_kernel
Published Date
2019-07-17
CVSS v3.1
7.8
HIGH
EPSS (30d)
52.2%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

All Linux distributions running Linux kernel versions prior to 5.1.17.

Impact

A local unprivileged attacker can exploit this vulnerability using Polkit's pkexec helper and PTRACE_TRACEME to obtain full root privileges.

Mitigation

Upgrade the Linux kernel to version 5.1.17 or higher, or apply the SELinux deny_ptrace workaround.

Affected Products & Version Scope

Linux kernel versions before 5.1.17 (Affects multiple distributions including RHEL, CentOS, Ubuntu, Debian, and Slackware)

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Update the Linux kernel to the latest stable release using your distribution's package manager and reboot the system.

bash
# For Ubuntu / Debian systems
sudo apt-get update && sudo apt-get install --only-upgrade -y linux-image-generic
sudo reboot

# For RHEL / CentOS systems
sudo yum update -y kernel
sudo reboot

2. Temporary Workaround & Hardening Configuration

If an immediate reboot is not feasible, restrict ptrace capabilities using SELinux or Yama sysctl settings.

bash
# Enable deny_ptrace in SELinux environments
sudo setsebool -P deny_ptrace on

# Restrict ptrace scope to prevent unauthorized process tracing
echo 'kernel.yama.ptrace_scope = 1' | sudo tee -a /etc/sysctl.d/10-ptrace.conf
sudo sysctl -p /etc/sysctl.d/10-ptrace.conf

3. Log Audit & IoC Verification Commands

Verify the running kernel version and inspect system logs for suspicious activities involving pkexec or ptrace execution.

bash
# Check the current running kernel version
uname -r

# Audit authentication logs for anomalous pkexec or ptrace events
sudo grep -E 'pkexec|ptrace' /var/log/auth.log /var/log/secure 2>/dev/null
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
SentinelOne Singularity AI EDR
Immediately upgrade the Linux kernel to version 5.1.17 or later, or restrict ptrace capabilities using Yama ptrace_scope.

Block Kernel Privilege Escalation & Ransomware Payloads Before You Can Reboot

Protect unpatched Windows, Linux, and macOS workloads against in-memory exploitation and lateral movement with autonomous EDR.

100% MITRE ATT&CK Detection · 1-Click Rollback

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability exists in kernel/ptrace.c within the Linux kernel's ptrace_link function. It arises from the mishandling of credential recording for processes attempting to establish a ptrace relationship. In scenarios involving parent-child process relationships where a parent drops privileges and executes execve, an object lifetime management issue occurs. This can trigger a kernel panic or incorrectly mark the ptrace relationship as privileged.

2. Exploitation Mechanics & Attack Scenario

An attacker initiates the exploit from a local non-privileged context by spawning a child process with PTRACE_TRACEME. The attacker then executes a SUID binary, such as Polkit's pkexec helper, causing the parent process to track the privileged execution. Due to the flawed credential tracking in ptrace_link, the unprivileged process gains control over the memory and execution flow of the SUID process, leading to arbitrary code execution with root privileges.

3. Infrastructure & Business Impact

As a CISA KEV-listed vulnerability, this flaw has been actively exploited in the wild. In multi-tenant environments, container hosts, or shared servers, any local user can escalate privileges to root within seconds, completely compromising the confidentiality, integrity, and availability of the host system.

Official Vendor Advisories & References

NVD Original English 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.

Frequently Asked SecOps Questions (CVE-2019-13272)

FAQ

Q1. How critical is CVE-2019-13272 and is it actively exploited in the wild?

CVE-2019-13272 is rated CVSS 7.8 (HIGH) with a 30-day EPSS exploitation probability of 52.2%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2019-13272?

Primary impacted vendors include linux across linux_kernel. Scope summary: Linux kernel versions before 5.1.17 (Affects multiple distributions including RHEL, CentOS, Ubuntu, Debian, and Slackware)

Q3. What temporary mitigations or workarounds exist for CVE-2019-13272 before patching?

[Mitigation] Upgrade the Linux kernel to version 5.1.17 or higher, or apply the SELinux deny_ptrace workaround. Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2019-13272

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (linux)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2019-13272 Linux Kernel ptrace_link Local Privilege Escalation Vulnerability Analysis and Mitigation (CVE-2019-13272) (CVSS 7.8) - Patch & Workaround | CVE Pulse