CVE-2021-4207

QEMU: QXL: double fetch in qxl_cursor() 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. 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.

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-34065 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.
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-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

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