CVE-2019-13272
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…
- Severity
- 7.8 / 10
- High · CVSS 3.1
- Exploit chance (EPSS)
- 52.20%
- Chance of exploitation in the next 30 days. Higher than 98.96% of scored vulnerabilities.
- Known exploited
- Yes
- In CISA's catalog since Dec 10, 2021
- Weakness
- NVD-CWE-noinfo
- Fix
- None yet
- No fixed version published
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.
How to fix
No fixed version has been published yet. Until one is, remove or replace the package, or turn off or isolate the affected feature. This page updates when a fix ships.
Severity breakdown
CVSS 3.1 7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
References
Advisories
- packetstormsecurity.com/files/153663/Linux-PTRACE_TRACEME-Broken-Permission-Object-Lifetime-…
- packetstormsecurity.com/files/153702/Slackware-Security-Advisory-Slackware-14.2-kernel-Updat…
- packetstormsecurity.com/files/154245/Kernel-Live-Patch-Security-Notice-LSN-0054-1.html
- packetstormsecurity.com/files/154957/Linux-Polkit-pkexec-Helper-PTRACE_TRACEME-Local-Root.html
- packetstormsecurity.com/files/156929/Linux-PTRACE_TRACEME-Local-Root.html
- packetstormsecurity.com/files/165051/Linux-Kernel-5.1.x-PTRACE_TRACEME-pkexec-Local-Privileg…
- access.redhat.com/errata/RHSA-2019:2405
- access.redhat.com/errata/RHSA-2019:2411
- access.redhat.com/errata/RHSA-2019:2809
- bugs.chromium.org/p/project-zero/issues/detail
- bugzilla.suse.com/show_bug.cgi
- cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.1.17
- git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit
- lists.debian.org/debian-lts-announce/2019/07/msg00022.html
- lists.debian.org/debian-lts-announce/2019/07/msg00023.html
- seclists.org/bugtraq/2019/Jul/30
- seclists.org/bugtraq/2019/Jul/33
- security.netapp.com/advisory/ntap-20190806-0001
- support.f5.com/csp/article/K91025336
- support.f5.com/csp/article/K91025336
- usn.ubuntu.com/4093-1
- usn.ubuntu.com/4094-1
- usn.ubuntu.com/4095-1
- usn.ubuntu.com/4117-1
- usn.ubuntu.com/4118-1
- debian.org/security/2019/dsa-4484
Fixes and patches
Other links
Timeline
- Published
- Added to CISA's Known Exploited Vulnerabilities catalog
- Remediation due for U.S. federal agencies
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-5849-834g-hvw5 pypdf has possible infinite loop when hitting EOF in standard xref table during trailer search | High | Same weakness, |
| GHSA-cggf-277g-3q54 pypdf has possible large memory usage when parsing page tree | High | Same weakness, |
| GHSA-mfr5-77xh-9j7h pypdf has possible infinite loop when cloning dictionaries | High | Same weakness, |
| GHSA-3g3m-2fjr-6pw4 Glob: AbortSignal cancellation bypass allows post-timeout filesystem traversal | Medium | Same weakness, |
| GHSA-42gh-23hr-vphw pypdf has possible long runtimes when retrieving page labels | High | Same weakness, |
| GHSA-4vqv-7265-gm2w pypdf has possible large memory usage for exceptions in strict mode | High | Same weakness, |
| GHSA-62m5-6wh8-28x7 pypdf has possible long runtimes/large memory usage for encrypted PDF files | High | Same weakness, |
| GHSA-2qm8-x737-gmw5 pyasn1 has quadratic CPU consumption in constructed BIT STRING decoding | High | Same weakness, |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor