CVE-2021-4206

QEMU: QXL: integer overflow in cursor_alloc() can lead to heap buffer overflow

Published Apr 29, 2022 CVSS 3.1 · 8.2 High EPSS < 1% KEV · Not listed
Description
A flaw was found in the QXL display device emulation in QEMU. An integer overflow in the cursor_alloc() function can lead to the allocation of a small cursor object followed by a subsequent heap-based buffer overflow. This flaw allows a malicious privileged guest user to crash the QEMU process on the host or potentially execute arbitrary code within the context of the QEMU process.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3099-1 qemu security update
Debian DSA Debian DSA DSA-5133-1 qemu security update
EUVD EUVD EUVD-2021-34064 A flaw was found in the QXL display device emulation in QEMU. An integer overflow in the cursor_alloc() function can lead to the allocation of a small cursor object followed by a subsequent heap-based buffer overflow. This flaw allows a malicious privileged guest user to crash the QEMU process on the host or potentially execute arbitrary code within the context of the QEMU process.
Ubuntu USN Ubuntu USN USN-5489-1 QEMU vulnerabilities
Ubuntu USN Ubuntu USN USN-8412-1 QEMU vulnerabilities
Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

  • CWE-131

    Incorrect Calculation of Buffer Size

  • CWE-190

    Integer Overflow or Wraparound

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Mar 21, 2025, 6:03 PM
Reserved
Jan 13, 2022, 12:00 AM
Status
Modified
Published
Apr 29, 2022, 5:15 PM
Modified
Jun 17, 2026, 4:19 AM
Severity
Moderate
Public date
Mar 28, 2022, 12:00 AM