Vulnerability · Published Nov 29, 2022 · Assigned by redhat
CVE-2022-4172
Medium 6.5
In plain English
A medium-severity buffer overflow in QEMU (ACPI ERST). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
An integer overflow and buffer overflow issues were found in the ACPI Error Record Serialization Table (ERST) device of QEMU in the read_erst_record() and write_erst_record() functions. Both issues may allow the guest to overrun the host buffer allocated for the ERST memory device. A malicious guest could use these flaws to crash the QEMU process on the host.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | qemu-guest-agent | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux:9 | qemu-img | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux:9 | qemu-kvm | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux:9 | qemu-kvm-audio-pa | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux:9 | qemu-kvm-block-curl | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux:9 | qemu-kvm-block-rbd | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux:9 | qemu-kvm-common | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux:9 | qemu-kvm-core | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux:9 | qemu-kvm-device-display-virtio-gpu | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux:9 | qemu-kvm-device-display-virtio-gpu-ccw | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux:9 | qemu-kvm-device-display-virtio-gpu-pci | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux:9 | qemu-kvm-device-display-virtio-vga | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux:9 | qemu-kvm-device-usb-host | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux:9 | qemu-kvm-device-usb-redirect | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux:9 | qemu-kvm-docs | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux:9 | qemu-kvm-tools | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux:9 | qemu-kvm-ui-egl-headless | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux:9 | qemu-kvm-ui-opengl | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux:9 | qemu-pr-helper | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| Debian:12 | qemu | 1:7.2+dfsg-1 | DEBIAN-CVE-2022-4172 |
| Debian:13 | qemu | 1:7.2+dfsg-1 | DEBIAN-CVE-2022-4172 |
| Debian:14 | qemu | 1:7.2+dfsg-1 | DEBIAN-CVE-2022-4172 |
| Ubuntu:22.04:LTS | qemu | 1:6.2+dfsg-2ubuntu6.11 | USN-6167-1 |
| Ubuntu:22.04:LTS | qemu | 1:6.2+dfsg-2ubuntu6.6 | UBUNTU-CVE-2022-4172 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | QEMU (ACPI ERST) | Affected: 7.0.0, Fixed: 7.2.0-rc0 |
Weakness: CWE-120 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H