Linux Kernel
Linux Kernel Improper Privilege Management Vulnerability
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.
Timeline
Days relative to CVE publicationFirst public PoC 0 h after publication; added to CISA KEV 2.4 years after publication.
PoC repositories
Found on GitHub.8 PoCs · 1 pending · 9 informational · 1 not a PoC · 2 suspicious or fake
PoCs 8
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| jas502n/CVE-2019-13272 | 31 Jul 2019 +14 d | 334 | PoC |
| Cyc1eC/CVE-2019-13272 | 31 Jul 2019 +14 d | 5 | PoC |
| oneoy/CVE-2019-13272 | 7 Aug 2019 +21 d | 4 | PoC |
| polosec/CVE-2019-13272 | 5 Mar 2020 +232 d | 0 | PoC |
| HaleyWei/POC-available | 18 Sep 2020 +1.2 y | 2 | PoC via PoC Index |
| babyshen/CVE-2019-13272 | 10 Mar 2022 +2.6 y | 0 | PoC via PoC Index |
| asepsaepdin/CVE-2019-13272 | 4 Sep 2023 +4.1 y | 0 | PoC |
| MDS1GNAL/ptrace_scope-CVE-2019-13272-privilege-escalation | 31 Jan 2024 +4.5 y | 2 | PoC |
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Huandtx/CVE-2019-13272 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 9
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| bigbigliang-malwarebenchmark/cve-2019-13272 | 4 Aug 2019 +18 d | 1 | Informational · write-up |
| sumedhaDharmasena/-Kernel-ptrace-c-mishandles-vulnerability-CVE-2019-13272 | 2 May 2020 +290 d | 0 | Informational · write-up |
| Tharana/Exploiting-a-Linux-kernel-vulnerability | 11 May 2020 +299 d | 1 | Informational · write-up |
| RashmikaEkanayake/Privilege-Escalation-CVE-2019-13272- | 12 May 2020 +300 d | 0 | Informational · write-up |
| Tharana/vulnerability-exploitation | 12 May 2020 +300 d | 3 | Informational · write-up |
| teddy47/CVE-2019-13272---Documentation | 13 May 2020 +301 d | 0 | Informational · write-up |
| datntsec/CVE-2019-13272 | 19 Oct 2020 +1.3 y | 0 | Informational · write-up |
| jana30116/CVE-2019-13272-Local-Privilege-Escalation | 20 May 2021 +1.8 y | 0 | Informational · write-up |
| GgKendall/secureCodingDemo | 14 Nov 2022 +3.3 y | 0 | Informational · write-up |
Not a PoC 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Chinmay1743/ptrace-vuln | 10 Sep 2025 +6.2 y | 0 | Not a PoC · unrelated
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
Suspicious or fake 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| josemlwdf/CVE-2019-13272 | 20 Jun 2024 +4.9 y | 3 | Fake |
| letsr00t/CVE-2019-13272 | 17 Nov 2025 +6.3 y | 0 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | Linux - Broken Permission and Object Lifetime Handling for PTRACE_TRACEME | 17 Jul 2019 | 14 Nov 2026 |
| Exploit-DB | Linux Kernel 4.10 < 5.1.17 - 'PTRACE_TRACEME' pkexec Local Privilege Escalation | 24 Jul 2019 | 14 Nov 2026 |
| Exploit-DB | Linux Polkit - pkexec helper PTRACE_TRACEME local root (Metasploit) | 24 Oct 2019 | 14 Nov 2026 |
| Exploit-DB | Linux Kernel 5.1.x - 'PTRACE_TRACEME' pkexec Local Privilege Escalation (2) | 23 Nov 2021 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: Linux Polkit pkexec helper PTRACE_TRACEME local root exploit (exploit/linux/local/ptrace_traceme_pkexec_helper) | 5 Sep 2019 | 14 Nov 2026 |