CVE-2019-13272In 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…
- 7.8HighCVSS base score
- 52.2%Exploitation in 30 daysEPSS · top 1.0% of all CVEs
- YesKnown exploitedin CISA's KEV since 10 Dec 2021
- 5Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Exploited in the wild
CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog as Linux Kernel Improper Privilege Management Vulnerability.
- Added
- 10 Dec 2021
- Fix due (US federal)
- 10 Jun 2022
- Used by ransomware
- Not known
Apply updates per vendor instructions.
ENISA's EU Vulnerability Database lists it as exploited, from CISA's KEV, since 10 Dec 2021.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module and 4 Exploit-DB entries for it. CISA's SSVC rates its exploitation: it is being exploited.
Show the exploits5
Metasploit modules1 module
- Linux Polkit pkexec helper PTRACE_TRACEME local root exploit (Metasploit module) (opens in a new tab)
exploit/linux/local/ptrace_traceme_pkexec_helperRank excellentdisclosed 4 Jul 2019
Exploit-DB4 entries
- Linux Kernel 5.1.x - 'PTRACE_TRACEME' pkexec Local Privilege Escalation (2) (Exploit-DB entry) (opens in a new tab)
EDB-ID 50541local, linuxpublished 23 Nov 2021Not verified
- Linux Polkit - pkexec helper PTRACE_TRACEME local root (Metasploit) (Exploit-DB entry) (opens in a new tab)
EDB-ID 47543local, linuxpublished 24 Oct 2019Verified
- Linux Kernel 4.10 < 5.1.17 - 'PTRACE_TRACEME' pkexec Local Privilege Escalation (Exploit-DB entry) (opens in a new tab)
EDB-ID 47163local, linuxpublished 24 Jul 2019Not verified
- Linux - Broken Permission and Object Lifetime Handling for PTRACE_TRACEME (Exploit-DB entry) (opens in a new tab)
EDB-ID 47133local, linuxpublished 17 Jul 2019Verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By mitre
- 13 days later
· 13 days later
Published
- 2 years later
· 2 years later
Added to CISA KEV
Known exploited in the wild
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Analyzed | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 52.2% · top 1.0% of all CVEs (14 Nov 2026)
- CISA SSVC
- Exploitation: active · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Affected products
n/a
- affected n/a
References
References30
- http://packetstormsecurity.com/files/153663/Linux-PTRACE_TRACEME-Broken-Permission-Object-Lifetime-Handling.html (opens in a new tab)x_refsource_MISCx_transferred
- https://bugs.chromium.org/p/project-zero/issues/detail?id=1903 (opens in a new tab)x_refsource_MISCx_transferred
- https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.1.17 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/torvalds/linux/commit/6994eefb0053799d2e07cd140df6c2ea106c41ee (opens in a new tab)x_refsource_MISCx_transferred
- https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6994eefb0053799d2e07cd140df6c2ea106c41ee (opens in a new tab)x_refsource_MISCx_transferred
- https://bugzilla.suse.com/show_bug.cgi?id=1140671 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://bugzilla.redhat.com/show_bug.cgi?id=1730895 (opens in a new tab)x_refsource_CONFIRMx_transferred
- FEDORA-2019-a95015e60f (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- DSA-4484 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- 20190722 [SECURITY] [DSA 4484-1] linux security update (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- 20190722 [slackware-security] Slackware 14.2 kernel (SSA:2019-202-01) (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- [debian-lts-announce] 20190723 [SECURITY] [DLA 1862-1] linux security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [debian-lts-announce] 20190723 [SECURITY] [DLA 1863-1] linux-4.9 security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- http://packetstormsecurity.com/files/153702/Slackware-Security-Advisory-Slackware-14.2-kernel-Updates.html (opens in a new tab)x_refsource_MISCx_transferred
- https://security.netapp.com/advisory/ntap-20190806-0001/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- RHSA-2019:2405 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2019:2411 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- USN-4093-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- USN-4094-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- USN-4095-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- http://packetstormsecurity.com/files/154245/Kernel-Live-Patch-Security-Notice-LSN-0054-1.html (opens in a new tab)x_refsource_MISCx_transferred
- https://support.f5.com/csp/article/K91025336 (opens in a new tab)x_refsource_CONFIRMx_transferred
- USN-4117-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- USN-4118-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- RHSA-2019:2809 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://support.f5.com/csp/article/K91025336?utm_source=f5support&%3Butm_medium=RSS (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://packetstormsecurity.com/files/154957/Linux-Polkit-pkexec-Helper-PTRACE_TRACEME-Local-Root.html (opens in a new tab)x_refsource_MISCx_transferred
- http://packetstormsecurity.com/files/156929/Linux-PTRACE_TRACEME-Local-Root.html (opens in a new tab)x_refsource_MISCx_transferred
- http://packetstormsecurity.com/files/165051/Linux-Kernel-5.1.x-PTRACE_TRACEME-pkexec-Local-Privilege-Escalation.html (opens in a new tab)x_refsource_MISCx_transferred
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-13272 (opens in a new tab)government-resource
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- CISA KEV catalog (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2019-4779 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2019-13272)Record last updated .