CVE-2021-3682

QEMU: usbredir: free() call on invalid pointer in bufp_alloc()

Published Aug 5, 2021 CVSS 3.1 · 8.5 High EPSS 2.9% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2753-1 qemu security update
Debian DLA Debian DLA DLA-3099-1 qemu security update
Debian DSA Debian DSA DSA-4980-1 qemu security update
EUVD EUVD EUVD-2021-26972 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.
Ubuntu USN Ubuntu USN USN-5307-1 QEMU vulnerabilities
Ubuntu USN Ubuntu USN USN-5772-1 QEMU vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 3, 2024, 5:01 PM
Reserved
Aug 4, 2021, 12:00 AM
Status
Modified
Published
Aug 5, 2021, 8:15 PM
Modified
Jun 17, 2026, 4:05 AM
Severity
Moderate
Public date
Jul 19, 2021, 12:00 AM