Use-after-free in Linux kernel - CVE-2020-10690
Published: May 8, 2020 / Updated: July 17, 2020
Vulnerability details
The vulnerability allows a local privileged user to execute arbitrary code.
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.
Affected software
Red Hat Enterprise Linux for Real Time
Red Hat Enterprise Linux for Real Time for NFV
Red Hat Enterprise Linux Workstation
Slackware Linux
Ubuntu
Oracle VM Server for x86
linux (Ubuntu package)
linux-raspi2 (Ubuntu package)
linux-lts-xenial (Ubuntu package)
linux-aws (Ubuntu package)
linux-kvm (Ubuntu package)
linux-snapdragon (Ubuntu package)
kernel (Red Hat package)
kernel-rt (Red Hat package)
linux-4.4.227/kernel-generic
linux-4.4.227/kernel-huge
linux-4.4.227/kernel-modules
linux-4.4.227/kernel-headers
How to mitigate CVE-2020-10690
linux (Ubuntu package) - update to 4.4.0-185.215
linux-raspi2 (Ubuntu package) - update to 4.4.0-1135.144
linux-lts-xenial (Ubuntu package) - update to 4.4.0-185.215~14.04.1
linux-aws (Ubuntu package) - addressed in versions 4.4.0-1074.78, 4.4.0-1110.121
linux-kvm (Ubuntu package) - update to 4.4.0-1076.83
linux-snapdragon (Ubuntu package) - update to 4.4.0-1139.147
kernel (Red Hat package) - update to 3.10.0-1160.el7
kernel-rt (Red Hat package) - update to 3.10.0-1160.rt56.1131.el7
linux-4.4.227/kernel-generic - update to 4.4.227
linux-4.4.227/kernel-huge - update to 4.4.227
linux-4.4.227/kernel-modules - update to 4.4.227
linux-4.4.227/kernel-headers - update to 4.4.227_smp
External References
- http://lists.opensuse.org/opensuse-security-announce/2020-06/msg00022.html
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-10690
- https://lists.debian.org/debian-lts-announce/2020/06/msg00011.html
- https://lists.debian.org/debian-lts-announce/2020/06/msg00013.html
- https://security.netapp.com/advisory/ntap-20200608-0001/