BreachSpiderVerified, not vibes

CVE-2021-3975 in Canonical Ubuntu Linux and 13 more products

Medium 6.5

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

Affects 14 products from 5 vendors. Facts below cite their sources.

CVSS 3.16.5
EPSS1.7%
EPSS percentile78th
FixSee advisory

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Canonical Ubuntu Linux 21.10
Debian Debian Linux 10.0 11.0
Fedoraproject Fedora 35
Netapp Ontap Select Deploy Administration Utility No version listed by the source
Redhat Libvirt < 7.1.0
Redhat Enterprise Linux For Ibm Z Systems Eus 8.6
Redhat Enterprise Linux Server Tus 8.6
Redhat Enterprise Linux For Power Little Endian 8.0
Redhat Enterprise Linux For Power Little Endian Eus 8.6
Redhat Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions 8.6
Redhat Codeready Linux Builder No version listed by the source
Redhat Enterprise Linux For Ibm Z Systems 8.0
Redhat Enterprise Linux Eus 8.6
Redhat Enterprise Linux 8.0

Show 6 more products

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-3975
BreachSpider IDBS-2022-GLOBAL-307026-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Published2022-08-23
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-416: Use After Free

Software references memory after it has been freed, leading to corruption, crashes, or code execution.

Analysis AI-written, not human-reviewed

A use-after-free flaw in libvirt's qemuMonitorUnregister() function can lead to a denial of service when triggered by an unprivileged client with a read-only connection.

The flaw occurs in the qemuProcessHandleMonitorEOF function when multiple threads call qemuMonitorUnregister() without proper synchronization, potentially leading to a use-after-free condition. This can be exploited by an unprivileged client using the virConnectGetAllDomainStats API during guest shutdown.

Questions

What is CVE-2021-3975?

A use-after-free flaw in libvirt's qemuMonitorUnregister() function can lead to a denial of service when triggered by an unprivileged client with a read-only connection.

What is the CVSS score for CVE-2021-3975?

CVE-2021-3975 has CVSS 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. EPSS: 1.7%.

Is CVE-2021-3975 actively exploited?

No confirmed active exploitation of CVE-2021-3975 as of 2026-09-25.

How do I remediate CVE-2021-3975?

Priority: MEDIUM. Advisory: https://access.redhat.com/security/cve/CVE-2021-3975

What systems are affected by CVE-2021-3975?

CVE-2021-3975 affects Canonical Ubuntu Linux; Debian Debian Linux; Fedoraproject Fedora; Netapp Ontap Select Deploy Administration Utility; Redhat Libvirt, Enterprise Linux For Ibm Z Systems Eus, Enterprise Linux Server Tus, Enterprise Linux For Power Little Endian, Enterprise Linux For Power Little Endian Eus, Enterprise Linux Server For Power Little Endian Update Services For Sap Solutions (plus 4 more products).

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Canonical","product":"Ubuntu Linux","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.