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.
http://packetstormsecurity.com/files/154245/Kernel-Live-Patch-Security-Notice-LSN-0054-1.html
http://packetstormsecurity.com/files/156929/Linux-PTRACE_TRACEME-Local-Root.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
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://lists.debian.org/debian-lts-announce/2019/07/msg00022.html
https://lists.debian.org/debian-lts-announce/2019/07/msg00023.html
https://seclists.org/bugtraq/2019/Jul/30
https://seclists.org/bugtraq/2019/Jul/33
https://security.netapp.com/advisory/ntap-20190806-0001/
https://support.f5.com/csp/article/K91025336
https://support.f5.com/csp/article/K91025336?utm_source=f5support&utm_medium=RSS
https://usn.ubuntu.com/4093-1/
https://usn.ubuntu.com/4094-1/
https://usn.ubuntu.com/4095-1/
https://usn.ubuntu.com/4117-1/
Source: MITRE
Published: 2019-07-17
Updated: 2020-08-24
Type: CWE-269
Base Score: 7.2
Vector: AV:L/AC:L/Au:N/C:C/I:C/A:C
Impact Score: 10
Exploitability Score: 3.9
Severity: HIGH
Base Score: 7.8
Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Impact Score: 5.9
Exploitability Score: 1.8
Severity: HIGH
OR
OR
cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
OR
ID | Name | Product | Family | Severity |
---|---|---|---|---|
145678 | CentOS 8 : kernel (CESA-2019:2411) | Nessus | CentOS Local Security Checks | high |
134387 | EulerOS 2.0 SP8 : kernel (EulerOS-SA-2020-1186) | Nessus | Huawei Local Security Checks | critical |
132008 | SUSE SLES12 Security Update : kernel (SUSE-SU-2019:3263-1) | Nessus | SuSE Local Security Checks | high |
132007 | SUSE SLES12 Security Update : kernel (SUSE-SU-2019:3261-1) | Nessus | SuSE Local Security Checks | high |
132006 | SUSE SLES12 Security Update : kernel (SUSE-SU-2019:3260-1) | Nessus | SuSE Local Security Checks | high |
132005 | SUSE SLES12 Security Update : kernel (SUSE-SU-2019:3258-1) | Nessus | SuSE Local Security Checks | high |
132001 | SUSE SLES12 Security Update : kernel (SUSE-SU-2019:3232-1) | Nessus | SuSE Local Security Checks | high |
132000 | SUSE SLES12 Security Update : kernel (SUSE-SU-2019:3230-1) | Nessus | SuSE Local Security Checks | high |
131999 | SUSE SLES12 Security Update : kernel (SUSE-SU-2019:3228-1) | Nessus | SuSE Local Security Checks | high |
131120 | SUSE SLES12 Security Update : kernel (SUSE-SU-2019:2984-1) | Nessus | SuSE Local Security Checks | critical |
130949 | SUSE SLES12 Security Update : kernel (SUSE-SU-2019:2949-1) | Nessus | SuSE Local Security Checks | critical |
129145 | RHEL 7 : kernel-alt (RHSA-2019:2809) | Nessus | Red Hat Local Security Checks | high |
128929 | EulerOS Virtualization for ARM 64 3.0.2.0 : kernel (EulerOS-SA-2019-1926) | Nessus | Huawei Local Security Checks | critical |
128732 | Photon OS 3.0: Linux PHSA-2019-3.0-0026 | Nessus | PhotonOS Local Security Checks | high |
128478 | Ubuntu 16.04 LTS / 18.04 LTS : linux-aws vulnerabilities (USN-4118-1) | Nessus | Ubuntu Local Security Checks | critical |
128477 | Ubuntu 19.04 : linux-aws vulnerabilities (USN-4117-1) | Nessus | Ubuntu Local Security Checks | high |
127985 | Oracle Linux 7 : Unbreakable Enterprise kernel (ELSA-2019-4746) | Nessus | Oracle Linux Local Security Checks | high |
127978 | Oracle Linux 8 : kernel (ELSA-2019-2411) | Nessus | Oracle Linux Local Security Checks | high |
127890 | Ubuntu 16.04 LTS : Linux kernel vulnerabilities (USN-4095-1) | Nessus | Ubuntu Local Security Checks | high |
127889 | Ubuntu 16.04 LTS / 18.04 LTS : Linux kernel vulnerabilities (USN-4094-1) | Nessus | Ubuntu Local Security Checks | high |
127888 | Ubuntu 18.04 LTS / 19.04 : Linux kernel vulnerabilities (USN-4093-1) | Nessus | Ubuntu Local Security Checks | high |
127722 | RHEL 8 : kernel (RHSA-2019:2411) | Nessus | Red Hat Local Security Checks | high |
127721 | RHEL 8 : kernel-rt (RHSA-2019:2405) | Nessus | Red Hat Local Security Checks | high |
126965 | Debian DLA-1863-1 : linux-4.9 security update | Nessus | Debian Local Security Checks | high |
126964 | Debian DLA-1862-1 : linux security update | Nessus | Debian Local Security Checks | high |
126882 | Slackware 14.2 : Slackware 14.2 kernel (SSA:2019-202-01) | Nessus | Slackware Local Security Checks | high |
126837 | Debian DSA-4484-1 : linux - security update | Nessus | Debian Local Security Checks | high |
126801 | Fedora 29 : kernel / kernel-headers (2019-a95015e60f) | Nessus | Fedora Local Security Checks | high |