CVE-2020-10690

kernel: use-after-free in cdev_put() when a PTP device is removed while it's chardev is open

Published May 8, 2020 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
There is a use-after-free in kernel versions before 5.5 due to a race condition between the release of ptp_clock and cdev while resource deallocation. When a (high privileged) process allocates a ptp device file (like /dev/ptpX) and voluntarily goes to sleep. During this time if the underlying device is removed, it can cause an exploitable condition as the process wakes up to terminate and clean all attached files. The system crashes due to the cdev structure being invalid (as already freed) which is pointed to by the inode.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2241-1 linux security update
Debian DLA Debian DLA DLA-2241-2 linux security update
EUVD EUVD EUVD-2020-3124 There is a use-after-free in kernel versions before 5.5 due to a race condition between the release of ptp_clock and cdev while resource deallocation. When a (high privileged) process allocates a ptp device file (like /dev/ptpX) and voluntarily goes to sleep. During this time if the underlying device is removed, it can cause an exploitable condition as the process wakes up to terminate and clean all attached files. The system crashes due to the cdev structure being invalid (as already freed) which is pointed to by the inode.
Ubuntu USN Ubuntu USN USN-4419-1 Linux kernel vulnerabilities
History

No history.