qemu — security advisory
A flaw was found in the USB redirector device emulation of QEMU in versions prior to 6.1.0-rc2. It occurs when dropping packets during a bulk transfer from a SPICE client due to the packet queue being full. A malicious SPICE client could use this flaw to make QEMU call free() with faked heap chunk metadata, resulting in a crash of QEMU or potential code execution with the privileges of the QEMU process on the host.
- Products
- qemu
- Affected versions
- Not specified
- Fixed versions
- 1:6.0+dfsg-3
- CVEs
- CVE-2021-3682
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 02:01 UTC · Revision 1
Source evidence
A flaw was found in the USB redirector device emulation of QEMU in versions prior to 6.1.0-rc2. It occurs when dropping packets during a bulk transfer from a SPICE client due to the packet queue being full. A malicious SPICE client could use this flaw to make QEMU call free() with faked heap chunk metadata, resulting in a crash of QEMU or potential code execution with the privileges of the QEMU process on the host.
osv:DEBIAN-CVE-2021-3682
qemu
Fixed versions: 1:6.0+dfsg-3
qemu
Fixed versions: 1:6.0+dfsg-3
qemu
Fixed versions: 1:6.0+dfsg-3
Complete source record
{
"id": "48a15a34bce398b250fbe9603f48c4cb29af0263d4a5271e195deb7ad51bac20",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-3682",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2021-3682",
"summary": "A flaw was found in the USB redirector device emulation of QEMU in versions prior to 6.1.0-rc2. It occurs when dropping packets during a bulk transfer from a SPICE client due to the packet queue being full. A malicious SPICE client could use this flaw to make QEMU call free() with faked heap chunk metadata, resulting in a crash of QEMU or potential code execution with the privileges of the QEMU process on the host.",
"evidence": "osv:DEBIAN-CVE-2021-3682",
"products": [
{
"name": {
"value": "qemu",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1:6.0+dfsg-3",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "qemu",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1:6.0+dfsg-3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "qemu",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1:6.0+dfsg-3",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2021-3682",
"aliases": [
"DEBIAN-CVE-2021-3682"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1:6.0+dfsg-3"
}
]
}
],
"package": {
"name": "qemu",
"purl": "pkg:deb/debian/qemu?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3682.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1:6.0+dfsg-3"
}
]
}
],
"package": {
"name": "qemu",
"purl": "pkg:deb/debian/qemu?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3682.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1:6.0+dfsg-3"
}
]
}
],
"package": {
"name": "qemu",
"purl": "pkg:deb/debian/qemu?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3682.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T18:05:22.950819798Z",
"provider": "osv",
"upstream": [
"CVE-2021-3682"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2021-3682"
]
},
"related_cves": [
{
"value": "CVE-2021-3682",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 424358,
"published_at": "2021-08-05T20:15:09.963+00:00"
}