# CVE-2021-4207: A flaw was found in the QXL display device emulation in QEMU.

- Severity: High 8.2 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-04-29T16:07:33.000Z
- Modified: 2026-06-17T04:19:13.133Z
- Weaknesses: CWE-120, CWE-362
- 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.

(As written by CVE List.)

## Affected

- QEMU: qemu-kvm 7.0.0
- qemu qemu: before 7.0.0
- redhat enterprise_linux: 8.0
- debian debian_linux: 10.0; 11.0

## Every score

- NVD: CVSS:3.1 8.2 High `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.6 Medium `AV:L/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://starlabs.sg/advisories/21-4207/> (exploit, third-party-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2036966> (issue-tracking, third-party-advisory)
- <https://www.debian.org/security/2022/dsa-5133> (third-party-advisory, vendor-advisory)
- <https://security.gentoo.org/glsa/202208-27> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/09/msg00008.html> (mailing-list, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20250321-0009/>

## Sources

- CVE List: [CVE-2021-4207](https://www.cve.org/CVERecord?id=CVE-2021-4207), CVE Terms of Use, modified 2025-03-21
- NVD: [CVE-2021-4207](https://nvd.nist.gov/vuln/detail/CVE-2021-4207), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-4207 · Whole record: https://cve.day/CVE-2021-4207.json · Rebuilt by cve.day 2026-11-25T22:58:07.430Z
