Improper locking in Linux kernel - CVE-2020-29661
Published: March 17, 2021 / Updated: August 9, 2024
Vulnerability details
The vulnerability allows a local user to perform a escalate privileges on the system.
The vulnerability exists due to locking error in the tty subsystem of the Linux kernel in drivers/tty/tty_jobctrl.c. An local user can exploit this vulnerability to trigger a use-after-free error against TIOCSPGRP and execute arbitrary code with elevated privileges.
Affected software
Amazon Linux AMI
Red Hat Enterprise Linux Server - Extended Life Cycle Support
Red Hat Enterprise Linux Server - Extended Life Cycle Support (for IBM z Systems)
Red Hat Enterprise Linux Workstation
Anolis OS
Red Hat Enterprise Linux for IBM System z (Structure A)
Red Hat Enterprise Linux for Power 9
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux for Real Time for NFV
Red Hat Enterprise Linux for Real Time
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for Power, big endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Virtualization Host - Extended Update Support 4.2 for RHEL
Red Hat Enterprise Linux for Power, big endian - Extended Update Support
Red Hat Enterprise Linux EUS Compute Node
Red Hat CodeReady Linux Builder for ARM 64
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for ARM 64
Red Hat CodeReady Linux Builder for x86_64
Red Hat CodeReady Linux Builder for Power, little endian
Google Android
Debian Linux
Ubuntu
openEuler
Fedora
kpatch-patch-3_10_0-1062_21_1 (Red Hat package)
kpatch-patch-3_10_0-957_46_1 (Red Hat package)
kpatch-patch-3_10_0-957_48_1 (Red Hat package)
kernel (Red Hat package)
kernel-rt (Red Hat package)
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
linux (Ubuntu package)
linux-raspi2 (Ubuntu package)
linux-lts-xenial (Ubuntu package)
linux-aws (Ubuntu package)
linux-kvm (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-4.19 (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)
kpatch-patch-3_10_0-957_61_1 (Red Hat package)
kpatch-patch-3_10_0-1062_40_1 (Red Hat package)
kpatch-patch-3_10_0-1062_37_1 (Red Hat package)
kpatch-patch-3_10_0-1062_36_1 (Red Hat package)
kpatch-patch-3_10_0-1062_33_1 (Red Hat package)
kpatch-patch-3_10_0-1062_31_3 (Red Hat package)
kpatch-patch-3_10_0-1062_31_2 (Red Hat package)
kpatch-patch-3_10_0-1062_30_1 (Red Hat package)
kpatch-patch-3_10_0-1062_26_1 (Red Hat package)
kpatch-patch-3_10_0-957_66_1 (Red Hat package)
kpatch-patch-3_10_0-957_65_1 (Red Hat package)
kpatch-patch-3_10_0-957_62_1 (Red Hat package)
kpatch-patch-3_10_0-957_61_2 (Red Hat package)
kpatch-patch-3_10_0-957_58_2 (Red Hat package)
kpatch-patch-3_10_0-957_56_1 (Red Hat package)
kpatch-patch-3_10_0-957_54_1 (Red Hat package)
kpatch-patch-3_10_0-1062_43_1 (Red Hat package)
kpatch-patch-3_10_0-1062_45_1 (Red Hat package)
kpatch-patch-3_10_0-1160_15_2 (Red Hat package)
kpatch-patch-3_10_0-1160_11_1 (Red Hat package)
kpatch-patch-3_10_0-1160_6_1 (Red Hat package)
kpatch-patch-3_10_0-1160_2_2 (Red Hat package)
kpatch-patch-3_10_0-1160_2_1 (Red Hat package)
kpatch-patch-3_10_0-1160 (Red Hat package)
kernel-alt (Red Hat package)
kernel
bpftool-debuginfo
kernel-debuginfo
kernel-debugsource
kernel-devel
kernel-source
kernel-tools
kernel-tools-debuginfo
kernel-tools-devel
perf
perf-debuginfo
python2-perf
python2-perf-debuginfo
python3-perf
python3-perf-debuginfo
bpftool
python-perf
kernel-tools-libs
kernel-tools-libs-devel
kernel-debug
kernel-debug-devel
kernel-headers
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-virtual (Ubuntu package)
linux-image-generic-lpae (Ubuntu package)
linux-image-generic-64k (Ubuntu package)
linux-image-oem-20.04 (Ubuntu package)
linux-image-lowlatency (Ubuntu package)
linux-image-generic-lpae-hwe-20.04 (Ubuntu package)
linux-image-lowlatency-hwe-20.04 (Ubuntu package)
linux-image-generic-64k-hwe-20.04 (Ubuntu package)
linux-image-generic-hwe-20.04 (Ubuntu package)
linux-image-virtual-hwe-20.04 (Ubuntu package)
linux-image-raspi-nolpae (Ubuntu package)
linux-image-raspi (Ubuntu package)
linux-image-kvm (Ubuntu package)
linux-image-oracle (Ubuntu package)
linux-image-azure (Ubuntu package)
linux-image-gcp (Ubuntu package)
linux-image-gke (Ubuntu package)
linux-image-aws (Ubuntu package)
Red Hat Advanced Cluster Management for Kubernetes
Session Smart Router
Data Computing Appliance (DCA)
IBM Netezza Host Management
Dell EMC VxRail Appliance
Juniper Junos Space
How to mitigate CVE-2020-29661
kpatch-patch-3_10_0-1062_21_1 (Red Hat package) - update to 1-3.el7
kpatch-patch-3_10_0-957_46_1 (Red Hat package) - update to 1-4.el7
kpatch-patch-3_10_0-957_48_1 (Red Hat package) - update to 1-4.el7
kernel (Red Hat package) - addressed in versions 2.6.32-754.39.1.el6, 3.10.0-693.87.1.el7, 3.10.0-957.70.1.el7, 3.10.0-1062.46.1.el7, 3.10.0-1160.21.1.el7, 4.18.0-240.15.1.el8_3
kernel-rt (Red Hat package) - addressed in versions 3.10.0-1160.21.1.rt56.1158.el7, 4.18.0-240.15.1.rt7.69.el8_3
Google Android - addressed in versions 8.1 2021-05-05, 9.0 2021-05-05, 10 2021-05-05, 11 2021-05-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-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-kvm (Ubuntu package) - addressed in versions 4.4.0-1088.97, 4.15.0-1085.87, 5.4.0-1033.34
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-4.19 (Debian package) - update to 4.19.171-2~deb9u1
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
kpatch-patch-3_10_0-957_61_1 (Red Hat package) - update to 1-1.el7
kpatch-patch-3_10_0-1062_40_1 (Red Hat package) - update to 1-1.el7
kpatch-patch-3_10_0-1062_37_1 (Red Hat package) - update to 1-1.el7
kpatch-patch-3_10_0-1062_36_1 (Red Hat package) - update to 1-1.el7
kpatch-patch-3_10_0-1062_33_1 (Red Hat package) - update to 1-1.el7
kpatch-patch-3_10_0-1062_31_3 (Red Hat package) - update to 1-1.el7
kpatch-patch-3_10_0-1062_31_2 (Red Hat package) - update to 1-1.el7
kpatch-patch-3_10_0-1062_30_1 (Red Hat package) - update to 1-1.el7
kpatch-patch-3_10_0-1062_26_1 (Red Hat package) - update to 1-1.el7
kpatch-patch-3_10_0-957_66_1 (Red Hat package) - update to 1-1.el7
kpatch-patch-3_10_0-957_65_1 (Red Hat package) - update to 1-1.el7
kpatch-patch-3_10_0-957_62_1 (Red Hat package) - update to 1-1.el7
kpatch-patch-3_10_0-957_61_2 (Red Hat package) - update to 1-1.el7
kpatch-patch-3_10_0-957_58_2 (Red Hat package) - update to 1-1.el7
kpatch-patch-3_10_0-957_56_1 (Red Hat package) - update to 1-1.el7
kpatch-patch-3_10_0-957_54_1 (Red Hat package) - update to 1-1.el7
kpatch-patch-3_10_0-1062_43_1 (Red Hat package) - update to 1-1.el7
kpatch-patch-3_10_0-1062_45_1 (Red Hat package) - update to 1-1.el7
kpatch-patch-3_10_0-1160_15_2 (Red Hat package) - update to 1-2.el7
kpatch-patch-3_10_0-1160_11_1 (Red Hat package) - update to 1-2.el7
kpatch-patch-3_10_0-1160_6_1 (Red Hat package) - update to 1-3.el7
kpatch-patch-3_10_0-1160_2_2 (Red Hat package) - update to 1-3.el7
kpatch-patch-3_10_0-1160_2_1 (Red Hat package) - update to 1-3.el7
kpatch-patch-3_10_0-1160 (Red Hat package) - update to 1-3.el7
kernel-alt (Red Hat package) - update to 4.14.0-115.35.1.el7a
kernel - update to 4.14.214-118.339
bpftool-debuginfo - update to 4.19.90-2101.1.0.0055
kernel-debuginfo - update to 4.19.90-2101.1.0.0055
kernel-debugsource - update to 4.19.90-2101.1.0.0055
kernel-devel - update to 4.19.90-2101.1.0.0055
kernel-source - update to 4.19.90-2101.1.0.0055
kernel-tools - update to 4.19.90-2101.1.0.0055
kernel-tools-debuginfo - update to 4.19.90-2101.1.0.0055
kernel-tools-devel - update to 4.19.90-2101.1.0.0055
perf - update to 4.19.90-2101.1.0.0055
perf-debuginfo - update to 4.19.90-2101.1.0.0055
python2-perf - update to 4.19.90-2101.1.0.0055
python2-perf-debuginfo - update to 4.19.90-2101.1.0.0055
python3-perf - update to 4.19.90-2101.1.0.0055
python3-perf-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
python-perf - 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
kernel-tools - update to 4.19.91-26
bpftool - update to 4.19.91-26
kernel - 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 - addressed in versions 5.9.14-100.fc32, 5.9.14-200.fc33
Red Hat Advanced Cluster Management for Kubernetes - update to 2.0.8
Data Computing Appliance (DCA) - update to 4.3.0.0
Session Smart Router - addressed in versions 5.4.7, 5.5.3
IBM Netezza Host Management - update to 5.4.31.0
Dell EMC VxRail Appliance - update to 7.0.240
Juniper Junos Space - update to 21.2R1
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-virtual (Ubuntu package) - update to 5.8.0.44.49
linux-image-generic-lpae (Ubuntu package) - update to 5.8.0.44.49
linux-image-generic-64k (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-lowlatency (Ubuntu package) - update to 5.8.0.44.49
linux-image-generic-lpae-hwe-20.04 (Ubuntu package) - update to 5.8.0.44.50~20.04.30
linux-image-lowlatency-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-generic-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-raspi-nolpae (Ubuntu package) - update to 5.8.0.1016.19
linux-image-raspi (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-azure (Ubuntu package) - update to 5.8.0.1023.23
linux-image-gcp (Ubuntu package) - update to 5.8.0.1023.23
linux-image-gke (Ubuntu package) - update to 5.8.0.1023.23
linux-image-aws (Ubuntu package) - update to 5.8.0.1024.26
Links to Public Exploits and PoC-codes
External References
- http://packetstormsecurity.com/files/160681/Linux-TIOCSPGRP-Broken-Locking.html
- http://www.openwall.com/lists/oss-security/2020/12/10/1
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=54ffccbf053b5b6ca4f6e45094b942fab92a25fc
- https://lists.debian.org/debian-lts-announce/2021/02/msg00018.html
- https://lists.debian.org/debian-lts-announce/2021/03/msg00010.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BOB25SU6XUL4TNP7KB63WNZSYTIYFDPP/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MZ7OAKAEFAXQRGBZK4LYUWINCD3D2XCL/
- https://security.netapp.com/advisory/ntap-20210122-0001/
- https://www.debian.org/security/2021/dsa-4843
Related Security Bulletins
- Privilege escalation in tty subsystem in Linux kernel
- Red Hat Enterprise Linux 7.6 update for kernel
- Red Hat Enterprise Linux 7 update for kernel
- Red Hat Enterprise Linux 7 update for kernel-rt
- Red Hat Enterprise Linux 7 update for kpatch-patch
- Red Hat Enterprise Linux 7.6 update for kpatch-patch
- Red Hat Enterprise Linux 7.7 update for kpatch-patch
- Red Hat Enterprise Linux 7.7 update for kernel
- Red Hat Enterprise Linux 6 Extended Lifecycle Support update for kernel
- Multiple vulnerabilities in Google Android
- Red Hat Enterprise Linux 7.4 update for kernel
- Multiple vulnerabilities in Junos Space
- Multiple vulnerabilities in Dell EMC VxRail Appliance
- Ubuntu update for linux
- Ubuntu update for linux
- Multiple vulnerabilities in IBM Netezza Host Management
- Multiple vulnerabilities in Juniper Networks Session Smart Router
- Multiple vulnerabilities in Dell EMC Data Computing Appliance (DCA)
- Red Hat Enterprise Linux 7 update for kernel-alt
- Red Hat Enterprise Linux 8 update for kernel
- Red Hat Enterprise Linux 8 update for kernel-rt
- Amazon Linux AMI update for kernel
- Multiple vulnerabilities in Red Hat Advanced Cluster Management for Kubernetes 2.0
- Ubuntu update for linux-oem-5.6
- Ubuntu update for linux
- Ubuntu update for linux
- Ubuntu update for linux
- openEuler update for kernel
- Anolis OS update for kernel(ANCK)4.19
- Fedora 33 update for kernel
- Fedora 32 update for kernel
- Buffer overflow in Xen
- Debian update for linux-4.19