Headline
CVE-2020-10690: use-after-free in cdev_put() when a PTP device is removed while it's chardev is open
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.
Bug 1817141 (CVE-2020-10690) - CVE-2020-10690 kernel: use-after-free in cdev_put() when a PTP device is removed while it’s chardev is open
Summary: CVE-2020-10690 kernel: use-after-free in cdev_put() when a PTP device is remo…
Keywords:
Status:
CLOSED ERRATA
Alias:
CVE-2020-10690
Product:
Security Response
Classification:
Other
Component:
vulnerability
Sub Component:
Version:
unspecified
Hardware:
All
OS:
Linux
Priority:
low
Severity:
low
Target Milestone:
—
Assignee:
Red Hat Product Security
QA Contact:
Docs Contact:
URL:
Whiteboard:
Depends On:
1774657 1787568 1798395 1817354 1817355 1817356 1817357 1817358 1826223 1888688
Blocks:
1811167
TreeView+
depends on / blocked
Reported:
2020-03-25 16:45 UTC by Guilherme de Almeida Suckevicz
Modified:
2021-02-16 20:23 UTC (History)
CC List:
48 users (show)
Fixed In Version:
kernel 5.5
Doc Type:
If docs needed, set a value
Doc Text:
There is a use-after-free problem seen 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.
Clone Of:
Environment:
Last Closed:
2020-09-29 22:00:24 UTC
Attachments
(Terms of Use)
Add an attachment (proposed patch, testcase, etc.)
Links
System
ID
Private
Priority
Status
Summary
Last Updated
Red Hat Product Errata
RHBA-2020:4416
0
None
None
None
2020-10-29 15:10:21 UTC
Red Hat Product Errata
RHBA-2020:4417
0
None
None
None
2020-10-29 15:08:50 UTC
Red Hat Product Errata
RHBA-2020:4418
0
None
None
None
2020-10-29 15:14:14 UTC
Red Hat Product Errata
RHBA-2020:4419
0
None
None
None
2020-10-29 15:12:40 UTC
Red Hat Product Errata
RHBA-2020:4420
0
None
None
None
2020-10-29 15:51:34 UTC
Red Hat Product Errata
RHSA-2020:4060
0
None
None
None
2020-09-29 20:53:36 UTC
Red Hat Product Errata
RHSA-2020:4062
0
None
None
None
2020-09-29 18:59:29 UTC