Buffer overflow in Linux kernel - CVE-2021-43267

 

Buffer overflow in Linux kernel - CVE-2021-43267

Published: November 17, 2021 / Updated: October 23, 2022


Vulnerability identifier: #VU58209
CSH Severity: Medium
CVSS v4 BT: 7.4 [CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Green]
CVE-ID: CVE-2021-43267
CWE-ID: CWE-119
Exploitation vector: Adjecent network
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists due to insufficient validation of user-supplied input in net/tipc/crypto.c in the Linux kernel. The Transparent Inter-Process Communication (TIPC) functionality allows remote attackers to exploit insufficient validation of user-supplied sizes for the MSG_CRYPTO message type.

A remote attacker can send specially crafted MSG_CRYPTO messages to the affected system, trigger memory corruption and execute arbitrary code on the system.


Affected software

Linux kernel
Red Hat Enterprise Linux for Real Time
Red Hat CodeReady Linux Builder for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for Real Time for NFV
Red Hat Enterprise Linux for x86_64
Anolis OS
Red Hat CodeReady Linux Builder for x86_64
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for IBM z Systems
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat CodeReady Linux Builder for x86_64 - Extended Update Support
Red Hat CodeReady Linux Builder for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat CodeReady Linux Builder for ARM 64 - Extended Update Support
Ubuntu
Fedora
kpatch-patch-4_18_0-305_17_1 (Red Hat package)
kpatch-patch-4_18_0-305_7_1 (Red Hat package)
kpatch-patch-4_18_0-305_19_1 (Red Hat package)
kpatch-patch-4_18_0-305_3_1 (Red Hat package)
kpatch-patch-4_18_0-305 (Red Hat package)
kpatch-patch-4_18_0-305_12_1 (Red Hat package)
kpatch-patch-4_18_0-305_10_2 (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
kpatch-patch-4_18_0-348 (Red Hat package)
kpatch-patch-4_18_0-305_25_1 (Red Hat package)
kernel-debug-modules-extra
kernel-tools-libs
kernel-debug-modules
kernel-debug-devel
kernel-debug-core
kernel-debug
kernel-cross-headers
kernel-core
kernel
bpftool
kernel-devel
kernel-headers
kernel-modules
kernel-modules-extra
kernel-tools
perf
python3-perf
kernel-doc
linux-image-5.10.0-1053-oem (Ubuntu package)
linux-image-oem-20.04 (Ubuntu package)
linux-image-oem-20.04b (Ubuntu package)
linux-image-virtual (Ubuntu package)
linux-image-generic-64k (Ubuntu package)
linux-image-generic (Ubuntu package)
linux-image-lowlatency (Ubuntu package)
linux-image-generic-lpae (Ubuntu package)
linux-image-5.11.0-44-generic-lpae (Ubuntu package)
linux-image-5.11.0-44-generic (Ubuntu package)
linux-image-5.11.0-44-lowlatency (Ubuntu package)
linux-image-5.11.0-44-generic-64k (Ubuntu package)
linux-image-generic-64k-hwe-20.04 (Ubuntu package)
linux-image-generic-lpae-hwe-20.04 (Ubuntu package)
linux-image-virtual-hwe-20.04 (Ubuntu package)
linux-image-generic-hwe-20.04 (Ubuntu package)
linux-image-lowlatency-hwe-20.04 (Ubuntu package)
linux-image-kvm (Ubuntu package)
linux-image-5.11.0-1021-kvm (Ubuntu package)
linux-image-5.11.0-1023-aws (Ubuntu package)
linux-image-oracle (Ubuntu package)
linux-image-5.11.0-1023-azure (Ubuntu package)
linux-image-5.11.0-1023-oracle (Ubuntu package)
linux-image-azure (Ubuntu package)
linux-image-aws (Ubuntu package)
linux-image-raspi (Ubuntu package)
linux-image-raspi-nolpae (Ubuntu package)
linux-image-gcp (Ubuntu package)
linux-image-gke (Ubuntu package)
linux-image-5.11.0-1024-raspi-nolpae (Ubuntu package)
linux-image-5.11.0-1024-gcp (Ubuntu package)
linux-image-5.11.0-1024-raspi (Ubuntu package)
linux-image-5.13.0-23-generic (Ubuntu package)
linux-image-5.13.0-23-generic-lpae (Ubuntu package)
linux-image-5.13.0-23-lowlatency (Ubuntu package)
linux-image-5.13.0-23-generic-64k (Ubuntu package)
linux-image-5.13.0-1007-kvm (Ubuntu package)
linux-image-5.13.0-1008-aws (Ubuntu package)
linux-image-5.13.0-1008-gcp (Ubuntu package)
linux-image-5.13.0-1009-azure (Ubuntu package)
linux-image-5.13.0-1011-oracle (Ubuntu package)
linux-image-5.13.0-1012-raspi (Ubuntu package)
linux-image-5.13.0-1012-raspi-nolpae (Ubuntu package)
linux-image-oem-20.04c (Ubuntu package)
linux-image-5.13.0-1026-oem (Ubuntu package)
linux-image-5.14.0-1008-oem (Ubuntu package)
linux-image-oem-20.04d (Ubuntu package)
Red Hat Advanced Cluster Management for Kubernetes
RecoverPoint for VMs
Pixel

How to mitigate CVE-2021-43267

Install updates from vendor's website.

Linux kernel - update to 5.14.16
kpatch-patch-4_18_0-305_17_1 (Red Hat package) - update to 1-3.el8_4
kpatch-patch-4_18_0-305_7_1 (Red Hat package) - update to 1-6.el8_4
kpatch-patch-4_18_0-305_19_1 (Red Hat package) - update to 1-3.el8_4
kpatch-patch-4_18_0-305_3_1 (Red Hat package) - update to 1-7.el8_4
kpatch-patch-4_18_0-305 (Red Hat package) - update to 1-8.el8
kpatch-patch-4_18_0-305_12_1 (Red Hat package) - update to 1-4.el8_4
kpatch-patch-4_18_0-305_10_2 (Red Hat package) - update to 1-5.el8_4
kernel (Red Hat package) - addressed in versions 4.18.0-305.28.1.el8_4, 4.18.0-348.2.1.el8_5
kernel-rt (Red Hat package) - addressed in versions 4.18.0-305.28.1.rt7.100.el8_4, 4.18.0-348.2.1.rt7.132.el8_5
kpatch-patch-4_18_0-348 (Red Hat package) - update to 1-1.el8
kpatch-patch-4_18_0-305_25_1 (Red Hat package) - update to 1-2.el8_4
Red Hat Advanced Cluster Management for Kubernetes - update to 2.2.10
kernel-debug-modules-extra - update to 4.18.0-305.28.1
kernel-tools-libs - update to 4.18.0-305.28.1
kernel-debug-modules - update to 4.18.0-305.28.1
kernel-debug-devel - update to 4.18.0-305.28.1
kernel-debug-core - update to 4.18.0-305.28.1
kernel-debug - update to 4.18.0-305.28.1
kernel-cross-headers - update to 4.18.0-305.28.1
kernel-core - update to 4.18.0-305.28.1
kernel - update to 4.18.0-305.28.1
bpftool - update to 4.18.0-305.28.1
kernel-devel - update to 4.18.0-305.28.1
kernel-headers - update to 4.18.0-305.28.1
kernel-modules - update to 4.18.0-305.28.1
kernel-modules-extra - update to 4.18.0-305.28.1
kernel-tools - update to 4.18.0-305.28.1
perf - update to 4.18.0-305.28.1
python3-perf - update to 4.18.0-305.28.1
kernel-doc - update to 4.18.0-305.28.1
linux-image-5.10.0-1053-oem (Ubuntu package) - update to 5.10.0-1053.55
linux-image-oem-20.04 (Ubuntu package) - addressed in versions 5.10.0.1053.55, 5.11.0.44.44, 5.13.0.23.34
linux-image-oem-20.04b (Ubuntu package) - update to 5.10.0.1053.55
linux-image-virtual (Ubuntu package) - addressed in versions 5.11.0.44.44, 5.13.0.23.34
linux-image-generic-64k (Ubuntu package) - addressed in versions 5.11.0.44.44, 5.13.0.23.34
linux-image-generic (Ubuntu package) - addressed in versions 5.11.0.44.44, 5.13.0.23.34
linux-image-lowlatency (Ubuntu package) - addressed in versions 5.11.0.44.44, 5.13.0.23.34
linux-image-generic-lpae (Ubuntu package) - addressed in versions 5.11.0.44.44, 5.13.0.23.34
linux-image-5.11.0-44-generic-lpae (Ubuntu package) - addressed in versions 5.11.0-44.48, 5.11.0-44.48~20.04.2
linux-image-5.11.0-44-generic (Ubuntu package) - addressed in versions 5.11.0-44.48, 5.11.0-44.48~20.04.2
linux-image-5.11.0-44-lowlatency (Ubuntu package) - addressed in versions 5.11.0-44.48, 5.11.0-44.48~20.04.2
linux-image-5.11.0-44-generic-64k (Ubuntu package) - addressed in versions 5.11.0-44.48, 5.11.0-44.48~20.04.2
linux-image-generic-64k-hwe-20.04 (Ubuntu package) - update to 5.11.0.44.48~20.04.22
linux-image-generic-lpae-hwe-20.04 (Ubuntu package) - update to 5.11.0.44.48~20.04.22
linux-image-virtual-hwe-20.04 (Ubuntu package) - update to 5.11.0.44.48~20.04.22
linux-image-generic-hwe-20.04 (Ubuntu package) - update to 5.11.0.44.48~20.04.22
linux-image-lowlatency-hwe-20.04 (Ubuntu package) - update to 5.11.0.44.48~20.04.22
linux-image-kvm (Ubuntu package) - addressed in versions 5.11.0.1021.22, 5.13.0.1007.7
linux-image-5.11.0-1021-kvm (Ubuntu package) - update to 5.11.0-1021.23
linux-image-5.11.0-1023-aws (Ubuntu package) - addressed in versions 5.11.0-1023.24, 5.11.0-1023.24~20.04.1
linux-image-oracle (Ubuntu package) - addressed in versions 5.11.0.1023.24, 5.11.0.1023.24~20.04.16, 5.13.0.1011.13
linux-image-5.11.0-1023-azure (Ubuntu package) - addressed in versions 5.11.0-1023.24, 5.11.0-1023.24~20.04.1
linux-image-5.11.0-1023-oracle (Ubuntu package) - addressed in versions 5.11.0-1023.24, 5.11.0-1023.24~20.04.1
linux-image-azure (Ubuntu package) - addressed in versions 5.11.0.1023.24, 5.11.0.1023.24~20.04.23, 5.13.0.1009.10
linux-image-aws (Ubuntu package) - addressed in versions 5.11.0.1023.24, 5.11.0.1023.24~20.04.23, 5.13.0.1008.10
linux-image-raspi (Ubuntu package) - addressed in versions 5.11.0.1024.22, 5.13.0.1012.18
linux-image-raspi-nolpae (Ubuntu package) - addressed in versions 5.11.0.1024.22, 5.13.0.1012.18
linux-image-gcp (Ubuntu package) - addressed in versions 5.11.0.1024.24, 5.11.0.1024.26~20.04.24, 5.13.0.1008.9
linux-image-gke (Ubuntu package) - addressed in versions 5.11.0.1024.24, 5.13.0.1008.9
linux-image-5.11.0-1024-raspi-nolpae (Ubuntu package) - update to 5.11.0-1024.26
linux-image-5.11.0-1024-gcp (Ubuntu package) - addressed in versions 5.11.0-1024.26, 5.11.0-1024.26~20.04.1
linux-image-5.11.0-1024-raspi (Ubuntu package) - update to 5.11.0-1024.26
linux-image-5.13.0-23-generic (Ubuntu package) - update to 5.13.0-23.23
linux-image-5.13.0-23-generic-lpae (Ubuntu package) - update to 5.13.0-23.23
linux-image-5.13.0-23-lowlatency (Ubuntu package) - update to 5.13.0-23.23
linux-image-5.13.0-23-generic-64k (Ubuntu package) - update to 5.13.0-23.23
linux-image-5.13.0-1007-kvm (Ubuntu package) - update to 5.13.0-1007.7
linux-image-5.13.0-1008-aws (Ubuntu package) - update to 5.13.0-1008.9
linux-image-5.13.0-1008-gcp (Ubuntu package) - update to 5.13.0-1008.9
linux-image-5.13.0-1009-azure (Ubuntu package) - update to 5.13.0-1009.10
linux-image-5.13.0-1011-oracle (Ubuntu package) - update to 5.13.0-1011.13
linux-image-5.13.0-1012-raspi (Ubuntu package) - update to 5.13.0-1012.14
linux-image-5.13.0-1012-raspi-nolpae (Ubuntu package) - update to 5.13.0-1012.14
linux-image-oem-20.04c (Ubuntu package) - update to 5.13.0.1026.29
linux-image-5.13.0-1026-oem (Ubuntu package) - update to 5.13.0-1026.32
linux-image-5.14.0-1008-oem (Ubuntu package) - update to 5.14.0-1008.8
linux-image-oem-20.04d (Ubuntu package) - update to 5.14.0.1008.8
kernel - addressed in versions 5.14.16-201.fc34, 5.14.16-301.fc35
RecoverPoint for VMs - update to 6.0.SP1.P1
Pixel - update to 2022-03-05

External References

Related Security Bulletins