cve.bz

CVE-2021-3682 Release of Invalid Pointer or Reference

8.5 highEPSS 2.9%Fix available

High (8.5). EPSS 2.9% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.5 high
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS
2.9% (unchanged from 2.9% a week ago; 2.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 87th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-763 Release of Invalid Pointer or Reference
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3682 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3682?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3682?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3682 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
qemu:qemubefore 6.1.0
qemu:qemu6.1.0:rc1
redhat:enterprise_linux8.0
debian:debian_linux9.0
debian:debian_linux10.0
debian:debian_linux11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9qemu1:2.8+dfsg-6+deb9u15DLA-2753-1
Debian10qemu1:3.1+dfsg-8+deb10u9DLA-3099-1
Debian11qemu1:5.2+dfsg-11+deb11u1DSA-4980-1
Debian12, 13, 14qemu1:6.0+dfsg-3DEBIAN-CVE-2021-3682
Ubuntu18.04:LTSqemu1:2.11+dfsg-1ubuntu7.39UBUNTU-CVE-2021-3682 USN-5307-1 USN-5772-1
Ubuntu20.04:LTSqemu1:4.2-3ubuntu6.21UBUNTU-CVE-2021-3682 USN-5307-1 USN-5772-1
Ubuntu22.04:LTSqemu1:6.2+dfsg-2ubuntu5UBUNTU-CVE-2021-3682 USN-5772-1
UbuntuPro:14.04:LTSqemu2.0.0+dfsg-2ubuntu1.47+esm2UBUNTU-CVE-2021-3682 USN-5772-1
UbuntuPro:16.04:LTSqemu1:2.5+dfsg-5ubuntu10.51+esm1UBUNTU-CVE-2021-3682 USN-5772-1
Red Hatadvanced_virtualization:8.2::el8SLOF0:20191022-3.git899d9883.module+el8.2.0+5449+efc036ddRHSA-2021:3704
Red Hatadvanced_virtualization:8.2::el8hivex, perl-hivex, ruby-hivex and 10 more0:1.3.18-20.module+el8.2.0+5588+63a201c3RHSA-2021:3704
Red Hatadvanced_virtualization:8.2::el8libguestfs-winsupport0:8.2-2.module+el8.2.1+12663+d52ebc0dRHSA-2021:3704
Red Hatadvanced_virtualization:8.2::el8libiscsi, libiscsi-devel, libiscsi-utils and 3 more0:1.18.0-8.module+el8.2.0+4793+b09dd2fbRHSA-2021:3704
Red Hatadvanced_virtualization:8.2::el8libnbd, nbdfuse, libnbd-devel and 8 more0:1.2.2-1.module+el8.2.0+5644+32ac38d4RHSA-2021:3704
Red Hatadvanced_virtualization:8.2::el8libtpms, libtpms-devel, libtpms-debuginfo and 1 more0:0.7.0-1.20191018gitdc116933b7.module+el8.2.0+4793+b09dd2fbRHSA-2021:3704
Red Hatadvanced_virtualization:8.2::el8libvirt, libvirt-nss, libvirt-docs and 49 more0:6.0.0-25.6.module+el8.2.1+12457+868e9540RHSA-2021:3704
Red Hatadvanced_virtualization:8.2::el8libvirt-dbus, libvirt-dbus-debuginfo, libvirt-dbus-debugsource0:1.3.0-2.module+el8.2.0+4793+b09dd2fbRHSA-2021:3704
Red Hatadvanced_virtualization:8.2::el8libvirt-python, python3-libvirt, python3-libvirt-debuginfo and 1 more0:6.0.0-1.module+el8.2.0+5453+31b2b136RHSA-2021:3704
Red Hatadvanced_virtualization:8.2::el8nbdkit, nbdkit-devel, nbdkit-server and 24 more0:1.16.2-4.module+el8.2.1+6710+effcb1dfRHSA-2021:3704
Red Hatadvanced_virtualization:8.2::el8netcf, netcf-libs, netcf-devel and 3 more0:0.2.8-12.module+el8.2.0+4793+b09dd2fbRHSA-2021:3704
Red Hatadvanced_virtualization:8.2::el8perl-Sys-Virt, perl-Sys-Virt-debuginfo, perl-Sys-Virt-debugsource0:6.0.0-1.module+el8.2.0+5488+267def79RHSA-2021:3704
54 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 3 moreqemu3.1.1.1-80.40.1SUSE-SU-2021:3614-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 moreqemu2.11.2-70.59.1SUSE-SU-2021:3613-1
SUSELinux Enterprise Micro 5.0, Linux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Server Applications 15 SP2qemu4.2.1-11.28.1SUSE-SU-2021:2789-1
SUSELinux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Server Applications 15 SP3qemu5.2.0-103.2SUSE-SU-2021:2858-1
SUSELinux Enterprise Server 11 SP4-LTSSxen4.4.4_50-61.67.1SUSE-SU-2021:14848-1
SUSELinux Enterprise Server 12 SP2-BCLqemu2.6.2-41.73.1SUSE-SU-2021:3575-1
SUSELinux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server for SAP Applications 12 SP4, OpenStack Cloud 9 and 1 moreqemu2.11.2-5.40.2SUSE-SU-2021:3635-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5qemu3.1.1.1-57.2SUSE-SU-2021:2813-1
openSUSELeap 15.2qemu, qemu-testsuite, qemu-linux-user4.2.1-lp152.9.20.1openSUSE-SU-2021:1202-1
openSUSELeap 15.3qemu3.1.1.1-80.40.1openSUSE-SU-2021:3614-1
openSUSELeap 15.3qemu4.2.1-11.28.1openSUSE-SU-2021:2789-1
openSUSELeap 15.3qemu5.2.0-103.2openSUSE-SU-2021:2858-1
openSUSETumbleweedqemu6.1.0-32.1openSUSE-SU-2024:11287-1
AlmaLinux8SLOF20210217-1.module_el8.6.0+2880+7d9e3703ALSA-2022:1759
AlmaLinux8hivex, perl-hivex, ruby-hivex and 4 more1.3.18-23.module_el8.6.0+2880+7d9e3703ALSA-2022:1759
AlmaLinux8libguestfs-winsupport8.6-1.module_el8.6.0+2880+7d9e3703ALSA-2022:1759
AlmaLinux8libiscsi, libiscsi-devel, libiscsi-utils1.18.0-8.module_el8.6.0+2880+7d9e3703ALSA-2022:1759
AlmaLinux8libnbd, nbdfuse, libnbd-devel and 4 more1.6.0-5.module_el8.6.0+2880+7d9e3703ALSA-2022:1759
AlmaLinux8libtpms, libtpms-devel0.9.1-0.20211126git1ff6fe1f43.module_el8.6.0+2880+7d9e3703ALSA-2022:1759
AlmaLinux8libvirt, libvirt-nss, libvirt-docs and 25 more8.0.0-5.module_el8.6.0+2880+7d9e3703ALSA-2022:1759
AlmaLinux8libvirt-dbus1.3.0-2.module_el8.6.0+2880+7d9e3703ALSA-2022:1759
AlmaLinux8nbdkit, nbdkit-devel, nbdkit-server and 16 more1.24.0-4.module_el8.6.0+2880+7d9e3703ALSA-2022:1759
AlmaLinux8netcf, netcf-libs, netcf-devel0.2.8-12.module_el8.6.0+2880+7d9e3703ALSA-2022:1759
AlmaLinux8perl-Sys-Virt, python3-libvirt8.0.0-1.module_el8.6.0+2880+7d9e3703ALSA-2022:1759
AlmaLinux8qemu-img, qemu-kvm, qemu-kvm-core and 12 more15:6.2.0-11.module_el8.6.0+2880+7d9e3703ALSA-2022:1759
6 more for AlmaLinux in the JSON.
Alpinev3.16, v3.17, v3.18 and 6 moreqemu6.1.0-r0ALPINE-CVE-2021-3682
Azure Linux2qemu6.2.0-2AZL-6830

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue affects the versions of `qemu-kvm` as shipped with Red Hat Enterprise Linux 8 and Red Hat Enterprise Linux 8 Advanced Virtualization. A future update may address this flaw.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Advanced Virtualization for RHEL 8.2.1virt:8.2-8020120210917153657.863bb0dbFixed 2021-09-30RHSA-2021:3704
Advanced Virtualization for RHEL 8.2.1virt-devel:8.2-8020120210917153657.863bb0dbFixed 2021-09-30RHSA-2021:3704
Advanced Virtualization for RHEL 8.4.0.Zvirt:av-8040020210922084349.522a0ee4Fixed 2021-09-30RHSA-2021:3703
Advanced Virtualization for RHEL 8.4.0.Zvirt-devel:av-8040020210922084349.522a0ee4Fixed 2021-09-30RHSA-2021:3703
Red Hat Enterprise Linux 8virt-devel:rhel-8060020220408104655.d63f516dFixed 2022-05-10RHSA-2022:1759
Red Hat Enterprise Linux 8virt:rhel-8060020220408104655.d63f516dFixed 2022-05-10RHSA-2022:1759
Red Hat Enterprise Linux 6qemu-kvmOut of support scope
Red Hat Enterprise Linux 7qemu-kvmOut of support scope
Red Hat Enterprise Linux 7qemu-kvm-maOut of support scope
Red Hat Enterprise Linux 7qemu-kvm-rhevOut of support scope
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:8.2/qemu-kvmAffected
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:8.3/qemu-kvmWill not fix
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:av/qemu-kvmAffected
Red Hat Enterprise Linux 9qemu-kvmNot affected
Red Hat OpenStack Platform 10 (Newton)qemu-kvm-rhevOut of support scope
Red Hat OpenStack Platform 13 (Queens)qemu-kvm-rhevOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3682.

References

Check your stackJSON