Overview
About vulnerability
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.Details
- Affected product:
- AlmaLinux 8 , CentOS 6 , CentOS 6 ALT , CentOS 6 plus , CentOS 7 , CentOS 7 ALT , CentOS 7 ELS , CentOS 7 plus , CentOS 8 , CentOS 8.4 ELS , CentOS 8.5 ELS , CentOS Stream 8 ELS , CloudLinux 7 ELS , CloudLinux OS 6 , CloudLinux OS 6h , CloudLinux OS 7 , CloudLinux OS 7h , CloudLinux OS 8 , Debian 10 , Debian 10 cloud , Debian 8 , Debian 9 , Endurance 6 elrepo , Endurance 7 eig 3.10 , Endurance 7 eig 4.14 , OEL 6 Dell , OEL 7 Dell , OEL 8 Dell , OpenVZ 6 , Oracle Linux 7 , Oracle Linux 7 ELS , Oracle Linux 8 , Proofpoint , Proxmox VE 5 , Proxmox VE 6 , RHEL 6 , RHEL 7 , RHEL 7 ELS , RHEL 8 , Rocky Linux 8 , Scientific 6 , Ubuntu 14.04 , Ubuntu 14.04 ESM , Ubuntu 16.04 , Ubuntu 16.04 ELS , Ubuntu 16.04 ESM , Ubuntu 18.04 , Ubuntu 18.04 ELS , Ubuntu 19.04 , Ubuntu 19.10 , Upstream 3.16 , Upstream 4.14 , Upstream 4.19 , Upstream 4.4 , Upstream 4.9
- Affected packages:
- kernel @ - (+75 more)