NULL pointer dereference in QEMU - CVE-2021-4158
Published: May 30, 2022
Vulnerability identifier: #VU63781
CSH Severity: Low
CVSS v4: 6.7 [CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-4158
CWE-ID: CWE-476
Exploitation vector: Local access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a local user to perform a denial of service (DoS) attack.
The vulnerability exists due to a NULL pointer dereference error in the ACPI code of QEMU when handling certain values. A privileged user can crash the QEMU process on the host, resulting in a denial of service condition.
Affected software
QEMU
Oracle Linux
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Ubuntu
openEuler
qemu-system-mips (Ubuntu package)
qemu-system-misc (Ubuntu package)
qemu-system-ppc (Ubuntu package)
qemu-system-s390x (Ubuntu package)
qemu-system-arm (Ubuntu package)
qemu-system (Ubuntu package)
qemu-system-sparc (Ubuntu package)
qemu-system-x86 (Ubuntu package)
qemu-system-x86-microvm (Ubuntu package)
qemu-system-x86-xen (Ubuntu package)
qemu-seabios
qemu-help
qemu-system-riscv
qemu-debuginfo
qemu-hw-usb-host
qemu-guest-agent
qemu-system-arm
qemu-debugsource
qemu-block-ssh
qemu-system-x86_64
qemu-img
qemu-system-aarch64
qemu-block-rbd
qemu-block-curl
qemu-block-iscsi
qemu
qemu-kvm (Red Hat package)
Oracle Linux
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Ubuntu
openEuler
qemu-system-mips (Ubuntu package)
qemu-system-misc (Ubuntu package)
qemu-system-ppc (Ubuntu package)
qemu-system-s390x (Ubuntu package)
qemu-system-arm (Ubuntu package)
qemu-system (Ubuntu package)
qemu-system-sparc (Ubuntu package)
qemu-system-x86 (Ubuntu package)
qemu-system-x86-microvm (Ubuntu package)
qemu-system-x86-xen (Ubuntu package)
qemu-seabios
qemu-help
qemu-system-riscv
qemu-debuginfo
qemu-hw-usb-host
qemu-guest-agent
qemu-system-arm
qemu-debugsource
qemu-block-ssh
qemu-system-x86_64
qemu-img
qemu-system-aarch64
qemu-block-rbd
qemu-block-curl
qemu-block-iscsi
qemu
qemu-kvm (Red Hat package)
How to mitigate CVE-2021-4158
Install updates from vendor's website.
QEMU - update to 7.0.0
qemu-system-mips (Ubuntu package) - addressed in versions 1:2.11+dfsg-1ubuntu7.39, 1:4.2-3ubuntu6.21, 1:6.0+dfsg-2expubuntu1.2
qemu-system-misc (Ubuntu package) - addressed in versions 1:2.11+dfsg-1ubuntu7.39, 1:4.2-3ubuntu6.21, 1:6.0+dfsg-2expubuntu1.2
qemu-system-ppc (Ubuntu package) - addressed in versions 1:2.11+dfsg-1ubuntu7.39, 1:4.2-3ubuntu6.21, 1:6.0+dfsg-2expubuntu1.2
qemu-system-s390x (Ubuntu package) - addressed in versions 1:2.11+dfsg-1ubuntu7.39, 1:4.2-3ubuntu6.21, 1:6.0+dfsg-2expubuntu1.2
qemu-system-arm (Ubuntu package) - addressed in versions 1:2.11+dfsg-1ubuntu7.39, 1:4.2-3ubuntu6.21, 1:6.0+dfsg-2expubuntu1.2
qemu-system (Ubuntu package) - addressed in versions 1:2.11+dfsg-1ubuntu7.39, 1:4.2-3ubuntu6.21, 1:6.0+dfsg-2expubuntu1.2
qemu-system-sparc (Ubuntu package) - addressed in versions 1:2.11+dfsg-1ubuntu7.39, 1:4.2-3ubuntu6.21, 1:6.0+dfsg-2expubuntu1.2
qemu-system-x86 (Ubuntu package) - addressed in versions 1:2.11+dfsg-1ubuntu7.39, 1:4.2-3ubuntu6.21, 1:6.0+dfsg-2expubuntu1.2
qemu-system-x86-microvm (Ubuntu package) - addressed in versions 1:4.2-3ubuntu6.21, 1:6.0+dfsg-2expubuntu1.2
qemu-system-x86-xen (Ubuntu package) - addressed in versions 1:4.2-3ubuntu6.21, 1:6.0+dfsg-2expubuntu1.2
qemu-seabios - update to 6.2.0-43
qemu-help - update to 6.2.0-43
qemu-system-riscv - update to 6.2.0-43
qemu-debuginfo - update to 6.2.0-43
qemu-hw-usb-host - update to 6.2.0-43
qemu-guest-agent - update to 6.2.0-43
qemu-system-arm - update to 6.2.0-43
qemu-debugsource - update to 6.2.0-43
qemu-block-ssh - update to 6.2.0-43
qemu-system-x86_64 - update to 6.2.0-43
qemu-img - update to 6.2.0-43
qemu-system-aarch64 - update to 6.2.0-43
qemu-block-rbd - update to 6.2.0-43
qemu-block-curl - update to 6.2.0-43
qemu-block-iscsi - update to 6.2.0-43
qemu - update to 6.2.0-43
qemu-kvm (Red Hat package) - update to 7.0.0-13.el9
qemu-system-mips (Ubuntu package) - addressed in versions 1:2.11+dfsg-1ubuntu7.39, 1:4.2-3ubuntu6.21, 1:6.0+dfsg-2expubuntu1.2
qemu-system-misc (Ubuntu package) - addressed in versions 1:2.11+dfsg-1ubuntu7.39, 1:4.2-3ubuntu6.21, 1:6.0+dfsg-2expubuntu1.2
qemu-system-ppc (Ubuntu package) - addressed in versions 1:2.11+dfsg-1ubuntu7.39, 1:4.2-3ubuntu6.21, 1:6.0+dfsg-2expubuntu1.2
qemu-system-s390x (Ubuntu package) - addressed in versions 1:2.11+dfsg-1ubuntu7.39, 1:4.2-3ubuntu6.21, 1:6.0+dfsg-2expubuntu1.2
qemu-system-arm (Ubuntu package) - addressed in versions 1:2.11+dfsg-1ubuntu7.39, 1:4.2-3ubuntu6.21, 1:6.0+dfsg-2expubuntu1.2
qemu-system (Ubuntu package) - addressed in versions 1:2.11+dfsg-1ubuntu7.39, 1:4.2-3ubuntu6.21, 1:6.0+dfsg-2expubuntu1.2
qemu-system-sparc (Ubuntu package) - addressed in versions 1:2.11+dfsg-1ubuntu7.39, 1:4.2-3ubuntu6.21, 1:6.0+dfsg-2expubuntu1.2
qemu-system-x86 (Ubuntu package) - addressed in versions 1:2.11+dfsg-1ubuntu7.39, 1:4.2-3ubuntu6.21, 1:6.0+dfsg-2expubuntu1.2
qemu-system-x86-microvm (Ubuntu package) - addressed in versions 1:4.2-3ubuntu6.21, 1:6.0+dfsg-2expubuntu1.2
qemu-system-x86-xen (Ubuntu package) - addressed in versions 1:4.2-3ubuntu6.21, 1:6.0+dfsg-2expubuntu1.2
qemu-seabios - update to 6.2.0-43
qemu-help - update to 6.2.0-43
qemu-system-riscv - update to 6.2.0-43
qemu-debuginfo - update to 6.2.0-43
qemu-hw-usb-host - update to 6.2.0-43
qemu-guest-agent - update to 6.2.0-43
qemu-system-arm - update to 6.2.0-43
qemu-debugsource - update to 6.2.0-43
qemu-block-ssh - update to 6.2.0-43
qemu-system-x86_64 - update to 6.2.0-43
qemu-img - update to 6.2.0-43
qemu-system-aarch64 - update to 6.2.0-43
qemu-block-rbd - update to 6.2.0-43
qemu-block-curl - update to 6.2.0-43
qemu-block-iscsi - update to 6.2.0-43
qemu - update to 6.2.0-43
qemu-kvm (Red Hat package) - update to 7.0.0-13.el9