CVE-2021-4207 Memory corruption in QEMU
A malicious privileged guest user can trigger a heap-based buffer overflow in QEMU's QXL emulation to execute arbitrary code or crash the host.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-4207?
CVE-2021-4207 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 29 Apr 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2021-4207?
It affects 3 products.
Products include Debian Debian Linux, Qemu Qemu, Redhat Enterprise Linux.
How do I fix CVE-2021-4207?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-4207 being exploited?
There is no known exploitation of CVE-2021-4207 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as AZL-35155, AZL-9619, DEBIAN-CVE-2021-4207, GHSA-9p8r-v33g-4939, UBUNTU-CVE-2021-4207.