Improper locking in Linux kernel - CVE-2020-29660

 

Improper locking in Linux kernel - CVE-2020-29660

Published: October 4, 2021


Vulnerability identifier: #VU57039
CSH Severity: Low
CVSS v4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-29660
CWE-ID: CWE-667
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to gain access to sensitive information.

The vulnerability exists due to double-locking error in drivers/tty/tty_io.c and drivers/tty/tty_jobctrl.c. An authenticated local user can exploit this vulnerability to perform a read-after-free attack against TIOCGSID and gain access to sensitive information.


Affected software

Linux kernel
Amazon Linux AMI
Anolis OS
Red Hat CodeReady Linux Builder for x86_64
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for Real Time for NFV
Red Hat Enterprise Linux for Real Time
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for ARM 64
Google Android
Debian Linux
Ubuntu
openEuler
Fedora
linux (Ubuntu package)
linux-raspi2 (Ubuntu package)
linux-lts-xenial (Ubuntu package)
linux-kvm (Ubuntu package)
linux-aws (Ubuntu package)
linux-snapdragon (Ubuntu package)
linux-hwe (Ubuntu package)
linux-gcp (Ubuntu package)
linux-azure (Ubuntu package)
linux-oracle (Ubuntu package)
linux-gke-4.15 (Ubuntu package)
linux-aws-hwe (Ubuntu package)
linux-azure-4.15 (Ubuntu package)
linux-gcp-4.15 (Ubuntu package)
linux (Debian package)
linux-hwe-5.4 (Ubuntu package)
linux-gke-5.4 (Ubuntu package)
linux-gkeop-5.4 (Ubuntu package)
linux-gkeop (Ubuntu package)
linux-raspi (Ubuntu package)
linux-aws-5.4 (Ubuntu package)
linux-azure-5.4 (Ubuntu package)
linux-gcp-5.4 (Ubuntu package)
linux-oracle-5.4 (Ubuntu package)
linux-raspi-5.4 (Ubuntu package)
linux-oem-5.6 (Ubuntu package)
kernel
kernel (Red Hat package)
kernel-rt (Red Hat package)
kernel-source
python3-perf-debuginfo
python3-perf
python2-perf-debuginfo
python2-perf
perf-debuginfo
perf
kernel-tools-devel
kernel-tools-debuginfo
kernel-tools
kernel-devel
kernel-debugsource
kernel-debuginfo
bpftool-debuginfo
bpftool
kernel-debug
kernel-debug-devel
kernel-headers
kernel-tools-libs
kernel-tools-libs-devel
python-perf
linux-image-5.8.0-44-lowlatency (Ubuntu package)
linux-image-5.8.0-44-generic-lpae (Ubuntu package)
linux-image-5.8.0-44-generic (Ubuntu package)
linux-image-5.8.0-44-generic-64k (Ubuntu package)
linux-image-5.8.0-1016-raspi-nolpae (Ubuntu package)
linux-image-5.8.0-1016-raspi (Ubuntu package)
linux-image-5.8.0-1019-kvm (Ubuntu package)
linux-image-5.8.0-1021-oracle (Ubuntu package)
linux-image-5.8.0-1023-gcp (Ubuntu package)
linux-image-5.8.0-1023-azure (Ubuntu package)
linux-image-5.8.0-1024-aws (Ubuntu package)
linux-image-generic (Ubuntu package)
linux-image-generic-64k (Ubuntu package)
linux-image-generic-lpae (Ubuntu package)
linux-image-lowlatency (Ubuntu package)
linux-image-oem-20.04 (Ubuntu package)
linux-image-virtual (Ubuntu package)
linux-image-lowlatency-hwe-20.04 (Ubuntu package)
linux-image-virtual-hwe-20.04 (Ubuntu package)
linux-image-generic-lpae-hwe-20.04 (Ubuntu package)
linux-image-generic-hwe-20.04 (Ubuntu package)
linux-image-generic-64k-hwe-20.04 (Ubuntu package)
linux-image-raspi (Ubuntu package)
linux-image-raspi-nolpae (Ubuntu package)
linux-image-kvm (Ubuntu package)
linux-image-oracle (Ubuntu package)
linux-image-gke (Ubuntu package)
linux-image-azure (Ubuntu package)
linux-image-gcp (Ubuntu package)
linux-image-aws (Ubuntu package)

