Kernel/ptrace.c in Linux kernel mishandles contains an improper privilege management vulnerability that allows local users to obtain root access.
In short
CVE-2019-13272 (Linux Kernel Improper Privilege Management) has a CVSS 3.1 base score of 7.8, rated high. CISA added it to the Known Exploited Vulnerabilities catalog on 10 Dec 2021. Fixed in Linux Kernel 3.16.71 or later.
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.
CVSS 3.1 breakdown
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HAffected products
- Netapp Active Iq Unified Managerall versions
- Netapp E-series Performance Analyzerall versions
- Netapp E-series Santricity OS Controller≥ 11.0.0 ≤ 11.60.3
- Netapp Hci Management Nodeall versions
- Netapp Service Processorall versions
- Netapp Solidfireall versions
- Netapp Steelstore Cloud Integrated Storageall versions
- Netapp Hci Compute Nodeall versions
- Canonical Ubuntu Linux16.04 · 18.04 · 19.04
- Debian Linux10.0 · 8.0 · 9.0
- Fedoraproject Fedora29
- Linux Kernel≥ 3.16.52 < 3.16.71 · ≥ 4.10 < 4.14.133 · ≥ 4.1.39 < 4.2 · ≥ 4.15 < 4.19.58
- Netapp Aff A700s Firmwareall versions
- Netapp H410c Firmwareall versions
- Netapp H610s Firmwareall versions
- Redhat Enterprise Linux7.0 · 8.0
- Redhat Enterprise Linux For Arm 647.0_aarch64
- Redhat Enterprise Linux For Ibm Z Systems7.0_s390x
- Redhat Enterprise Linux For Real Time8
- Redhat Enterprise Linux For Real Time For Nfv8.0
- Redhat Enterprise Linux For Real Time For Nfv Tus8.2 · 8.4 · 8.6 · 8.8
- Redhat Enterprise Linux For Real Time Tus8.2 · 8.4 · 8.6 · 8.8
Remediation
Fixed in- Linux Kernel≥ 3.16.71
- https://bugs.chromium.org/p/project-zero/issues/detail?id=1903
- https://bugzilla.redhat.com/show_bug.cgi?id=1730895
- https://bugzilla.suse.com/show_bug.cgi?id=1140671
- https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.1.17
- https://github.com/torvalds/linux/commit/6994eefb0053799d2e07cd140df6c2ea106c41ee
- https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6994eefb0053799d2e07cd140df6c2ea106c41ee
References
- http://packetstormsecurity.com/files/153663/Linux-PTRACE_TRACEME-Broken-Permission-Object-Lifetime-Handling.html
- http://packetstormsecurity.com/files/153702/Slackware-Security-Advisory-Slackware-14.2-kernel-Updates.html
- http://packetstormsecurity.com/files/154245/Kernel-Live-Patch-Security-Notice-LSN-0054-1.html
- http://packetstormsecurity.com/files/154957/Linux-Polkit-pkexec-Helper-PTRACE_TRACEME-Local-Root.html
- http://packetstormsecurity.com/files/156929/Linux-PTRACE_TRACEME-Local-Root.html
- http://packetstormsecurity.com/files/165051/Linux-Kernel-5.1.x-PTRACE_TRACEME-pkexec-Local-Privilege-Escalation.html
- https://access.redhat.com/errata/RHSA-2019:2405
- https://access.redhat.com/errata/RHSA-2019:2411
- https://access.redhat.com/errata/RHSA-2019:2809
- https://bugs.chromium.org/p/project-zero/issues/detail?id=1903
and 20 more references
Related CVEs
Exploited and critical vulnerabilities in the same product or from the same vendor.
Data from the NVD, CISA KEV catalog and FIRST EPSS. The CVSS 4.0 base score is shown where the NVD has one, otherwise CVSS 3.1.
