Skip to content
OpenAdvisories
Unscored CVE-2021-4207 EUVD-2021-34065GHSA-9p8r-v33g-4939

A flaw was found in the QXL display device emulation in QEMU. A double fetch of guest controlled values `cursor->header.width` and `cursor-…

Published Apr 29, 2022 · Updated Mar 21, 2025 · Assigned by redhat

Description

A flaw was found in the QXL display device emulation in QEMU. A double fetch of guest controlled values `cursor->header.width` and `cursor->header.height` can lead to the allocation of a small cursor object followed by a subsequent heap-based buffer overflow. A malicious privileged guest user could use this flaw to crash the QEMU process on the host or potentially execute arbitrary code within the context of the QEMU process.

Affected products

VendorProductAffectedFixed
— QEMU qemu-kvm 7.0.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 qemu 1:7.0+dfsg-1 —
Debian 13 qemu 1:7.0+dfsg-1 —
Debian 12 qemu 1:7.0+dfsg-1 —
Debian 11 qemu 1:5.2+dfsg-11+deb11u2 DSA-5133-1
Debian 10 qemu 1:3.1+dfsg-8+deb10u9 DLA-3099-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS qemu 1:6.2+dfsg-2ubuntu6.2 USN-5489-1
Ubuntu 20.04 LTS qemu 1:4.2-3ubuntu6.23 USN-5489-1
Ubuntu 18.04 LTS qemu 1:2.11+dfsg-1ubuntu7.40 USN-5489-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS qemu 1:2.5+dfsg-5ubuntu10.51+esm4 —
Ubuntu Pro 14.04 LTS qemu 2.0.0+dfsg-2ubuntu1.47+esm6 —
ReleasePackageFixed inAdvisory
RHEL 8 SLOF 20200717-1.gite18ddad8.module+el8.4.0+8855+a9e237a9 RHSA-2022:5821, RHSA-2022:5002
RHEL 8 hivex +6 1.3.18-21.module+el8.4.0+11609+2eba841a RHSA-2022:5821, RHSA-2022:5002
RHEL 8 libguestfs-appliance 1:1.44.0-5.module+el8.6.0+14480+c0a3aa0f RHSA-2022:5821
RHEL 8 libguestfs-winsupport 8.2-2.module+el8.4.0+12717+0b0da9ad RHSA-2022:5821, RHSA-2022:5002
RHEL 8 libiscsi +2 1.18.0-8.module+el8.4.0+8855+a9e237a9 RHSA-2022:5821, RHSA-2022:5002
RHEL 8 libnbd +6 1.6.0-5.module+el8.4.0+14155+dec4a5c7 RHSA-2022:5821, RHSA-2022:5002
RHEL 8 libtpms +1 0.7.4-4.20201106git2452a24dab.module+el8.4.0+10596+32ba7df3 RHSA-2022:5821, RHSA-2022:5002
RHEL 8 libvirt +29 7.0.0-14.8.module+el8.4.0+15255+f7eff4dd RHSA-2022:5821, RHSA-2022:5002
RHEL 8 libvirt-dbus 1.3.0-2.module+el8.4.0+8855+a9e237a9 RHSA-2022:5821, RHSA-2022:5002
RHEL 8 nbdkit +18 1.24.0-1.module+el8.4.0+9341+96cf2672 RHSA-2022:5821, RHSA-2022:5002
RHEL 8 netcf +2 0.2.8-12.module+el8.4.0+8855+a9e237a9 RHSA-2022:5821, RHSA-2022:5002
RHEL 8 perl-Sys-Virt +2 7.0.0-1.module+el8.4.0+9469+2eaf72bc RHSA-2022:5821, RHSA-2022:5002
RHEL 8 python-pyvmomi +1 6.7.1-7.module+el8.4.0+8855+a9e237a9 RHSA-2022:5002
RHEL 8 qemu-img +14 15:5.2.0-16.module+el8.4.0+15200+eac37ce4.17 RHSA-2022:5821, RHSA-2022:5002
RHEL 8 qemu-kvm-hw-usbredir 15:6.2.0-11.module+el8.6.0+15668+464a1f31.2 RHSA-2022:5821
RHEL 8 seabios +2 1.14.0-1.module+el8.4.0+8855+a9e237a9 RHSA-2022:5821, RHSA-2022:5002
RHEL 8 sgabios +1 1:0.20170427git-3.module+el8.4.0+8855+a9e237a9 RHSA-2022:5821, RHSA-2022:5002
RHEL 8 supermin +1 5.2.1-1.module+el8.4.0+9751+d56db353 RHSA-2022:5821, RHSA-2022:5002
RHEL 8 swtpm +3 0.4.2-1.20201201git2df14e3.module+el8.4.0+9341+96cf2672 RHSA-2022:5821, RHSA-2022:5002
RHEL 8 swtpm-tools-pkcs11 0.7.0-1.20211109gitb79fd91.module+el8.6.0+14480+c0a3aa0f RHSA-2022:5821
RHEL 8 virt-dib +23 1:1.44.0-2.module+el8.4.0+10146+75917d2f RHSA-2022:5821, RHSA-2022:5002
RHEL 8 virt-v2v +3 1:1.42.0-9.module+el8.4.0+9561+069bb9c1 RHSA-2022:5821, RHSA-2022:5002

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 SLOF 20210217-1.module_el8.6.0+2880+7d9e3703 ALSA-2022:5821
AlmaLinux 8 hivex +6 1.3.18-23.module_el8.6.0+2880+7d9e3703 ALSA-2022:5821
AlmaLinux 8 libguestfs-winsupport 8.6-1.module_el8.6.0+2880+7d9e3703 ALSA-2022:5821
AlmaLinux 8 libiscsi +2 1.18.0-8.module_el8.6.0+2880+7d9e3703 ALSA-2022:5821
AlmaLinux 8 libnbd +6 1.6.0-5.module_el8.6.0+2880+7d9e3703 ALSA-2022:5821
AlmaLinux 8 libtpms +1 0.9.1-0.20211126git1ff6fe1f43.module_el8.6.0+2880+7d9e3703 ALSA-2022:5821
AlmaLinux 8 libvirt +27 8.0.0-5.2.module_el8.6.0+3071+a07c0ea5 ALSA-2022:5821
AlmaLinux 8 libvirt-dbus 1.3.0-2.module_el8.6.0+2880+7d9e3703 ALSA-2022:5821
AlmaLinux 8 nbdkit +18 1.24.0-4.module_el8.6.0+2880+7d9e3703 ALSA-2022:5821
AlmaLinux 8 netcf +2 0.2.8-12.module_el8.6.0+2880+7d9e3703 ALSA-2022:5821
AlmaLinux 8 perl-Sys-Virt +1 8.0.0-1.module_el8.6.0+2880+7d9e3703 ALSA-2022:5821
AlmaLinux 8 qemu-img +14 15:6.2.0-11.module_el8.6.0+3071+a07c0ea5.2 ALSA-2022:5821
AlmaLinux 8 seabios +2 1.15.0-2.module_el8.6.0+2880+7d9e3703 ALSA-2022:5821
AlmaLinux 8 sgabios +1 1:0.20170427git-3.module_el8.6.0+2880+7d9e3703 ALSA-2022:5821
AlmaLinux 8 supermin +1 5.2.1-1.module_el8.6.0+2880+7d9e3703 ALSA-2022:5821
AlmaLinux 8 swtpm +4 0.7.0-1.20211109gitb79fd91.module_el8.6.0+2880+7d9e3703 ALSA-2022:5821
AlmaLinux 8 virt-dib +24 1:1.44.0-5.module_el8.6.0+2880+7d9e3703.alma ALSA-2022:5821
AlmaLinux 8 virt-v2v +3 1:1.42.0-19.module_el8.6.0+3071+a07c0ea5 ALSA-2022:5821

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 hivex 1.3.18-23.module+el8.6.0+847+b490afdd RLSA-2022:5821
Rocky Linux 8 libguestfs 1:1.44.0-5.module+el8.6.0+1052+ff61d164.rocky RLSA-2022:5821
Rocky Linux 8 libguestfs-winsupport 8.6-1.module+el8.6.0+847+b490afdd RLSA-2022:5821
Rocky Linux 8 libiscsi 1.18.0-8.module+el8.4.0+534+4680a14e RLSA-2022:5821
Rocky Linux 8 libnbd 1.6.0-5.module+el8.6.0+847+b490afdd RLSA-2022:5821
Rocky Linux 8 libtpms 0.9.1-0.20211126git1ff6fe1f43.module+el8.6.0+1052+ff61d164 RLSA-2022:5821
Rocky Linux 8 libvirt 8.0.0-5.2.module+el8.6.0+998+252a5635 RLSA-2022:5821
Rocky Linux 8 libvirt-dbus 1.3.0-2.module+el8.4.0+534+4680a14e RLSA-2022:5821
Rocky Linux 8 nbdkit 1.24.0-4.module+el8.6.0+847+b490afdd RLSA-2022:5821
Rocky Linux 8 netcf 0.2.8-12.module+el8.4.0+534+4680a14e RLSA-2022:5821
Rocky Linux 8 perl-Sys-Virt +1 8.0.0-1.module+el8.6.0+847+b490afdd RLSA-2022:5821
Rocky Linux 8 qemu-kvm 5:6.2.0-11.module+el8.6.0+1000+18e3b59f.5 RLSA-2022:5821
Rocky Linux 8 seabios 1.15.0-2.module+el8.6.0+1052+ff61d164 RLSA-2022:5821
Rocky Linux 8 sgabios 1:0.20170427git-3.module+el8.4.0+534+4680a14e RLSA-2022:5821
Rocky Linux 8 supermin 5.2.1-1.module+el8.6.0+1052+ff61d164 RLSA-2022:5821
Rocky Linux 8 swtpm 0.7.0-1.20211109gitb79fd91.module+el8.6.0+847+b490afdd RLSA-2022:5821
Rocky Linux 8 virt-v2v 1:1.42.0-19.module+el8.6.0+1052+ff61d164 RLSA-2022:5821
ReleasePackageFixed inAdvisory
SLES 15 SP4 qemu 6.2.0-150400.37.5.3 SUSE-SU-2022:2260-1
SLES 15 SP3 qemu 5.2.0-150300.115.2 SUSE-SU-2022:2254-1
SLES 15 SP2 qemu 4.2.1-150200.69.1 SUSE-SU-2022:3594-1
SLES 15 SP1 qemu 3.1.1.1-150100.80.43.2 SUSE-SU-2022:3768-1
SLES 12 SP5 qemu 3.1.1.1-69.1 SUSE-SU-2023:3015-1
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP2 qemu 2.6.2-41.76.1 SUSE-SU-2023:2358-1
SLES for SAP 15 SP2 qemu 4.2.1-150200.69.1 SUSE-SU-2022:3594-1
SLES for SAP 15 SP1 qemu 3.1.1.1-150100.80.43.2 SUSE-SU-2022:3768-1
SLES for SAP 12 SP5 qemu 3.1.1.1-69.1 SUSE-SU-2023:3015-1
SLE Micro 5.2 qemu 5.2.0-150300.115.2 SUSE-SU-2022:2254-1
SLE Micro 5.1 qemu 5.2.0-150300.115.2 SUSE-SU-2022:2254-1
SLE HPC 15 SP2 qemu 4.2.1-150200.69.1 SUSE-SU-2022:3594-1
SLE HPC 15 SP1 qemu 3.1.1.1-150100.80.43.2 SUSE-SU-2022:3768-1
SUSE Manager Server 4.1 qemu 4.2.1-150200.69.1 SUSE-SU-2022:3594-1
SUSE Manager Retail Branch Server 4.1 qemu 4.2.1-150200.69.1 SUSE-SU-2022:3594-1
SUSE Manager Proxy 4.1 qemu 4.2.1-150200.69.1 SUSE-SU-2022:3594-1
SUSE Enterprise Storage 7 qemu 4.2.1-150200.69.1 SUSE-SU-2022:3594-1
SUSE Enterprise Storage 6 qemu 3.1.1.1-150100.80.43.2 SUSE-SU-2022:3768-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed qemu 7.0.0-53.1 openSUSE-SU-2024:12209-1
openSUSE Leap 15.4 qemu 4.2.1-150200.69.1 SUSE-SU-2022:3594-1, SUSE-SU-2022:2260-1
openSUSE Leap 15.4 qemu-linux-user 6.2.0-150400.37.5.1 SUSE-SU-2022:2260-1
openSUSE Leap 15.4 qemu-testsuite 6.2.0-150400.37.5.5 SUSE-SU-2022:2260-1
openSUSE Leap 15.3 qemu 3.1.1.1-150100.80.43.2 SUSE-SU-2022:3768-1, SUSE-SU-2022:3594-1, SUSE-SU-2022:2254-1
openSUSE Leap 15.3 qemu-linux-user 5.2.0-150300.115.2 SUSE-SU-2022:2254-1
openSUSE Leap 15.3 qemu-testsuite 5.2.0-150300.115.4 SUSE-SU-2022:2254-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 qemu +26 10:3.1.0-8.amzn2.0.10 ALAS2-2023-2061

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 qemu 6.2.0-18 —
Azure Linux 2 (CBL-Mariner) qemu 6.2.0-13 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 qemu-img +9 30:6.1.1-4.el9 ELSA-2022-9869
Oracle Linux 8 hivex +4 1.3.18-21.module+el8.6.0+20690+93de6acb ELSA-2022-9862, ELSA-2022-9700, ELSA-2022-5821
Oracle Linux 8 libguestfs-winsupport 8.2-1.module+el8.6.0+20690+93de6acb ELSA-2022-9862, ELSA-2022-9700, ELSA-2022-5821
Oracle Linux 8 libiscsi +2 1.18.0-8.module+el8.6.0+20659+3dcf7c70 ELSA-2022-9862, ELSA-2022-9700, ELSA-2022-5821
Oracle Linux 8 libnbd +3 1.2.2-1.module+el8.6.0+20690+93de6acb ELSA-2022-9862, ELSA-2022-9700, ELSA-2022-5821
Oracle Linux 8 libtpms +1 0.9.1-0.20211126git1ff6fe1f43.module+el8.6.0+20659+3dcf7c70 ELSA-2022-9862, ELSA-2022-5821
Oracle Linux 8 libvirt +29 5.7.0-34.module+el8.6.0+20690+93de6acb ELSA-2022-9862, ELSA-2022-9700, ELSA-2022-5821
Oracle Linux 8 libvirt-dbus 1.3.0-2.module+el8.6.0+20659+3dcf7c70 ELSA-2022-9862, ELSA-2022-9700, ELSA-2022-5821
Oracle Linux 8 libvirt-wireshark 7.10.0-2.module+el8.6.0+20842+e9607200 ELSA-2022-9862, ELSA-2022-5821
Oracle Linux 8 nbdkit +13 1.16.2-4.0.1.module+el8.6.0+20690+93de6acb ELSA-2022-9862, ELSA-2022-9700, ELSA-2022-5821
Oracle Linux 8 nbdkit-nbd-plugin +4 1.24.0-4.module+el8.6.0+20659+3dcf7c70 ELSA-2022-9862, ELSA-2022-5821
Oracle Linux 8 netcf +2 0.2.8-12.module+el8.6.0+20659+3dcf7c70 ELSA-2022-9862, ELSA-2022-9700, ELSA-2022-5821
Oracle Linux 8 ocaml-hivex +1 1.3.18-23.module+el8.6.0+20659+3dcf7c70 ELSA-2022-5821
Oracle Linux 8 ocaml-libguestfs +2 1:1.44.0-5.0.1.module+el8.6.0+20659+3dcf7c70 ELSA-2022-9862, ELSA-2022-5821
Oracle Linux 8 ocaml-libnbd +2 1.6.0-5.module+el8.6.0+20664+3dcf7c70 ELSA-2022-9862, ELSA-2022-5821
Oracle Linux 8 perl-Sys-Virt 4.5.0-5.module+el8.6.0+20690+93de6acb ELSA-2022-9862, ELSA-2022-9700, ELSA-2022-5821
Oracle Linux 8 qemu-img +9 15:4.2.1-18.module+el8.6.0+20690+93de6acb ELSA-2022-9862, ELSA-2022-9700, ELSA-2022-5821
Oracle Linux 8 qemu-kvm-docs +4 15:6.2.0-11.module+el8.6.0+20722+b0f1ae3c.2 ELSA-2022-5821
Oracle Linux 8 qemu-virtiofsd 15:6.1.1-4.module+el8.6.0+20842+e9607200 ELSA-2022-9862
Oracle Linux 8 seabios +2 1.13.0-2.module+el8.6.0+20690+93de6acb ELSA-2022-9862, ELSA-2022-9700, ELSA-2022-5821
Oracle Linux 8 sgabios +1 1:0.20170427git-3.module+el8.6.0+20659+3dcf7c70 ELSA-2022-9862, ELSA-2022-9700, ELSA-2022-5821
Oracle Linux 8 supermin +1 5.1.19-10.module+el8.6.0+20690+93de6acb ELSA-2022-9862, ELSA-2022-9700, ELSA-2022-5821
Oracle Linux 8 swtpm +4 0.7.0-1.20211109gitb79fd91.module+el8.6.0+20659+3dcf7c70 ELSA-2022-9862, ELSA-2022-5821
Oracle Linux 8 virt-dib +23 1:1.40.2-28.0.4.module+el8.6.0+20690+93de6acb ELSA-2022-9862, ELSA-2022-9700, ELSA-2022-5821
Oracle Linux 8 virt-v2v-man-pages-ja +2 1:1.42.0-19.0.1.module+el8.6.0+20722+b0f1ae3c ELSA-2022-9862, ELSA-2022-5821
Oracle Linux 7 qemu +12 15:4.2.1-18.el7 ELSA-2022-9669

Advisories 22

References