How to mitigate CVE-2020-29660

Install updates from vendor's website.

Linux kernel - update to 5.9.14
Google Android - addressed in versions 8.1 2021-10-05, 9 2021-10-05, 10 2021-10-05, 11 2021-10-05
linux (Ubuntu package) - addressed in versions 3.13.0-188.239, 4.4.0-203.235, 4.15.0-136.140, 5.4.0-66.74
linux-raspi2 (Ubuntu package) - addressed in versions 4.4.0-1146.156, 4.15.0-1079.84
linux-lts-xenial (Ubuntu package) - update to 4.4.0-203.235~14.04.1
linux-kvm (Ubuntu package) - addressed in versions 4.4.0-1088.97, 4.15.0-1085.87, 5.4.0-1033.34
linux-aws (Ubuntu package) - addressed in versions 4.4.0-1086.90, 4.4.0-1122.136, 4.15.0-1094.101, 5.4.0-1038.40
linux-snapdragon (Ubuntu package) - addressed in versions 4.4.0-1150.160, 4.15.0-1096.105
linux-hwe (Ubuntu package) - update to 4.15.0-136.140~16.04.1
linux-gcp (Ubuntu package) - addressed in versions 4.15.0-1093.106~16.04.1, 5.4.0-1037.40
linux-azure (Ubuntu package) - addressed in versions 4.15.0-1108.120~14.04.1, 4.15.0-1108.120~16.04.1, 5.4.0-1040.42
linux-oracle (Ubuntu package) - addressed in versions 4.15.0-1065.73~16.04.1, 4.15.0-1065.73, 5.4.0-1038.41
linux-gke-4.15 (Ubuntu package) - update to 4.15.0-1079.84
linux-aws-hwe (Ubuntu package) - update to 4.15.0-1094.101~16.04.1
linux-azure-4.15 (Ubuntu package) - update to 4.15.0-1108.120
linux-gcp-4.15 (Ubuntu package) - update to 4.15.0-1093.106
linux (Debian package) - update to 4.19.171-2
linux-hwe-5.4 (Ubuntu package) - update to 5.4.0-66.74~18.04.2
linux-gke-5.4 (Ubuntu package) - update to 5.4.0-1036.38~18.04.1
linux-gkeop-5.4 (Ubuntu package) - update to 5.4.0-1010.11~18.04.1
linux-gkeop (Ubuntu package) - update to 5.4.0-1010.11
linux-raspi (Ubuntu package) - update to 5.4.0-1029.32
linux-aws-5.4 (Ubuntu package) - update to 5.4.0-1038.40~18.04.1
linux-azure-5.4 (Ubuntu package) - update to 5.4.0-1040.42~18.04.1
linux-gcp-5.4 (Ubuntu package) - update to 5.4.0-1037.40~18.04.1
linux-oracle-5.4 (Ubuntu package) - update to 5.4.0-1038.41~18.04.1
linux-raspi-5.4 (Ubuntu package) - update to 5.4.0-1029.32~18.04.1
linux-oem-5.6 (Ubuntu package) - update to 5.6.0-1048.52
kernel - update to 4.14.214-118.339
kernel (Red Hat package) - update to 4.18.0-348.el8
kernel-rt (Red Hat package) - update to 4.18.0-348.rt7.130.el8
kernel-source - update to 4.19.90-2101.1.0.0055
python3-perf-debuginfo - update to 4.19.90-2101.1.0.0055
python3-perf - update to 4.19.90-2101.1.0.0055
python2-perf-debuginfo - update to 4.19.90-2101.1.0.0055
python2-perf - update to 4.19.90-2101.1.0.0055
perf-debuginfo - update to 4.19.90-2101.1.0.0055
perf - update to 4.19.90-2101.1.0.0055
kernel-tools-devel - update to 4.19.90-2101.1.0.0055
kernel-tools-debuginfo - update to 4.19.90-2101.1.0.0055
kernel-tools - update to 4.19.90-2101.1.0.0055
kernel-devel - update to 4.19.90-2101.1.0.0055
kernel-debugsource - update to 4.19.90-2101.1.0.0055
kernel-debuginfo - update to 4.19.90-2101.1.0.0055
bpftool-debuginfo - update to 4.19.90-2101.1.0.0055
bpftool - update to 4.19.90-2101.1.0.0055
kernel - update to 4.19.90-2101.1.0.0055
kernel - update to 4.19.91-26
bpftool - update to 4.19.91-26
kernel-debug - update to 4.19.91-26
kernel-debug-devel - update to 4.19.91-26
kernel-devel - update to 4.19.91-26
kernel-headers - update to 4.19.91-26
kernel-tools - update to 4.19.91-26
kernel-tools-libs - update to 4.19.91-26
kernel-tools-libs-devel - update to 4.19.91-26
perf - update to 4.19.91-26
python-perf - update to 4.19.91-26
kernel - addressed in versions 5.9.14-100.fc32, 5.9.14-200.fc33
linux-image-5.8.0-44-lowlatency (Ubuntu package) - update to 5.8.0-44.50~20.04.1
linux-image-5.8.0-44-generic-lpae (Ubuntu package) - update to 5.8.0-44.50~20.04.1
linux-image-5.8.0-44-generic (Ubuntu package) - update to 5.8.0-44.50~20.04.1
linux-image-5.8.0-44-generic-64k (Ubuntu package) - update to 5.8.0-44.50
linux-image-5.8.0-1016-raspi-nolpae (Ubuntu package) - update to 5.8.0-1016.19
linux-image-5.8.0-1016-raspi (Ubuntu package) - update to 5.8.0-1016.19
linux-image-5.8.0-1019-kvm (Ubuntu package) - update to 5.8.0-1019.21
linux-image-5.8.0-1021-oracle (Ubuntu package) - update to 5.8.0-1021.22
linux-image-5.8.0-1023-gcp (Ubuntu package) - update to 5.8.0-1023.24
linux-image-5.8.0-1023-azure (Ubuntu package) - update to 5.8.0-1023.25
linux-image-5.8.0-1024-aws (Ubuntu package) - update to 5.8.0-1024.26
linux-image-generic (Ubuntu package) - update to 5.8.0.44.49
linux-image-generic-64k (Ubuntu package) - update to 5.8.0.44.49
linux-image-generic-lpae (Ubuntu package) - update to 5.8.0.44.49
linux-image-lowlatency (Ubuntu package) - update to 5.8.0.44.49
linux-image-oem-20.04 (Ubuntu package) - update to 5.8.0.44.49
linux-image-virtual (Ubuntu package) - update to 5.8.0.44.49
linux-image-lowlatency-hwe-20.04 (Ubuntu package) - update to 5.8.0.44.50~20.04.30
linux-image-virtual-hwe-20.04 (Ubuntu package) - update to 5.8.0.44.50~20.04.30
linux-image-generic-lpae-hwe-20.04 (Ubuntu package) - update to 5.8.0.44.50~20.04.30
linux-image-generic-hwe-20.04 (Ubuntu package) - update to 5.8.0.44.50~20.04.30
linux-image-generic-64k-hwe-20.04 (Ubuntu package) - update to 5.8.0.44.50~20.04.30
linux-image-raspi (Ubuntu package) - update to 5.8.0.1016.19
linux-image-raspi-nolpae (Ubuntu package) - update to 5.8.0.1016.19
linux-image-kvm (Ubuntu package) - update to 5.8.0.1019.21
linux-image-oracle (Ubuntu package) - update to 5.8.0.1021.20
linux-image-gke (Ubuntu package) - update to 5.8.0.1023.23
linux-image-azure (Ubuntu package) - update to 5.8.0.1023.23
linux-image-gcp (Ubuntu package) - update to 5.8.0.1023.23
linux-image-aws (Ubuntu package) - update to 5.8.0.1024.26

External References

Related Security Bulletins