cve.bz

CVE-2021-3975 Use After Free

6.5 mediumEPSS 1.7%Fix available

Medium (6.5). EPSS 1.7% estimated probability of exploitation activity in the next 30 days.

On this page
A use-after-free flaw was found in libvirt. The qemuMonitorUnregister() function in qemuProcessHandleMonitorEOF is called using multiple threads without being adequately protected by a monitor lock. This flaw could be triggered by the virConnectGetAllDomainStats API when the guest is shutting down. An unprivileged client with a read-only connection could use this flaw to perform a denial of service attack by causing the libvirt daemon to crash.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
1.7% (unchanged from 1.7% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 78th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-416 Use After Free
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-3975 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3975?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3975?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-3975 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
redhat:libvirtbefore 7.1.0
canonical:ubuntu_linux21.10
fedoraproject:fedora35
redhat:enterprise_linux8.0
redhat:enterprise_linux_eus8.6
redhat:enterprise_linux_for_ibm_z_systems8.0
redhat:enterprise_linux_for_ibm_z_systems_eus8.6
redhat:enterprise_linux_for_power_little_endian8.0
redhat:enterprise_linux_for_power_little_endian_eus8.6
redhat:enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions8.6
redhat:enterprise_linux_server_tus8.6
debian:debian_linux10.0
debian:debian_linux11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10libvirt5.0.0-4+deb10u2DLA-3778-1
Debian12, 13, 14libvirt7.6.0-1DEBIAN-CVE-2021-3975
Ubuntu18.04:LTSlibvirt4.0.0-1ubuntu8.21UBUNTU-CVE-2021-3975 USN-5399-1
Ubuntu20.04:LTSlibvirt6.0.0-0ubuntu8.16UBUNTU-CVE-2021-3975 USN-5399-1
Ubuntu22.04:LTSlibvirt7.6.0-0ubuntu3UBUNTU-CVE-2021-3975
Red Hatadvanced_virtualization:8.5::el8SLOF0:20210217-1.module+el8.5.0+10946+35bb3930RHBA-2021:4684
Red Hatadvanced_virtualization:8.5::el8hivex, perl-hivex, ruby-hivex and 10 more0:1.3.18-22.module+el8.5.0+12087+2208d04cRHBA-2021:4684
Red Hatadvanced_virtualization:8.5::el8libguestfs-winsupport0:8.2-2.module+el8.5.0+12739+164806c8RHBA-2021:4684
Red Hatadvanced_virtualization:8.5::el8libiscsi, libiscsi-devel, libiscsi-utils and 3 more0:1.18.0-8.module+el8.4.0+8855+a9e237a9RHBA-2021:4684
Red Hatadvanced_virtualization:8.5::el8libnbd, nbdfuse, libnbd-devel and 9 more0:1.6.0-4.module+el8.5.0+11638+3d8f9850RHBA-2021:4684
Red Hatadvanced_virtualization:8.5::el8libtpms, libtpms-devel, libtpms-debuginfo and 1 more0:0.7.4-6.20201106git2452a24dab.module+el8.5.0+12487+f2fa92b4RHBA-2021:4684
Red Hatadvanced_virtualization:8.5::el8libvirt, libvirt-nss, libvirt-docs and 48 more0:7.6.0-6.module+el8.5.0+13051+7ddbe958RHBA-2021:4684
Red Hatadvanced_virtualization:8.5::el8libvirt-dbus, libvirt-dbus-debuginfo, libvirt-dbus-debugsource0:1.3.0-2.module+el8.4.0+8855+a9e237a9RHBA-2021:4684
Red Hatadvanced_virtualization:8.5::el8libvirt-python, python3-libvirt, python3-libvirt-debuginfo and 1 more0:7.6.0-1.module+el8.5.0+12098+85b3670bRHBA-2021:4684
Red Hatadvanced_virtualization:8.5::el8nbdkit, nbdkit-devel, nbdkit-server and 34 more0:1.24.0-1.module+el8.4.0+9341+96cf2672RHBA-2021:4684
Red Hatadvanced_virtualization:8.5::el8netcf, netcf-libs, netcf-devel and 3 more0:0.2.8-12.module+el8.4.0+8855+a9e237a9RHBA-2021:4684
Red Hatadvanced_virtualization:8.5::el8perl-Sys-Virt, perl-Sys-Virt-debuginfo, perl-Sys-Virt-debugsource0:7.4.0-1.module+el8.5.0+11289+b29e262fRHBA-2021:4684
35 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 morelibvirt5.1.0-17.1SUSE-SU-2022:0128-1
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSS and 7 morelibvirt6.0.0-13.24.1SUSE-SU-2022:0045-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP3-LTSS and 3 morelibvirt3.3.0-5.49.1SUSE-SU-2022:0041-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 morelibvirt4.0.0-9.40.1SUSE-SU-2022:0031-1
SUSELinux Enterprise Real Time 15 SP2libvirt6.0.0-13.24.1SUSE-SU-2022:0045-2
SUSELinux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server for SAP Applications 12 SP4, OpenStack Cloud 9 and 1 morelibvirt4.0.0-8.26.1SUSE-SU-2022:0042-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5libvirt5.1.0-13.28.2SUSE-SU-2022:0032-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.
Rocky Linux8hivex0:1.3.18-23.module+el8.6.0+847+b490afddRLSA-2022:1759
Rocky Linux8hivex0:1.3.18-23.module+el8.7.0+1084+97b81f61RLSA-2022:1759
Rocky Linux8libguestfs1:1.44.0-5.module+el8.6.0+1052+ff61d164.rockyRLSA-2022:1759
Rocky Linux8libguestfs-winsupport0:8.6-1.module+el8.6.0+847+b490afddRLSA-2022:1759
Rocky Linux8libguestfs-winsupport0:8.6-1.module+el8.7.0+1084+97b81f61RLSA-2022:1759
Rocky Linux8libiscsi0:1.18.0-8.module+el8.4.0+534+4680a14eRLSA-2022:1759
Rocky Linux8libiscsi0:1.18.0-8.module+el8.6.0+847+b490afddRLSA-2022:1759
Rocky Linux8libiscsi0:1.18.0-8.module+el8.7.0+1084+97b81f61RLSA-2022:1759
Rocky Linux8libnbd0:1.6.0-5.module+el8.6.0+847+b490afddRLSA-2022:1759
Rocky Linux8libnbd0:1.6.0-5.module+el8.7.0+1084+97b81f61RLSA-2022:1759
Rocky Linux8libtpms0:0.9.1-0.20211126git1ff6fe1f43.module+el8.6.0+1052+ff61d164RLSA-2022:1759
Rocky Linux8libvirt0:8.0.0-5.module+el8.6.0+847+b490afddRLSA-2022:1759
17 more for Rocky Linux in the JSON.

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; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Advanced Virtualization for RHEL 8.5.0virt:av-8050020211025110038.c5368500Fixed 2021-11-16RHBA-2021:4684
Advanced Virtualization for RHEL 8.5.0virt-devel:av-8050020211025110038.c5368500Fixed 2021-11-16RHBA-2021:4684
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 6libvirtOut of support scope
Red Hat Enterprise Linux 7libvirtOut of support scope
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:8.2/libvirtFix deferred
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:av/libvirtAffected
Red Hat Enterprise Linux 9libvirtNot affected

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-3975.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

References

Check your stackJSON