# CVE-2021-3975: A use-after-free flaw was found in libvirt.

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.74%, higher than 78% of CVEs (2026-12-01)
- Published: 2022-08-23T00:00:00.000Z
- Modified: 2026-06-17T04:06:19.470Z
- Weaknesses: CWE-416
- Assigned by: redhat

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

(As written by CVE List.)

## Affected

- libvirt: Fixed in libvirt v7.1.0
- redhat libvirt: before 7.1.0
- canonical ubuntu_linux: 21.10
- fedoraproject fedora: 35
- redhat enterprise_linux: 8.0
- redhat enterprise_linux_eus: 8.6
- redhat enterprise_linux_for_ibm_z_systems: 8.0
- redhat enterprise_linux_for_ibm_z_systems_eus: 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 enterprise_linux_server_tus: 8.6
- redhat codeready_linux_builder: no versions given
- debian debian_linux: 10.0; 11.0
- netapp ontap_select_deploy_administration_utility: no versions given

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2024326> (issue-tracking, patch, third-party-advisory)
- <https://access.redhat.com/security/cve/CVE-2021-3975> (issue-tracking, third-party-advisory)
- <https://ubuntu.com/security/CVE-2021-3975> (patch, third-party-advisory)
- <https://github.com/libvirt/libvirt/commit/1ac703a7d0789e46833f4013a3876c2e3af18ec7> (patch, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20221201-0002/> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/04/msg00000.html> (mailing-list)

## Sources

- CVE List: [CVE-2021-3975](https://www.cve.org/CVERecord?id=CVE-2021-3975), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-3975](https://nvd.nist.gov/vuln/detail/CVE-2021-3975), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3975 · Whole record: https://cve.day/CVE-2021-3975.json · Rebuilt by cve.day 2026-11-25T22:58:07.776Z
