CWE
416
Advisory Published
CVE Published
Updated

CVE-2021-3975: Use After Free

First published: Wed 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.

Credit: secalert@redhat.com secalert@redhat.com secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
redhat/libvirt<7.1.0
7.1.0
debian/libvirt
7.0.0-3+deb11u3
9.0.0-4+deb12u1
10.7.0-3
Red Hat Libvirt-daemon-driver-storage-iscsi-direct<7.1.0
Ubuntu=21.10
Red Hat Fedora=35
Red Hat Enterprise Linux=8.0
Red Hat Enterprise Linux Server EUS=8.6
Red Hat Enterprise Linux for IBM Z Systems=8.0
Red Hat Enterprise Linux for IBM Z Systems (s390x)=8.6
Red Hat Enterprise Linux for Power, little endian=8.0
Red Hat Enterprise Linux for Power, little endian - Extended Update Support=8.6
Red Hat Enterprise Linux for SAP Applications for Power, little endian - Extended Update Support=8.6
Red Hat Enterprise Linux Server=8.6
All of
Red Hat CodeReady Linux Builder
Any of
Red Hat Enterprise Linux=8.0
Red Hat Enterprise Linux Server EUS=8.6
Red Hat Enterprise Linux for IBM Z Systems=8.0
Red Hat Enterprise Linux for IBM Z Systems (s390x)=8.6
Red Hat Enterprise Linux for Power, little endian=8.0
Red Hat Enterprise Linux for Power, little endian - Extended Update Support=8.6
Debian Linux=10.0
Debian Linux=11.0
NetApp ONTAP Select Deploy
Red Hat CodeReady Linux Builder
Red Hat Enterprise Linux=8.0
Red Hat Enterprise Linux Server EUS=8.6
Red Hat Enterprise Linux for IBM Z Systems=8.0
Red Hat Enterprise Linux for IBM Z Systems (s390x)=8.6
Red Hat Enterprise Linux for Power, little endian=8.0
Red Hat Enterprise Linux for Power, little endian - Extended Update Support=8.6

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2021-3975?

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

  • What is the severity of CVE-2021-3975?

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

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

  • How can I fix CVE-2021-3975?

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

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203