CVE-2021-3667
n/a libvirt: Improper Locking
Check your servers for CVE-2021-3667
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-3667 affects libvirt, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
An improper locking issue was found in the virStoragePoolLookupByTargetPath API of libvirt. It occurs in the storagePoolLookupByTargetPath function where a locked virStoragePoolObj object is not properly released on ACL permission failure. Clients connecting to the read-write socket with limited ACL permissions could use this flaw to acquire the lock and prevent other users from accessing storage pool/volume APIs, resulting in a denial of service condition. The highest threat from this vulnerability is to system availability.
Exploitation
EPSS 1.37%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 72.6% of all scored CVEs. Scores of 1 Dec 2026.
Weakness
- CWE-667 Improper Locking
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
libvirt
n/a
|
affected Fixedin - libvert v7.6.0-rc1 and above
|
Is my server affected?
Find the installed version of libvirt and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i libvirt
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2021-3667 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2021-3667RHEL, Rocky, Alma, Fedora
rpm -q libvirt
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2021-3667Alpine
apk list --installed | grep -i libvirtWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-3667
trivy image --scanners vuln IMAGE | grep CVE-2021-3667
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- GLSA-202210-06 security.gentoo.org · vendor advisory
Other references
- https://bugzilla.redhat.com/show_bug.cgi?id=1986094 bugzilla.redhat.com
- https://libvirt.org/git/?p=libvirt.git%3Ba=commit%3Bh=447f69dec47e1b0bd15ecd7cd49a9fd3b050fb87 libvirt.org
- https://gitlab.com/libvirt/libvirt/-/commit/447f69dec47e1b0bd15ecd7cd49a9fd3b050fb87 gitlab.com
- https://security.netapp.com/advisory/ntap-20220331-0005/ security.netapp.com
- https://lists.debian.org/debian-lts-announce/2024/04/msg00000.html lists.debian.org
Source: the record CVE-2021-3667 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse