CVE
CVE-2019-13272
CNA 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.
Affected versions
All Linux kernel vulnerabilities →
- ≥ 4.20, < 5.1.17Fixed in 5.1.17
- ≥ 4.15, < 4.19.58Fixed in 4.19.58
- ≥ 4.10, < 4.14.133Fixed in 4.14.133
- ≥ 4.9.1, < 4.9.185Fixed in 4.9.185
- ≥ 4.8.16, < 4.9Fixed in 4.9
- ≥ 4.4.40, < 4.4.185Fixed in 4.4.185
- ≥ 4.1.39, < 4.2Fixed in 4.2
- ≥ 3.16.52, < 3.16.71Fixed in 3.16.71
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- access.redhat.com/errata/RHSA-2019:2405 · Third Party Advisory
- access.redhat.com/errata/RHSA-2019:2411 · Third Party Advisory
- access.redhat.com/errata/RHSA-2019:2809 · Third Party Advisory
- cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.1.17 · Patch, Vendor Advisory
- git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/ · Patch, Vendor Advisory
- lists.debian.org/debian-lts-announce/2019/07/msg00022.html · Third Party Advisory
- lists.debian.org/debian-lts-announce/2019/07/msg00023.html · Third Party Advisory
- usn.ubuntu.com/4093-1/ · Third Party Advisory
- usn.ubuntu.com/4094-1/ · Third Party Advisory
- usn.ubuntu.com/4095-1/ · Third Party Advisory
- usn.ubuntu.com/4117-1/ · Third Party Advisory
- usn.ubuntu.com/4118-1/ · Third Party Advisory
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.