CVE-2021-4207
Reported by redhat · Published April 29, 2022
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| qemu-audio-sdl | Amazon Linux | 10:3.1.0-8.amzn2.0.10 |
| qemu-system-aarch64 | Amazon Linux | 10:3.1.0-8.amzn2.0.10 |
| qemu-audio-alsa | Amazon Linux | 10:3.1.0-8.amzn2.0.10 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | QEMU | qemu-kvm 7.0.0 |
| amazon:2 | qemu-audio-sdl | 0 |
| amazon:2 | qemu-system-aarch64 | 0 |
| amazon:2 | qemu-audio-alsa | 0 |
| n/a | QEMU | 7.0.0 |
| amazon:2 | qemu | 0 |
| amazon:2 | qemu-user-binfmt | 0 |
| amazon:2 | qemu-block-ssh | 0 |
| amazon:2 | qemu-img | 0 |
| amazon:2 | qemu-kvm-core | 0 |
| amazon:2 | qemu-ui-curses | 0 |
| amazon:2 | qemu-system-x86 | 0 |
| amazon:2 | qemu-audio-pa | 0 |
| amazon:2 | qemu-kvm | 0 |
| amazon:2 | qemu-system-aarch64-core | 0 |
| amazon:2 | qemu-audio-oss | 0 |
| amazon:2 | qemu-user | 0 |
| amazon:2 | qemu-block-rbd | 0 |
| amazon:2 | qemu-block-iscsi | 0 |
| amazon:2 | qemu-user-static | 0 |
…and 9 more
Timeline
- Apr 29, 2022 CVE Published
- Apr 30, 2022 EPSS Score (30 in total, the first dated here)
- Mar 21, 2025 CVE Updated
- Mar 10, 2026 Distribution Patch (6 in total, the first dated here)
- Mar 10, 2026 Security Advisory (9 in total, the first dated here)
- Jul 20, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-4207
vulnetix vdb fixes CVE-2021-4207
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-4207/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- DSA-5133 vendor-advisoryx_refsource_DEBIAN
- GLSA-202208-27 vendor-advisoryx_refsource_GENTOO
- [debian-lts-announce] 20220905 [SECURITY] [DLA 3099-1] qemu security update mailing-listx_refsource_MLIST
- https://security.netapp.com/advisory/ntap-20250321-0009/ url