CVE-2021-3975

MEDIUMCVSS 6.5/10EPSS 1.22%

Last modified

CVE-2021-3975 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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. EPSS estimates a 1.22% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
6.5/10

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

EPSS Probability
1.22%

64.8th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
RedhatLibvirt< 7.1.0
CanonicalUbuntu Linux21.10
FedoraprojectFedora35
RedhatEnterprise Linux8.0
RedhatEnterprise Linux Eus8.6
RedhatEnterprise Linux For Ibm Z Systems8.0
RedhatEnterprise Linux For Ibm Z Systems Eus8.6
RedhatEnterprise Linux For Power Little Endian8.0
RedhatEnterprise Linux For Power Little Endian Eus8.6
RedhatEnterprise Linux Server For Power Little Endian Update Services For Sap Solutions8.6
RedhatEnterprise Linux Server Tus8.6
RedhatCodeready Linux BuilderAll versions
DebianDebian Linux10.0
DebianDebian Linux11.0
NetappOntap Select Deploy Administration UtilityAll versions

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2021-3975?
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.
How severe is CVE-2021-3975?
CVE-2021-3975 has a CVSS score of 6.5/10 (MEDIUM severity). The EPSS model estimates a 1.22% probability of exploitation in the next 30 days.
How do I fix CVE-2021-3975?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2021-3975?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST