CVE-2019-13272

Severity

72%

Complexity

39%

Confidentiality

165%

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.

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.0 Base Score 7.8. CVSS Attack Vector: local. CVSS Attack Complexity: low. CVSS Vector: (CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

CVSS 2.0 Base Score 7.2. CVSS Attack Vector: local. CVSS Attack Complexity: low. CVSS Vector: (AV:L/AC:L/Au:N/C:C/I:C/A:C).

Overview

First reported 5 years ago

2019-07-17 13:15:00

Last updated 5 years ago

2019-07-25 19:15:00

Affected Software

Linux Kernel

Debian Linux 8.0 (Jessie)

8.0

Debian Linux 9.0

9.0

Fedora 29

29

References

http://packetstormsecurity.com/files/153663/Linux-PTRACE_TRACEME-Broken-Permission-Object-Lifetime-Handling.html

Third Party Advisory, VDB Entry

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

RHSA-2019:2405

RHSA-2019:2411

RHSA-2019:2809

https://bugs.chromium.org/p/project-zero/issues/detail?id=1903

Exploit, Issue Tracking, Patch, Third Party Advisory

https://bugzilla.redhat.com/show_bug.cgi?id=1730895

Issue Tracking, Patch, Third Party Advisory

https://bugzilla.suse.com/show_bug.cgi?id=1140671

Issue Tracking, Patch, Third Party Advisory

https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.1.17

Vendor Advisory

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6994eefb0053799d2e07cd140df6c2ea106c41ee

Patch, Vendor Advisory

https://github.com/torvalds/linux/commit/6994eefb0053799d2e07cd140df6c2ea106c41ee

Patch, Third Party Advisory

[debian-lts-announce] 20190723 [SECURITY] [DLA 1862-1] linux security update

Third Party Advisory

[debian-lts-announce] 20190723 [SECURITY] [DLA 1863-1] linux-4.9 security update

Third Party Advisory

FEDORA-2019-a95015e60f

Third Party Advisory

20190722 [SECURITY] [DSA 4484-1] linux security update

Third Party Advisory

20190722 [slackware-security] Slackware 14.2 kernel (SSA:2019-202-01)

Third Party Advisory

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

USN-4093-1

USN-4094-1

USN-4095-1

USN-4117-1

USN-4118-1

DSA-4484

Third Party Advisory

Stay updated

ExploitPedia is constantly evolving. Sign up to receive a notification when we release additional functionality.

Get in touch

If you'd like to report a bug or have any suggestions for improvements then please do get in touch with us using this form. We will get back to you as soon as we can.