Out-of-bounds write in QEMU - CVE-2022-2962

 

Out-of-bounds write in QEMU - CVE-2022-2962

Published: April 17, 2023


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

Vulnerability details

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a boundary error in the Tulip device emulation in QEMU. A local user can trigger an out-of-bounds write and execute arbitrary code with elevated privileges on the host OS.


Affected software

QEMU
Gentoo Linux
Ubuntu
openEuler
qemu-system-aarch64 (Ubuntu package)
qemu (Ubuntu package)
qemu-system-mips (Ubuntu package)
qemu-system-ppc (Ubuntu package)
qemu-system-arm (Ubuntu package)
qemu-system-x86 (Ubuntu package)
qemu-system-sparc (Ubuntu package)
qemu-system (Ubuntu package)
qemu-system-s390x (Ubuntu package)
qemu-system-misc (Ubuntu package)
qemu-system-x86-microvm (Ubuntu package)
qemu-system-x86-xen (Ubuntu package)
qemu-system-riscv
qemu-block-ssh
qemu
qemu-system-arm
qemu-debugsource
qemu-system-x86_64
qemu-help
qemu-seabios
qemu-hw-usb-host
qemu-img
qemu-debuginfo
qemu-block-rbd
qemu-block-curl
qemu-block-iscsi
qemu-system-aarch64
qemu-guest-agent
app-emulation/qemu
VMware Tanzu Operations Manager

How to mitigate CVE-2022-2962

Install updates from vendor's website.

qemu-system-aarch64 (Ubuntu package) - update to Ubuntu Pro (Infra-only)
qemu (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:2.11+dfsg-1ubuntu7.41, 1:4.2-3ubuntu6.24, 1:6.2+dfsg-2ubuntu6.6
qemu-system-mips (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:2.11+dfsg-1ubuntu7.41, 1:4.2-3ubuntu6.24, 1:6.2+dfsg-2ubuntu6.6, 1:7.0+dfsg-7ubuntu2.1
qemu-system-ppc (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:2.11+dfsg-1ubuntu7.41, 1:4.2-3ubuntu6.24, 1:6.2+dfsg-2ubuntu6.6, 1:7.0+dfsg-7ubuntu2.1
qemu-system-arm (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:2.11+dfsg-1ubuntu7.41, 1:4.2-3ubuntu6.24, 1:6.2+dfsg-2ubuntu6.6, 1:7.0+dfsg-7ubuntu2.1
qemu-system-x86 (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:2.11+dfsg-1ubuntu7.41, 1:4.2-3ubuntu6.24, 1:6.2+dfsg-2ubuntu6.6, 1:7.0+dfsg-7ubuntu2.1
qemu-system-sparc (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:2.11+dfsg-1ubuntu7.41, 1:4.2-3ubuntu6.24, 1:6.2+dfsg-2ubuntu6.6, 1:7.0+dfsg-7ubuntu2.1
qemu-system (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:2.11+dfsg-1ubuntu7.41, 1:4.2-3ubuntu6.24, 1:6.2+dfsg-2ubuntu6.6, 1:7.0+dfsg-7ubuntu2.1
qemu-system-s390x (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:2.11+dfsg-1ubuntu7.41, 1:4.2-3ubuntu6.24, 1:6.2+dfsg-2ubuntu6.6, 1:7.0+dfsg-7ubuntu2.1
qemu-system-misc (Ubuntu package) - addressed in versions Ubuntu Pro (Infra-only), 1:2.11+dfsg-1ubuntu7.41, 1:4.2-3ubuntu6.24, 1:6.2+dfsg-2ubuntu6.6, 1:7.0+dfsg-7ubuntu2.1
VMware Tanzu Operations Manager - addressed in versions 2.10.51, 3.0.2
qemu-system-x86-microvm (Ubuntu package) - addressed in versions 1:4.2-3ubuntu6.24, 1:6.2+dfsg-2ubuntu6.6
qemu-system-x86-xen (Ubuntu package) - addressed in versions 1:4.2-3ubuntu6.24, 1:6.2+dfsg-2ubuntu6.6, 1:7.0+dfsg-7ubuntu2.1
qemu-system-riscv - update to 6.2.0-52
qemu-block-ssh - update to 6.2.0-52
qemu - update to 6.2.0-52
qemu-system-arm - update to 6.2.0-52
qemu-debugsource - update to 6.2.0-52
qemu-system-x86_64 - update to 6.2.0-52
qemu-help - update to 6.2.0-52
qemu-seabios - update to 6.2.0-52
qemu-hw-usb-host - update to 6.2.0-52
qemu-img - update to 6.2.0-52
qemu-debuginfo - update to 6.2.0-52
qemu-block-rbd - update to 6.2.0-52
qemu-block-curl - update to 6.2.0-52
qemu-block-iscsi - update to 6.2.0-52
qemu-system-aarch64 - update to 6.2.0-52
qemu-guest-agent - update to 6.2.0-52
app-emulation/qemu - update to 8.0.0

External References

Related Security Bulletins