Skip to content
OpenAdvisories

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 4.19.37-6 —
Debian 13 linux 4.19.37-6 —
Debian 12 linux 4.19.37-6 —
Debian 10 linux 4.19.37-5+deb10u1 DSA-4484-1
Debian 9 linux 4.9.168-1+deb9u4 DSA-4484-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 8 linux 3.16.70-1 DLA-1862-1
Debian 8 linux-4.9 4.9.168-1+deb9u4~deb8u1 DLA-1863-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS linux-raspi-realtime No fix yet —
Ubuntu 22.04 LTS linux-riscv +2 No fix yet —
Ubuntu 20.04 LTS linux-gke +2 No fix yet —
Ubuntu 18.04 LTS linux 4.15.0-58.64 USN-4094-1
Ubuntu 18.04 LTS linux-aws 4.15.0-1047.49 USN-4118-1
Ubuntu 18.04 LTS linux-azure 5.0.0-1014.14~18.04.1 USN-4093-1
Ubuntu 18.04 LTS linux-gcp +1 4.15.0-1040.42 USN-4094-1
Ubuntu 18.04 LTS linux-hwe 5.0.0-25.26~18.04.1 USN-4093-1
Ubuntu 18.04 LTS linux-hwe-edge No fix yet —
Ubuntu 18.04 LTS linux-kvm 4.15.0-1042.42 USN-4094-1
Ubuntu 18.04 LTS linux-oem 4.15.0-1050.57 USN-4094-1
Ubuntu 18.04 LTS linux-oem-osp1 5.0.0-1018.20 —
Ubuntu 18.04 LTS linux-oracle 4.15.0-1021.23 USN-4094-1
Ubuntu 18.04 LTS linux-raspi2 4.15.0-1043.46 USN-4094-1
Ubuntu 18.04 LTS linux-snapdragon 4.15.0-1060.66 USN-4094-1
Ubuntu 16.04 LTS linux 4.4.0-159.187 USN-4095-1
Ubuntu 16.04 LTS linux-aws 4.4.0-1090.101 USN-4095-1
Ubuntu 16.04 LTS linux-aws-hwe 4.15.0-1047.49~16.04.1 USN-4118-1
Ubuntu 16.04 LTS linux-azure 4.15.0-1055.60 USN-4094-1
Ubuntu 16.04 LTS linux-gcp 4.15.0-1040.42~16.04.1 USN-4094-1
Ubuntu 16.04 LTS linux-hwe 4.15.0-58.64~16.04.1 USN-4094-1
Ubuntu 16.04 LTS linux-kvm 4.4.0-1054.61 USN-4095-1
Ubuntu 16.04 LTS linux-oracle 4.15.0-1021.23~16.04.1 USN-4094-1
Ubuntu 16.04 LTS linux-raspi2 4.4.0-1118.127 USN-4095-1
Ubuntu 16.04 LTS linux-snapdragon 4.4.0-1122.128 USN-4095-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro FIPS 18.04 LTS linux-aws-fips +2 No fix yet —
Ubuntu Pro FIPS-updates 18.04 LTS linux-aws-fips 4.15.0-2018.18 —
Ubuntu Pro FIPS-updates 18.04 LTS linux-azure-fips 4.15.0-2006.7 —
Ubuntu Pro FIPS-updates 16.04 LTS linux-fips 4.4.0-1017.22 —
Ubuntu Pro 14.04 LTS linux-aws 4.4.0-1054.58 —
Ubuntu Pro 14.04 LTS linux-azure 4.15.0-1059.64~14.04.1 —
Ubuntu Pro 14.04 LTS linux-lts-xenial 4.4.0-164.192~14.04.1 —
ReleasePackageFixed inAdvisory
RHEL 8 kernel-rt +12 4.18.0-80.7.2.rt9.154.el8_0 RHSA-2019:2405
RHEL 8 perf +26 4.18.0-80.7.2.el8_0 RHSA-2019:2411
RHEL 7 perf +14 4.14.0-115.12.1.el7a RHSA-2019:2809
ReleasePackageFixed inAdvisory
SLES 12 SP3 kernel-syms +2 4.4.180-94.107.1 SUSE-SU-2019:2949-1
SLES 12 SP3 kgraft-patch-SLE12-SP3_Update_23 7-2.5 SUSE-SU-2019:3258-1
SLES 12 SP3 kgraft-patch-SLE12-SP3_Update_24 +1 6-2.5 SUSE-SU-2019:3258-1
SLES 12 SP3 kgraft-patch-SLE12-SP3_Update_26 6-2.1 SUSE-SU-2019:3228-1
SLES 12 SP3 kgraft-patch-SLE12-SP3_Update_27 +1 4-2.1 SUSE-SU-2019:3230-1, SUSE-SU-2019:3228-1
SLES 12 SP3 kgraft-patch-SLE12-SP3_Update_29 1-4.3.1 SUSE-SU-2019:2949-1
SLES 12 SP2 kernel-syms +2 4.4.121-92.125.1 SUSE-SU-2019:2984-1
SLES 12 SP2 kgraft-patch-SLE12-SP2_Update_27 +2 7-2.5 SUSE-SU-2019:3260-1, SUSE-SU-2019:3232-1
SLES 12 SP2 kgraft-patch-SLE12-SP2_Update_30 6-2.1 SUSE-SU-2019:3261-1
SLES 12 SP2 kgraft-patch-SLE12-SP2_Update_31 5-2.1 SUSE-SU-2019:3261-1
SLES 12 SP2 kgraft-patch-SLE12-SP2_Update_32 4-2.1 SUSE-SU-2019:3263-1
SLES 12 SP2 kgraft-patch-SLE12-SP2_Update_33 1-3.5.1 SUSE-SU-2019:2984-1
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP3 kernel-syms +2 4.4.180-94.107.1 SUSE-SU-2019:2949-1
SLES for SAP 12 SP3 kgraft-patch-SLE12-SP3_Update_23 7-2.5 SUSE-SU-2019:3258-1
SLES for SAP 12 SP3 kgraft-patch-SLE12-SP3_Update_24 +1 6-2.5 SUSE-SU-2019:3258-1
SLES for SAP 12 SP3 kgraft-patch-SLE12-SP3_Update_26 6-2.1 SUSE-SU-2019:3228-1
SLES for SAP 12 SP3 kgraft-patch-SLE12-SP3_Update_27 +1 4-2.1 SUSE-SU-2019:3230-1, SUSE-SU-2019:3228-1
SLES for SAP 12 SP3 kgraft-patch-SLE12-SP3_Update_29 1-4.3.1 SUSE-SU-2019:2949-1
SLES for SAP 12 SP2 kernel-syms +2 4.4.121-92.125.1 SUSE-SU-2019:2984-1
SLES for SAP 12 SP2 kgraft-patch-SLE12-SP2_Update_27 +2 7-2.5 SUSE-SU-2019:3260-1, SUSE-SU-2019:3232-1
SLES for SAP 12 SP2 kgraft-patch-SLE12-SP2_Update_30 6-2.1 SUSE-SU-2019:3261-1
SLES for SAP 12 SP2 kgraft-patch-SLE12-SP2_Update_31 5-2.1 SUSE-SU-2019:3261-1
SLES for SAP 12 SP2 kgraft-patch-SLE12-SP2_Update_32 4-2.1 SUSE-SU-2019:3263-1
SLES for SAP 12 SP2 kgraft-patch-SLE12-SP2_Update_33 1-3.5.1 SUSE-SU-2019:2984-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_0 8-22.2 SUSE-SU-2019:3248-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_1 7-2.1 SUSE-SU-2019:3249-1
SLE Live Patching 15 SP1 kernel-livepatch-SLE15-SP1_Update_2 6-2.1 SUSE-SU-2019:3230-1
SLE Live Patching 15 kernel-livepatch-SLE15_Update_11 5-2.1 SUSE-SU-2019:3249-1
SLE Live Patching 15 kernel-livepatch-SLE15_Update_8 7-2.3 SUSE-SU-2019:3246-1
SLE Live Patching 15 kernel-livepatch-SLE15_Update_9 +1 6-2.3 SUSE-SU-2019:3248-1, SUSE-SU-2019:3247-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_0 9-2.25.1 SUSE-SU-2019:3252-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_1 8-2.5 SUSE-SU-2019:3252-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_2 7-2.5 SUSE-SU-2019:3223-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_3 +1 6-2.5 SUSE-SU-2019:3225-1, SUSE-SU-2019:3224-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_5 5-2.1 SUSE-SU-2019:3230-1
SLE Live Patching 12 SP4 kgraft-patch-SLE12-SP4_Update_6 4-2.1 SUSE-SU-2019:3249-1
SUSE OpenStack Cloud Crowbar 8 kernel-syms +2 4.4.180-94.107.1 SUSE-SU-2019:2949-1
SUSE OpenStack Cloud Crowbar 8 kgraft-patch-SLE12-SP3_Update_29 1-4.3.1 SUSE-SU-2019:2949-1
SUSE OpenStack Cloud 8 kernel-syms +2 4.4.180-94.107.1 SUSE-SU-2019:2949-1
SUSE OpenStack Cloud 8 kgraft-patch-SLE12-SP3_Update_29 1-4.3.1 SUSE-SU-2019:2949-1
SUSE OpenStack Cloud 7 kernel-syms +2 4.4.121-92.125.1 SUSE-SU-2019:2984-1
SUSE OpenStack Cloud 7 kgraft-patch-SLE12-SP2_Update_33 1-3.5.1 SUSE-SU-2019:2984-1
SUSE HPE Helion OpenStack 8 kernel-syms +2 4.4.180-94.107.1 SUSE-SU-2019:2949-1
SUSE HPE Helion OpenStack 8 kgraft-patch-SLE12-SP3_Update_29 1-4.3.1 SUSE-SU-2019:2949-1
SUSE Enterprise Storage 5 kernel-syms +2 4.4.180-94.107.1 SUSE-SU-2019:2949-1
SUSE Enterprise Storage 5 kgraft-patch-SLE12-SP3_Update_29 1-4.3.1 SUSE-SU-2019:2949-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 perf +8 4.14.133-113.105.amzn2 ALAS2-2019-1232

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 perf +19 4.18.0-80.7.2.el8_0 ELSA-2019-2411
Oracle Linux 7 perf +10 4.14.35-1902.4.8.el7uek ELSA-2019-4746

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

GitHub 19 repositories · most starred shown

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 30

References