CVE-2019-13272

HIGH

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.

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

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://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6994eefb0053799d2e07cd140df6c2ea106c41ee

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://lists.fedoraproject.org/archives/list/[email protected]/message/OGRK5LYWBJ4E4SRI4DKX367NHYSI3VOH/

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/

https://usn.ubuntu.com/4118-1/

https://www.debian.org/security/2019/dsa-4484

Details

Source: MITRE

Published: 2019-07-17

Updated: 2020-08-24

Type: CWE-269

Risk Information

CVSS v2.0

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

CVSS v3.0

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

Tenable Plugins

View all (28 total)

IDNameProductFamilySeverity
145678CentOS 8 : kernel (CESA-2019:2411)NessusCentOS Local Security Checks
high
134387EulerOS 2.0 SP8 : kernel (EulerOS-SA-2020-1186)NessusHuawei Local Security Checks
critical
132008SUSE SLES12 Security Update : kernel (SUSE-SU-2019:3263-1)NessusSuSE Local Security Checks
high
132007SUSE SLES12 Security Update : kernel (SUSE-SU-2019:3261-1)NessusSuSE Local Security Checks
high
132006SUSE SLES12 Security Update : kernel (SUSE-SU-2019:3260-1)NessusSuSE Local Security Checks
high
132005SUSE SLES12 Security Update : kernel (SUSE-SU-2019:3258-1)NessusSuSE Local Security Checks
high
132001SUSE SLES12 Security Update : kernel (SUSE-SU-2019:3232-1)NessusSuSE Local Security Checks
high
132000SUSE SLES12 Security Update : kernel (SUSE-SU-2019:3230-1)NessusSuSE Local Security Checks
high
131999SUSE SLES12 Security Update : kernel (SUSE-SU-2019:3228-1)NessusSuSE Local Security Checks
high
131120SUSE SLES12 Security Update : kernel (SUSE-SU-2019:2984-1)NessusSuSE Local Security Checks
critical
130949SUSE SLES12 Security Update : kernel (SUSE-SU-2019:2949-1)NessusSuSE Local Security Checks
critical
129145RHEL 7 : kernel-alt (RHSA-2019:2809)NessusRed Hat Local Security Checks
high
128929EulerOS Virtualization for ARM 64 3.0.2.0 : kernel (EulerOS-SA-2019-1926)NessusHuawei Local Security Checks
critical
128732Photon OS 3.0: Linux PHSA-2019-3.0-0026NessusPhotonOS Local Security Checks
high
128478Ubuntu 16.04 LTS / 18.04 LTS : linux-aws vulnerabilities (USN-4118-1)NessusUbuntu Local Security Checks
critical
128477Ubuntu 19.04 : linux-aws vulnerabilities (USN-4117-1)NessusUbuntu Local Security Checks
high
127985Oracle Linux 7 : Unbreakable Enterprise kernel (ELSA-2019-4746)NessusOracle Linux Local Security Checks
high
127978Oracle Linux 8 : kernel (ELSA-2019-2411)NessusOracle Linux Local Security Checks
high
127890Ubuntu 16.04 LTS : Linux kernel vulnerabilities (USN-4095-1)NessusUbuntu Local Security Checks
high
127889Ubuntu 16.04 LTS / 18.04 LTS : Linux kernel vulnerabilities (USN-4094-1)NessusUbuntu Local Security Checks
high
127888Ubuntu 18.04 LTS / 19.04 : Linux kernel vulnerabilities (USN-4093-1)NessusUbuntu Local Security Checks
high
127722RHEL 8 : kernel (RHSA-2019:2411)NessusRed Hat Local Security Checks
high
127721RHEL 8 : kernel-rt (RHSA-2019:2405)NessusRed Hat Local Security Checks
high
126965Debian DLA-1863-1 : linux-4.9 security updateNessusDebian Local Security Checks
high
126964Debian DLA-1862-1 : linux security updateNessusDebian Local Security Checks
high
126882Slackware 14.2 : Slackware 14.2 kernel (SSA:2019-202-01)NessusSlackware Local Security Checks
high
126837Debian DSA-4484-1 : linux - security updateNessusDebian Local Security Checks
high
126801Fedora 29 : kernel / kernel-headers (2019-a95015e60f)NessusFedora Local Security Checks
high