CVE-2022-0897 json
A flaw was found in the libvirt nwfilter driver.
published 2022-03-25 4 y ago modified 2026-06-17 4 mo ago also EUVD-2022-15929
- cvss
- 4.3
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 64%
- public exploits
- 0
- none known
Summary
A flaw was found in the libvirt nwfilter driver. The virNWFilterObjListNumOfNWFilters method failed to acquire the driver->nwfilters mutex before iterating over virNWFilterObj instances. There was no protection to stop another thread from concurrently modifying the driver->nwfilters object. This flaw allows a malicious, unprivileged user to exploit this issue via libvirt's API virConnectNumOfNWFilters to crash the network filter management daemon (libvirtd/virtnwfilterd).
Patch / fix
- libvirt Debian 14, Debian 13, Debian 12 8.2.0-1
debian advisories DEBIAN-CVE-2022-0897
- libvirt Ubuntu 18.04 LTS 4.0.0-1ubuntu8.21
- libvirt Ubuntu 20.04 LTS 6.0.0-0ubuntu8.16
- libvirt Ubuntu 22.04 LTS 8.0.0-1ubuntu7.5
ubuntu advisories UBUNTU-CVE-2022-0897
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- SLOF RHEL 8 20210217-1.module+el8.7.0+16689+53d59bc2
- hivex RHEL 8 1.3.18-23.module+el8.7.0+16689+53d59bc2
- netcf RHEL 8 0.2.8-12.module+el8.7.0+16689+53d59bc2
- swtpm RHEL 8 0.7.0-4.20211109gitb79fd91.module+el8.7.0+16689+53d59bc2
- libnbd RHEL 8 1.6.0-5.module+el8.7.0+16689+53d59bc2
- nbdkit RHEL 8 1.24.0-4.module+el8.7.0+16689+53d59bc2
- libtpms RHEL 8 0.9.1-1.20211126git1ff6fe1f43.module+el8.7.0+16689+53d59bc2
- libvirt RHEL 8 8.0.0-10.module+el8.7.0+16689+53d59bc2
red hat advisories RHSA-2022:7472RHSA-2022:8003
- libvirt SLES for SAP 15 SP2, SLES 15 SP2-LTSS, SLE High Performance Computing 15 SP2-LTSS +1 more 6.0.0-150200.13.27.1
- libvirt SLE Module for Server Applications 15 SP3, SLE Module for Basesystem 15 SP3, SLE Micro 5.2 +3 more 7.1.0-150300.6.29.1
- libvirt SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 5.1.0-13.31.1
suse advisories SUSE-SU-2023:2754-1SUSE-SU-2022:1549-1SUSE-SU-2022:1540-1
- libvirt openSUSE Tumbleweed 8.2.0-1.1
opensuse advisories openSUSE-SU-2024:11972-1
- libvirt AlmaLinux 9 8.5.0-7.el9_1
- libvirt-nss AlmaLinux 9 8.5.0-7.el9_1
- libvirt-libs AlmaLinux 9 8.5.0-7.el9_1
- libvirt-client AlmaLinux 9 8.5.0-7.el9_1
- libvirt-daemon AlmaLinux 9 8.5.0-7.el9_1
- libvirt-daemon-kvm AlmaLinux 9 8.5.0-7.el9_1
- libvirt-lock-sanlock AlmaLinux 9 8.5.0-7.el9_1
- libvirt-daemon-driver-qemu AlmaLinux 9 8.5.0-7.el9_1
almalinux advisories ALSA-2022:8003
- libvirt Rocky Linux 9 8.5.0-7.3.el9_1
- hivex Rocky Linux 8 1.3.18-23.module+el8.7.0+1084+97b81f61
- hivex Rocky Linux 8 1.3.18-23.module+el8.6.0+847+b490afdd
- netcf Rocky Linux 8 0.2.8-12.module+el8.7.0+1084+97b81f61
- netcf Rocky Linux 8 0.2.8-12.module+el8.4.0+534+4680a14e
- netcf Rocky Linux 8 0.2.8-12.module+el8.6.0+847+b490afdd
- swtpm Rocky Linux 8 0.7.0-4.20211109gitb79fd91.module+el8.7.0+1084+97b81f61
- libnbd Rocky Linux 8 1.6.0-5.module+el8.7.0+1084+97b81f61
rocky linux advisories RLSA-2022:8003RLSA-2022:7472
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-0897 updated cvss 5.0
libvirt: missing locking in nwfilterConnectNumOfNWFilters can lead to denial of service
-
Red Hat Enterprise Linux 6 libvirt, libvirt-client, libvirt-python, libvirt-lock-sanlock Red Hat Enterprise Linux 7 libvirt, libvirt-nss, libvirt-libs, libvirt-admin, libvirt-client, libvirt-daemon, +24 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 Advanced Virtualization libvirt, libvirt-nss, libvirt-libs, libvirt-admin, libvirt-client, libvirt-daemon, +22 moreaffected: no fix available “Fix deferred”
-
Red Hat CodeReady Linux Builder (v. 8) libnbd 1.6.0-5.module+el8.7.0+16689+53d59bc2, netcf 0.2.8-12.module+el8.7.0+16689+53d59bc2, hivex 1.3.18-23.module+el8.7.0+16689+53d59bc2, nbdfuse 1.6.0-5.module+el8.7.0+16689+53d59bc2, SLOF 20210217-1.module+el8.7.0+16689+53d59bc2, libvirt 8.0.0-10.module+el8.7.0+16689+53d59bc2, +38 morefixed: vendor fix RHSA-2022:7472
-
Red Hat CodeReady Linux Builder (v. 9) libvirt-lock-sanlock 8.5.0-7.el9_1fixed: vendor fix RHSA-2022:8003
-
Red Hat Enterprise Linux AppStream (v. 8) libnbd 1.6.0-5.module+el8.7.0+16689+53d59bc2, netcf 0.2.8-12.module+el8.7.0+16689+53d59bc2, hivex 1.3.18-23.module+el8.7.0+16689+53d59bc2, nbdfuse 1.6.0-5.module+el8.7.0+16689+53d59bc2, nbdkit 1.24.0-4.module+el8.7.0+16689+53d59bc2, SLOF 20210217-1.module+el8.7.0+16689+53d59bc2, +104 morefixed: vendor fix RHSA-2022:7472
-
Red Hat Enterprise Linux AppStream (v. 9) libvirt 8.5.0-7.el9_1, libvirt-nss 8.5.0-7.el9_1, libvirt-libs 8.5.0-7.el9_1, libvirt-client 8.5.0-7.el9_1, libvirt-daemon 8.5.0-7.el9_1, libvirt-daemon-kvm 8.5.0-7.el9_1, +16 morefixed: vendor fix RHSA-2022:8003
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
1.05% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L |
| NVD | 2.0 | 4.0 | AV:N/AC:L/Au:S/C:N/I:N/A:P |
Affected products
- n/a libvirt
Classification
- Weakness
-
- CWE-667 Improper Locking
References
-
security.gentoo.org
/glsa/202210-06
vendor-advisory, third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=2063883
issue-tracking
-
lists.debian.org
/debian-lts-announce/2024/04/msg00000.html
mailing-list
Sources
- CVE List CVE-2022-0897
- NVD CVE-2022-0897
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.