Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2019-13272 — Local privilege escalation exploit for CVE-2019-13272, a Linux kernel ptrace vulnerability, allowing unprivileged users to gain root access via pkexec. Includes PoC source and compilation instructions. | Kitploit
Tools/GitHubGitHub/asepsaepdin/cve-2019-13272
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingLearning & EducationBinary Exploitation
GitHubasepsaepdin/cve-2019-13272

CVE-2019-13272

Local privilege escalation exploit for CVE-2019-13272, a Linux kernel ptrace vulnerability, allowing unprivileged users to gain root access via pkexec. Includes PoC source and compilation instructions.

View Repository
13 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2019-13272 - Pkexec Local Privilege Escalation


⚠️ For educational and authorized security research purposes only

Original Exploit Authors

Very grateful to the original PoC author BCOLES

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.

Demo

pkexec


Step Guides

  1. Install git, then clone the script from the github repository:

    root@kitploit:~
    sudo apt install git -y
    git clone https://github.com/asepsaepdin/CVE-2019-13272.git
    
  2. Compile the poc.c with gcc using command:

    root@kitploit:~
    cd CVE-2019-13272
    gcc -s poc.c -o become_root
    
  3. Run the script using command:

    root@kitploit:~
    ./become_root
    

Credits

  • https://www.exploit-db.com/exploits/47163
  • https://nvd.nist.gov/vuln/detail/cve-2019-13272
Download Tool