CVE-2021-3975: Use After Free

Published Nov 17, 2021
·
Updated

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.

Other sources

A use-after-free flaw was found in qemuProcessHandleMonitorEOF() within src/qemu/qemuprocess.c, here qemuMonitorUnregister() is called using multiple threads without being adequately protected by a monitor lock. This issue could be used by a unprivileged user to perform a denial of service attack by causing segmentation fault on libvirt

Fixed upstream in libvirt: https://github.com/libvirt/libvirt/commit/1ac703a7d0789e46833f4013a3876c2e3af18ec7

Red Hat

Affected Software

30 affected componentsFixes available
redhat/libvirt<7.1.0
7.1.0
redhat libvirt<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
All of the following
redhat Codeready Linux Builder
Any of the following
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
Debian Debian Linux=10.0
Debian Debian Linux=11.0
NetApp ONTAP Select Deploy administration utility
redhat Codeready Linux Builder
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
debian/libvirt
7.0.0-3+deb11u39.0.0-4+deb12u211.3.0-3+deb13u212.0.0-1

Event History

Aug 23, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
May 3, 2024
Data Sourced
via Launchpad·02:06 AM
Description
Feb 24, 2026
Data Sourced
via Ubuntu·09:22 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·09:22 PM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-3975?

CVE-2021-3975 is a use-after-free vulnerability found in libvirt.

2

What is the severity of CVE-2021-3975?

The severity of CVE-2021-3975 is medium with a CVSS score of 6.5.

3

How does CVE-2021-3975 affect libvirt?

CVE-2021-3975 affects libvirt by allowing an attacker to trigger a use-after-free flaw, potentially leading to arbitrary code execution or a denial of service.

4

How can I fix CVE-2021-3975?

To fix CVE-2021-3975, update libvirt to version 7.1.0 or later.

5

Where can I find more information about CVE-2021-3975?

You can find more information about CVE-2021-3975 on the Red Hat Security Advisory and the GitHub commit linked in the references.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203