Exploit database

Vulnerability

CVE-2019-13272

Vulnerability details

Score
7.8
Severity
high

CVSS 3.1 · CISA-ADP

Vector string

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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.

CVE Program

Exploit source choices

22 sources
Linux Polkit pkexec helper PTRACE_TRACEME local root exploit
MSF-linux--local--ptrace_traceme_pkexec_helperMetasploitLinux / remote

This module exploits an issue in ptrace_link in kernel/ptrace.c before Linux kernel 5.1.17. This issue can be exploited from a Linux desktop terminal, but not over an SSH session, as it requires execution from within the context of a user with an active Polkit agent. 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.

2019-07-04ptrace_traceme_pkexec_helper.rb
bcoles/kernel-exploits
GH-59c87a82c96b5678d7b3110a0cf81c5fGitHubUnofficial GitHub source

Various kernel exploits

2018-05-0518 files · 813 stars
al1ex/linuxeelvation
GH-82dd0da071ea66f05194b9f200dbcaeeGitHubUnofficial GitHub source

Linux Eelvation(持续更新)

2021-03-30302 files · 412 stars
jas502n/cve-2019-13272
GH-8f3db129cbba51de49ad4a31ef98d84dGitHubUnofficial GitHub source

Linux 4.10 < 5.1.17 PTRACE_TRACEME local root

2019-07-313 files · 333 stars
anoaghost/localroot_compile
GH-cb529ec43040e49cb46c85b183cdcf81GitHubUnofficial GitHub source

Localroot Compile

2019-08-0178 files · 23 stars
cnhack3r/penetration_poc
GH-fdd34977de44cc5d80df5c3881fca455GitHubUnofficial GitHub source

FROM:@Mr-xn 渗透测试有关的POC、EXP、脚本、提权、小工具等---About penetration-testing python-script poc getshell csrf xss cms php-getshell domainmod-xss penetration-testing-poc csrf-webshell cobub-razor cve rce sql sql-poc poc-exp bypass oa-getshell cve-cms

2022-01-11319 files · 23 stars
cvedb/awesome-cve-repo
GH-5d2d5bc79e38467342aae25328e8c9d0GitHubUnofficial GitHub source

cvedb/awesome-cve-repo source repository

2023-03-237 files · 9 stars
cyc1ec/cve-2019-13272
GH-085e0d9cc81f5990b5488927e35c67d3GitHubUnofficial GitHub source

The exploit for CVE-2019-13272

2019-07-314 files · 5 stars
oneoy/cve-2019-13272
GH-629f62326471c4dfc91046c0ba74b40aGitHubUnofficial GitHub source

linux 提权

2019-08-073 files · 4 stars
josemlwdf/cve-2019-13272
GH-37da4bbeb59d5933e56c2a039337fa1fGitHubUnofficial GitHub source

This is a Python 3 version of this exploit. Hope it works!!!

2024-06-202 files · 3 stars
cvedb/top
GH-2e626f612a2d87f79d1d9385117cfa16GitHubUnofficial GitHub source

cvedb/top source repository

2023-03-1911 files · 2 stars
asepsaepdin/cve-2019-13272
GH-d40902ad3111dc5942ca44cb37c7528bGitHubUnofficial GitHub source

asepsaepdin/cve-2019-13272 source repository

2023-09-042 files · 0 stars
babyshen/cve-2019-13272
GH-d52eec4cdc858c6795f3b0b6bf6805f3GitHubUnofficial GitHub source

babyshen/cve-2019-13272 source repository

2022-03-101 file · 0 stars
chinmay1743/ptrace-vuln
GH-e173f609d8ea9d27759b64fadf6c6856GitHubUnofficial GitHub source

To check for vulnerability CVE-2019-13272

2025-09-103 files · 0 stars
chorankates/irked
GH-eea1d0a40dec20eeb62276dfd78df6b2GitHubUnofficial GitHub source

HTB - Irked

2022-07-249 files · 0 stars