Patchfirst
CVE-2019-13272 KEVPublic exploit High · 7.8 EPSS 52.2%

Linux Kernel Improper Privilege Management Vulnerability

Linux · Kernel

Summary

The Linux kernel before 5.1.17 mishandles credential recording in ptrace_link() in kernel/ptrace.c, combined with an object lifetime issue and incorrect privileged marking of ptrace relationships. A local user who already has an account can gain root access through certain parent-child process scenarios where a parent drops privileges and calls execve, and the flaw is also exploitable through Polkit's pkexec helper using PTRACE_TRACEME.

Official description · NVD

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.

Breakdown
68.3 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
1/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

First seen exploited 2 years after disclosure. Public exploit code (Metasploit) was available 13 days before disclosure.

  1. Public exploit codeMetasploit13 days before
  2. Disclosedday 0
  3. First seen exploitedVulnCheck KEV evidenceAdded to CISA KEVEU database agrees+2 yrs

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

techniques

2 , grouped by in kill-chain order, 2 cited passages 2

Privilege EscalationTA0004

Exploitation for Privilege Escalation T1068 Medium
AI mapping from the description · how it is exploited

local privilege escalation via kernel flaw

allows local users to obtain root access by leveraging certain scenarios
From the official description (NVD) Original (opens in a new tab) ↗
Abuse Elevation Control Mechanism T1548 Medium
AI mapping from the description · primary impact

privileged ptrace marking enables privilege abuse

incorrect marking of a ptrace relationship as privileged
From the official description (NVD) Original (opens in a new tab) ↗

Detection

0 rules for this CVE · 55 general rules for its techniques

Rules for this CVE

0 that reference CVE-2019-13272 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

What security researchers reported

Not named in any threat report yet

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

30 links, grouped by NVD tag (29 duplicates merged)
↑ ↓ chooseEnter openEsc close