CVE-2021-3975
Vulnerability Summary
Timeline
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.
CVSS Metrics
- v3.1•MEDIUM•Score: 6.5CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS Trends
Current EPSS score: 0.60%• Percentile: 70%
Techniques & Countermeasures
- CWE-416•Use After Free
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
Affected Systems
- canonical•ubuntu_linux
21.10
- debian•debian_linux
10.0 | 11.0
- fedoraproject•fedora
35
- netapp•ontap_select_deploy_administration_utility
na
- redhat•codeready_linux_builder
na
- 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•libvirt
< 7.1.0
References (6)
- https://bugzilla.redhat.com/show_bug.cgi?id=2024326
- https://access.redhat.com/security/cve/CVE-2021-3975
- https://ubuntu.com/security/CVE-2021-3975
- https://github.com/libvirt/libvirt/commit/1ac703a7d0789e46833f4013a3876c2e3af18ec7
- https://security.netapp.com/advisory/ntap-20221201-0002/
- https://lists.debian.org/debian-lts-announce/2024/04/msg00000.html