In the Linux kernel before 5.1.17, ptracelink 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 PTRACETRACEME. NOTE: SELinux deny_ptrace might be a usable workaround in some environments.
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2019-13272.json"
[
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@6994eefb0053799d2e07cd140df6c2ea106c41ee",
"id": "CVE-2019-13272-546b25a9",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"26913659160089144023271183334299731944",
"267897109582351749036434203915707344829",
"31920921196100191837100119415394897960",
"145880967429936438507621350861356760219",
"334914623103324396839068184442899313075",
"216108277631963224586513787819566708543"
]
},
"target": {
"file": "kernel/ptrace.c"
}
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git@6994eefb0053799d2e07cd140df6c2ea106c41ee",
"id": "CVE-2019-13272-600e1be3",
"signature_version": "v1",
"digest": {
"length": 139.0,
"function_hash": "99998485996578718793097978405192806275"
},
"target": {
"file": "kernel/ptrace.c",
"function": "ptrace_link"
}
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2019-13272.json"
[
{
"signature_type": "Line",
"deprecated": false,
"source": "https://github.com/checkstyle/checkstyle/commit/7dfcb39a0e377bd03a5c0b87dace9c07de9b02d0",
"id": "CVE-2019-13272-3f7660e4",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"34955273954202335046765798157531754851",
"236726600657990447267535413380775561850",
"236027329997252109912954950458587065479",
"80440111632677501925491672054304540447"
]
},
"target": {
"file": "src/checkstyle/com/puppycrawl/tools/checkstyle/Main.java"
}
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://github.com/checkstyle/checkstyle/commit/7dfcb39a0e377bd03a5c0b87dace9c07de9b02d0",
"id": "CVE-2019-13272-5d6db2e8",
"signature_version": "v1",
"digest": {
"length": 1222.0,
"function_hash": "33221640400247586694994185138692112460"
},
"target": {
"file": "src/checkstyle/com/puppycrawl/tools/checkstyle/Main.java",
"function": "main"
}
}
]