Vulnerability 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 Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 3.16.52, < 3.16.71 |
| Debian | Debian Linux | 8.0 |
| Fedoraproject | Fedora | 29 |
| Canonical | Ubuntu Linux | 16.04 |
| Redhat | Enterprise Linux | 7.0 |
| Redhat | Enterprise Linux For Arm 64 | 7.0_aarch64 |
| Redhat | Enterprise Linux For Ibm Z Systems | 7.0_s390x |
| Redhat | Enterprise Linux For Real Time | 8 |
| Redhat | Enterprise Linux For Real Time For Nfv | 8.0 |
| Redhat | Enterprise Linux For Real Time For Nfv Tus | 8.2 |
| Redhat | Enterprise Linux For Real Time Tus | 8.2 |
| Netapp | Aff A700S Firmware | - |
| Netapp | Aff A700S | - |
| Netapp | H410C Firmware | - |
| Netapp | H410C | - |
| Netapp | H610S Firmware | - |
| Netapp | H610S | - |
| Netapp | Active Iq Unified Manager | - |
| Netapp | E-Series Performance Analyzer | - |
| Netapp | E-Series Santricity Os Controller | >= 11.0.0, <= 11.60.3 |
References
- http://packetstormsecurity.com/files/153663/Linux-PTRACE_TRACEME-Broken-PermissiThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/153702/Slackware-Security-Advisory-SlackwarThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/154245/Kernel-Live-Patch-Security-Notice-LSExploitThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/154957/Linux-Polkit-pkexec-Helper-PTRACE_TRExploitThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/156929/Linux-PTRACE_TRACEME-Local-Root.htmlExploitThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/165051/Linux-Kernel-5.1.x-PTRACE_TRACEME-pkExploitThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2019:2405Third Party Advisory
- https://access.redhat.com/errata/RHSA-2019:2411Third Party Advisory
- https://access.redhat.com/errata/RHSA-2019:2809Third Party Advisory
- https://bugs.chromium.org/p/project-zero/issues/detail?id=1903ExploitIssue TrackingPatch
- https://bugzilla.redhat.com/show_bug.cgi?id=1730895Issue TrackingPatch
- https://bugzilla.suse.com/show_bug.cgi?id=1140671Issue TrackingPatchThird Party Advisory
- https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.1.17PatchVendor Advisory
- https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6994ePatchVendor Advisory
- https://github.com/torvalds/linux/commit/6994eefb0053799d2e07cd140df6c2ea106c41ePatch
FAQ
What is CVE-2019-13272?
CVE-2019-13272 is a vulnerability with a CVSS score of 7.8 (HIGH). 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 obtai...
How severe is CVE-2019-13272?
CVE-2019-13272 has been rated HIGH with a CVSS base score of 7.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2019-13272?
Check the references section above for vendor advisories and patch information. Affected products include: Linux Linux Kernel, Debian Debian Linux, Fedoraproject Fedora, Canonical Ubuntu Linux, Redhat Enterprise Linux.