CWE Code: 264
Vulnerability Type: privilege_escalation
CVSS Score: 7.2
CWE Name:  Permissions Privileges and Access Controls
Summary: 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.
Access Authentication: NONE
Access Complexity: LOW
Access Vector: LOCAL
Impact (C/I/A): COMPLETE/COMPLETE/COMPLETE
Published Date: 2019-07-17
Last Modified Date: 2019-07-25
You are a cybersecurity expert assistant. Provide detailed information about vulnerabilities in a clear and structured format.
system
Please provide details about this vulnerability:  Permissions Privileges and Access Controls.
user
CWE Code: 264
Vulnerability Type: privilege_escalation
CVSS Score: 7.2
CWE Name:  Permissions Privileges and Access Controls
Summary: 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.
Access Authentication: NONE
Access Complexity: LOW
Access Vector: LOCAL
Impact (C/I/A): COMPLETE/COMPLETE/COMPLETE
Published Date: 2019-07-17
Last Modified Date: 2019-07-25
assistant