Actively exploited · Published Jul 17, 2019 · Assigned by mitre
CVE-2019-13272
High 7.8 Exploited
In plain English
A high-severity security flaw in Kernel from Linux. Attackers are actively exploiting it in the wild (listed by CISA on December 10, 2021). The chance it is exploited in the next 30 days is estimated at 52.2% (higher than 99% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
CISA guidance
Apply updates per vendor instructions.
Federal agencies must remediate by Jun 10, 2022.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | linux | 4.19.37-6 | DEBIAN-CVE-2019-13272 |
| Debian:13 | linux | 4.19.37-6 | DEBIAN-CVE-2019-13272 |
| Debian:14 | linux | 4.19.37-6 | DEBIAN-CVE-2019-13272 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2019-13272 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2019-13272 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2019-13272 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2019-13272 |
Affected products (as reported)
References
- http://packetstormsecurity.com/files/153663/Linux-PTRACE_TRACEME-Broken-Permission-Object-Lifetime-Handling.html x_refsource_MISC
- https://bugs.chromium.org/p/project-zero/issues/detail?id=1903 x_refsource_MISC
- https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.1.17 x_refsource_MISC
- https://github.com/torvalds/linux/commit/6994eefb0053799d2e07cd140df6c2ea106c41ee x_refsource_MISC
- https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6994eefb0053799d2e07cd140df6c2ea106c41ee x_refsource_MISC
- https://bugzilla.suse.com/show_bug.cgi?id=1140671 x_refsource_CONFIRM
- https://bugzilla.redhat.com/show_bug.cgi?id=1730895 x_refsource_CONFIRM
- FEDORA-2019-a95015e60f vendor-advisory, x_refsource_FEDORA
- DSA-4484 vendor-advisory, x_refsource_DEBIAN
- 20190722 [SECURITY] [DSA 4484-1] linux security update mailing-list, x_refsource_BUGTRAQ
- 20190722 [slackware-security] Slackware 14.2 kernel (SSA:2019-202-01) mailing-list, x_refsource_BUGTRAQ
- [debian-lts-announce] 20190723 [SECURITY] [DLA 1862-1] linux security update mailing-list, x_refsource_MLIST
- [debian-lts-announce] 20190723 [SECURITY] [DLA 1863-1] linux-4.9 security update mailing-list, x_refsource_MLIST
- http://packetstormsecurity.com/files/153702/Slackware-Security-Advisory-Slackware-14.2-kernel-Updates.html x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20190806-0001/ x_refsource_CONFIRM
- RHSA-2019:2405 vendor-advisory, x_refsource_REDHAT
- RHSA-2019:2411 vendor-advisory, x_refsource_REDHAT
- USN-4093-1 vendor-advisory, x_refsource_UBUNTU
- USN-4094-1 vendor-advisory, x_refsource_UBUNTU
- USN-4095-1 vendor-advisory, x_refsource_UBUNTU
- http://packetstormsecurity.com/files/154245/Kernel-Live-Patch-Security-Notice-LSN-0054-1.html x_refsource_MISC
- https://support.f5.com/csp/article/K91025336 x_refsource_CONFIRM
- USN-4117-1 vendor-advisory, x_refsource_UBUNTU
- USN-4118-1 vendor-advisory, x_refsource_UBUNTU
- RHSA-2019:2809 vendor-advisory, x_refsource_REDHAT
- https://support.f5.com/csp/article/K91025336?utm_source=f5support&%3Butm_medium=RSS x_refsource_CONFIRM
- http://packetstormsecurity.com/files/154957/Linux-Polkit-pkexec-Helper-PTRACE_TRACEME-Local-Root.html x_refsource_MISC
- http://packetstormsecurity.com/files/156929/Linux-PTRACE_TRACEME-Local-Root.html x_refsource_MISC
- http://packetstormsecurity.com/files/165051/Linux-Kernel-5.1.x-PTRACE_TRACEME-pkexec-Local-Privilege-Escalation.html x_refsource_MISC
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-13272 government-resource