Buffer overflow in Qemu
CVE-2021-4207
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.
Vulnerability class: Race Condition
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.2 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.004, 35.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Qemu
- Debian Linux — versions 10.0, 11.0
- Red Hat Enterprise Linux — versions 8.0
- Qemu — versions qemu-kvm 7.0.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (ARPSyndicate/cvemon). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- bugzilla.redhat.com/show_bug.cgi (Third Party Advisory, Issue Tracking)
- starlabs.sg/advisories/21-4207/ (Exploit, Third Party Advisory)
- DSA-5133 (vendor-advisory, Third Party Advisory)
- GLSA-202208-27 (vendor-advisory, Third Party Advisory)
- [debian-lts-announce] 20220905 [SECURITY] [DLA 3099-1] qemu security update (mailing-list, Mailing List, Third Party Advisory)
- security.netapp.com/advisory/ntap-20250321-0009/