CVE-2022-4172
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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | qemu | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | qemu | Fix pending | ||
| Debian 14 | qemu | Fixed | 1:7.2+dfsg-1 | DEBIAN-CVE-2022-4172 |
| Debian 13 | qemu | Fixed | 1:7.2+dfsg-1 | DEBIAN-CVE-2022-4172 |
| Debian 12 | qemu | Fixed | 1:7.2+dfsg-1 | DEBIAN-CVE-2022-4172 |
| Red Hat Enterprise Linux 9 | qemu-guest-agent | Fixed | 17:7.2.0-14.el9_2 | RHSA-2023:2162 |
| Red Hat Enterprise Linux 9 | qemu-img | Fixed | 17:7.2.0-14.el9_2 | RHSA-2023:2162 |
| Red Hat Enterprise Linux 9 | qemu-kvm | Fixed | 17:7.2.0-14.el9_2 | RHSA-2023:2162 |
| Red Hat Enterprise Linux 9 | qemu-kvm-audio-pa | Fixed | 17:7.2.0-14.el9_2 | RHSA-2023:2162 |
| Red Hat Enterprise Linux 9 | qemu-kvm-block-curl | Fixed | 17:7.2.0-14.el9_2 | RHSA-2023:2162 |
| Red Hat Enterprise Linux 9 | qemu-kvm-block-rbd | Fixed | 17:7.2.0-14.el9_2 | RHSA-2023:2162 |
| Red Hat Enterprise Linux 9 | qemu-kvm-common | Fixed | 17:7.2.0-14.el9_2 | RHSA-2023:2162 |
| Red Hat Enterprise Linux 9 | qemu-kvm-core | Fixed | 17:7.2.0-14.el9_2 | RHSA-2023:2162 |
| Red Hat Enterprise Linux 9 | qemu-kvm-device-display-virtio-gpu | Fixed | 17:7.2.0-14.el9_2 | RHSA-2023:2162 |
| Red Hat Enterprise Linux 9 | qemu-kvm-device-display-virtio-gpu-ccw | Fixed | 17:7.2.0-14.el9_2 | RHSA-2023:2162 |
| Red Hat Enterprise Linux 9 | qemu-kvm-device-display-virtio-gpu-pci | Fixed | 17:7.2.0-14.el9_2 | RHSA-2023:2162 |
| Red Hat Enterprise Linux 9 | qemu-kvm-device-display-virtio-vga | Fixed | 17:7.2.0-14.el9_2 | RHSA-2023:2162 |
| Red Hat Enterprise Linux 9 | qemu-kvm-device-usb-host | Fixed | 17:7.2.0-14.el9_2 | RHSA-2023:2162 |
| Red Hat Enterprise Linux 9 | qemu-kvm-device-usb-redirect | Fixed | 17:7.2.0-14.el9_2 | RHSA-2023:2162 |
| Red Hat Enterprise Linux 9 | qemu-kvm-docs | Fixed | 17:7.2.0-14.el9_2 | RHSA-2023:2162 |
| Red Hat Enterprise Linux 9 | qemu-kvm-tools | Fixed | 17:7.2.0-14.el9_2 | RHSA-2023:2162 |
| Red Hat Enterprise Linux 9 | qemu-kvm-ui-egl-headless | Fixed | 17:7.2.0-14.el9_2 | RHSA-2023:2162 |
| Red Hat Enterprise Linux 9 | qemu-kvm-ui-opengl | Fixed | 17:7.2.0-14.el9_2 | RHSA-2023:2162 |
| Red Hat Enterprise Linux 9 | qemu-pr-helper | Fixed | 17:7.2.0-14.el9_2 | RHSA-2023:2162 |
| Red Hat Enterprise Linux 8 | qemu-guest-agent | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-img | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-block-curl | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-block-gluster | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-block-iscsi | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-block-rbd | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-block-ssh | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-common | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-core | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-docs | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-hw-usbredir | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-tests | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-ui-opengl | Not affected | ||
| Red Hat Enterprise Linux 8 | qemu-kvm-ui-spice | Not affected | ||
| Red Hat Enterprise Linux 7 | libcacard | Not affected | ||
| Red Hat Enterprise Linux 7 | libcacard-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libcacard-tools | Not affected | ||
| Red Hat Enterprise Linux 7 | qemu-guest-agent | Not affected | ||
| Red Hat Enterprise Linux 7 | qemu-img | Not affected | ||
| Red Hat Enterprise Linux 7 | qemu-img-ma | Not affected | ||
| Red Hat Enterprise Linux 7 | qemu-kvm | Not affected | ||
| Red Hat Enterprise Linux 7 | qemu-kvm-common | Not affected | ||
| Red Hat Enterprise Linux 7 | qemu-kvm-common-ma | Not affected | ||
| Red Hat Enterprise Linux 7 | qemu-kvm-ma | Not affected | ||
| Red Hat Enterprise Linux 7 | qemu-kvm-tools | Not affected | ||
| Red Hat Enterprise Linux 7 | qemu-kvm-tools-ma | Not affected | ||
| Red Hat Enterprise Linux 6 | qemu-guest-agent | Not affected | ||
| Red Hat Enterprise Linux 6 | qemu-guest-agent-win32 | Not affected | ||
| Red Hat Enterprise Linux 6 | qemu-img | Not affected | ||
| Red Hat Enterprise Linux 6 | qemu-kvm | Not affected | ||
| Red Hat Enterprise Linux 6 | qemu-kvm-tools | Not affected | ||
| AlmaLinux 9 | qemu-guest-agent | Fixed | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux 9 | qemu-img | Fixed | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux 9 | qemu-kvm | Fixed | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux 9 | qemu-kvm-audio-pa | Fixed | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux 9 | qemu-kvm-block-curl | Fixed | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux 9 | qemu-kvm-block-rbd | Fixed | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux 9 | qemu-kvm-common | Fixed | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux 9 | qemu-kvm-core | Fixed | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux 9 | qemu-kvm-device-display-virtio-gpu | Fixed | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux 9 | qemu-kvm-device-display-virtio-gpu-ccw | Fixed | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux 9 | qemu-kvm-device-display-virtio-gpu-pci | Fixed | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux 9 | qemu-kvm-device-display-virtio-vga | Fixed | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux 9 | qemu-kvm-device-usb-host | Fixed | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux 9 | qemu-kvm-device-usb-redirect | Fixed | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux 9 | qemu-kvm-docs | Fixed | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux 9 | qemu-kvm-tools | Fixed | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux 9 | qemu-kvm-ui-egl-headless | Fixed | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux 9 | qemu-kvm-ui-opengl | Fixed | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
| AlmaLinux 9 | qemu-pr-helper | Fixed | 17:7.2.0-14.el9_2 | ALSA-2023:2162 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- QEMU (ACPI ERST): affected: Affected: 7.0.0, Fixed: 7.2.0-rc0
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://lore.kernel.org/qemu-devel/20221024154233.1043347-1-lk%40c--e.de/
- https://gitlab.com/qemu-project/qemu/-/issues/1268
- https://gitlab.com/qemu-project/qemu/-/commit/defb7098
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/I7J5IRXJYLELW7D43A75LOWRUE5EU54O/
- https://security.netapp.com/advisory/ntap-20230127-0013/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.