Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-4207
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 06:20 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-4207
Complete source record
{
"id": "40186fda987d599c91486d49cd922a23989924b1e8d427886c1f1316efce372e",
"url": "https://osv.dev/vulnerability/CVE-2021-4207",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-4207",
"summary": "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.",
"evidence": "osv:CVE-2021-4207",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-4207",
"aliases": [
"CVE-2021-4207"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/qemu/qemu",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "823a3f11fb8f04c3c3cc0f95f968fef1bfc6534f"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:qemu:qemu:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "7.0.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v7.0.0-rc4",
"v7.0.0-rc3",
"v7.0.0-rc2",
"v7.0.0-rc1",
"v7.0.0-rc0",
"v6.2.0",
"v6.2.0-rc4",
"v6.1.0",
"v6.2.0-rc3",
"v6.2.0-rc1",
"v6.2.0-rc0",
"v6.0.0",
"v6.1.0-rc4",
"v6.1.0-rc3",
"v6.1.0-rc2",
"v6.1.0-rc1",
"v6.1.0-rc0",
"v6.0.0-rc5",
"v6.0.0-rc4",
"v6.0.0-rc3",
"v6.0.0-rc2",
"v6.0.0-rc1",
"v6.0.0-rc0",
"v5.2.0",
"v5.2.0-rc4",
"v5.2.0-rc3",
"v5.2.0-rc2",
"v5.2.0-rc1",
"v5.2.0-rc0",
"v5.0.0",
"v5.1.0",
"v5.1.0-rc3",
"v5.1.0-rc2",
"v5.1.0-rc1",
"v5.1.0-rc0",
"v4.2.0",
"v5.0.0-rc4",
"v5.0.0-rc3",
"v5.0.0-rc2",
"v5.0.0-rc1",
"v5.0.0-rc0",
"v4.2.0-rc5",
"v4.2.0-rc4",
"v4.2.0-rc3",
"v4.2.0-rc2",
"v4.2.0-rc1",
"v4.2.0-rc0",
"v4.1.0",
"v4.0.0",
"v4.1.0-rc5",
"v4.1.0-rc4",
"v4.1.0-rc3",
"v4.1.0-rc2",
"v4.1.0-rc1",
"v4.1.0-rc0",
"v4.0.0-rc4",
"v4.0.0-rc3",
"v4.0.0-rc2",
"v4.0.0-rc1",
"v3.1.0",
"v4.0.0-rc0",
"v3.0.0",
"v3.1.0-rc5",
"v3.1.0-rc4",
"v3.1.0-rc3",
"v3.1.0-rc2",
"v3.1.0-rc1",
"v3.1.0-rc0",
"v3.0.0-rc4",
"v3.0.0-rc3",
"v3.0.0-rc2",
"v3.0.0-rc1",
"v3.0.0-rc0",
"v2.12.0",
"v2.12.0-rc4",
"v2.12.0-rc3",
"v2.12.0-rc2",
"v2.12.0-rc1",
"v2.12.0-rc0",
"v2.11.0",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c2",
"v1.6.0-rc1",
"v1.6.0-rc0",
"v1.5.0",
"v1.5.0-rc3",
"v1.5.0-rc2",
"v1.5.0-rc1",
"v1.5.0-rc0",
"v1.4.0",
"v1.4.0-rc2",
"v1.4.0-rc1",
"v1.4.0-rc0",
"v1.3.0",
"v1.3.0-rc2",
"v1.3.0-rc1",
"v1.3.0-rc0",
"v1.2.0",
"v1.2.0-rc3",
"v1.2.0-rc2",
"v1.2.0-rc1",
"v1.2.0-rc0",
"v1.1.0",
"v1.1.0-rc4",
"v1.1.0-rc3",
"v1.1.0-rc2",
"v1.1-rc2",
"v1.1-rc1",
"v1.1-rc0",
"v1.0",
"v1.0-rc4",
"v1.0-rc3",
"v1.0-rc2",
"v1.0-rc1",
"v1.0-rc0",
"v0.14.0-rc0",
"v0.13.0-rc0",
"v0.12.0-rc0",
"v0.11.0-rc0",
"v0.5.0",
"v0.4.4",
"v0.4.3",
"v0.4.2",
"v0.4.1",
"v0.4.0",
"v0.3.0",
"v0.2.0",
"v0.1.6",
"v0.1.5",
"v0.1.4",
"v0.1.3",
"v0.1.1",
"v0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-4207.json"
}
},
{
"ranges": [
{
"repo": "https://gitlab.com/qemu-project/qemu",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "823a3f11fb8f04c3c3cc0f95f968fef1bfc6534f"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:qemu:qemu:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "7.0.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v7.0.0-rc4",
"v7.0.0-rc3",
"v7.0.0-rc2",
"v7.0.0-rc1",
"v7.0.0-rc0",
"v6.2.0",
"v6.2.0-rc4",
"v6.1.0",
"v6.2.0-rc3",
"v6.2.0-rc1",
"v6.2.0-rc0",
"v6.0.0",
"v6.1.0-rc4",
"v6.1.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2.0-rc3",
"v1.2.0-rc2",
"v1.2.0-rc1",
"v1.2.0-rc0",
"v1.1.0",
"v1.1.0-rc4",
"v1.1.0-rc3",
"v1.1.0-rc2",
"v1.1-rc2",
"v1.1-rc1",
"v1.1-rc0",
"v1.0",
"v1.0-rc4",
"v1.0-rc3",
"v1.0-rc2",
"v1.0-rc1",
"v1.0-rc0",
"v0.14.0-rc0",
"v0.13.0-rc0",
"v0.12.0-rc0",
"v0.11.0-rc0",
"v0.5.0",
"v0.4.4",
"v0.4.3",
"v0.4.2",
"v0.4.1",
"v0.4.0",
"v0.3.0",
"v0.2.0",
"v0.1.6",
"v0.1.5",
"v0.1.4",
"v0.1.3",
"v0.1.1",
"v0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-4207.json"
}
}
],
"modified": "2026-10-24T10:30:37.987701310Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2022/09/msg00008.html",
"https://security.gentoo.org/glsa/202208-27",
"https://security.netapp.com/advisory/ntap-20250321-0009/",
"https://www.debian.org/security/2022/dsa-5133",
"https://bugzilla.redhat.com/show_bug.cgi?id=2036966",
"https://starlabs.sg/advisories/21-4207/"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "10.0"
},
{
"last_affected": "10.0"
},
{
"introduced": "11.0"
},
{
"last_affected": "11.0"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:-:*:*:*",
"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:advanced_virtualization:*:*:*"
],
"vendor_product": "redhat:enterprise_linux",
"extracted_events": [
{
"range": [
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
},
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-4207",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 434346,
"published_at": "2022-04-29T17:15:20.1+00:00"
}