CVE-2021-4207: Buffer Overflow

Published Jan 4, 2022
·
Updated

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.

Other sources

In the QEMU QXL video acelerator a double fetch leads to heap overflow in qxlunpackchunks function.

Red Hat

Affected Software

7 affected componentsFixes available
redhat/qemu-kvm<7.0.0
7.0.0
Qemu Qemu<7.0.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=8.0
Debian Debian Linux=10.0
Debian Debian Linux=11.0
debian/qemu
1:5.2+dfsg-11+deb11u31:5.2+dfsg-11+deb11u21:7.2+dfsg-7+deb12u121:10.0.0~rc2+ds-21:10.0.0~rc3+ds-2

Event History

Apr 29, 2022
CVE Published
via MITRE·04:07 PM
Data Sourced
via MITRE·04:07 PM
DescriptionWeakness
Jan 12, 2024
Data Sourced
via Launchpad·12:01 AM
Description
Sep 20, 2024
Data Sourced
via Ubuntu·01:50 AM
RemedyDescriptionSeverityAffected Software
Feb 27, 2025
Data Sourced
via Debian·01:02 AM
DescriptionAffected Software

Frequently Asked Questions

1

What is the vulnerability ID for this flaw in the QXL display device emulation in QEMU?

The vulnerability ID is CVE-2021-4207.

2

What is the severity rating of CVE-2021-4207?

CVE-2021-4207 has a severity rating of 8.2 (high).

3

What software is affected by CVE-2021-4207?

QEMU qemu, Redhat Enterprise Linux (8.0), Debian Debian Linux (10.0, 11.0), and Ubuntu qemu (kinetic, lunar, bionic, focal, impish, jammy, mantic) are affected by CVE-2021-4207.

4

What is the description of CVE-2021-4207?

CVE-2021-4207 is a flaw in the QXL display device emulation in QEMU that can lead to a heap-based buffer overflow.

5

How can I fix CVE-2021-4207?

To fix CVE-2021-4207, update to version 7.0.0 of qemu-kvm (for Redhat) or update to the latest version of QEMU qemu, Redhat Enterprise Linux, Debian Debian Linux, or Ubuntu qemu.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203