Skip to content
OpenAdvisories
Unscored CVE-2022-0897 EUVD-2022-15929GHSA-4r2g-j5rc-7wqf

A flaw was found in the libvirt nwfilter driver. The virNWFilterObjListNumOfNWFilters method failed to acquire the driver->nwfilters mutex …

Published Mar 25, 2022 · Updated Aug 2, 2024 · Assigned by redhat

Description

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

Affected products

VendorProductAffectedFixed
— libvirt libvirt 8.0.0-8 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libvirt 8.2.0-1 —
Debian 13 libvirt 8.2.0-1 —
Debian 12 libvirt 8.2.0-1 —
Debian 10 libvirt 5.0.0-4+deb10u2 DLA-3778-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS libvirt 8.0.0-1ubuntu7.5 USN-6126-1
Ubuntu 20.04 LTS libvirt 6.0.0-0ubuntu8.16 USN-5399-1
Ubuntu 18.04 LTS libvirt 4.0.0-1ubuntu8.21 USN-5399-1
ReleasePackageFixed inAdvisory
RHEL 9 libvirt +24 8.5.0-7.el9_1 RHSA-2022:8003
RHEL 8 SLOF 20210217-1.module+el8.7.0+16689+53d59bc2 RHSA-2022:7472
RHEL 8 hivex +6 1.3.18-23.module+el8.7.0+16689+53d59bc2 RHSA-2022:7472
RHEL 8 libguestfs-winsupport 8.6-1.module+el8.7.0+16689+53d59bc2 RHSA-2022:7472
RHEL 8 libiscsi +2 1.18.0-8.module+el8.7.0+16689+53d59bc2 RHSA-2022:7472
RHEL 8 libnbd +6 1.6.0-5.module+el8.7.0+16689+53d59bc2 RHSA-2022:7472
RHEL 8 libtpms +1 0.9.1-1.20211126git1ff6fe1f43.module+el8.7.0+16689+53d59bc2 RHSA-2022:7472
RHEL 8 libvirt +27 8.0.0-10.module+el8.7.0+16689+53d59bc2 RHSA-2022:7472
RHEL 8 libvirt-dbus 1.3.0-2.module+el8.7.0+16689+53d59bc2 RHSA-2022:7472
RHEL 8 libvirt-python +1 8.0.0-2.module+el8.7.0+16689+53d59bc2 RHSA-2022:7472
RHEL 8 nbdkit +18 1.24.0-4.module+el8.7.0+16689+53d59bc2 RHSA-2022:7472
RHEL 8 netcf +2 0.2.8-12.module+el8.7.0+16689+53d59bc2 RHSA-2022:7472
RHEL 8 perl-Sys-Virt 8.0.0-1.module+el8.7.0+16689+53d59bc2 RHSA-2022:7472
RHEL 8 qemu-img +14 15:6.2.0-20.module+el8.7.0+16689+53d59bc2.1 RHSA-2022:7472
RHEL 8 seabios +2 1.16.0-3.module+el8.7.0+16689+53d59bc2 RHSA-2022:7472
RHEL 8 sgabios +1 1:0.20170427git-3.module+el8.7.0+16689+53d59bc2 RHSA-2022:7472
RHEL 8 supermin +1 5.2.1-2.module+el8.7.0+16689+53d59bc2 RHSA-2022:7472
RHEL 8 swtpm +4 0.7.0-4.20211109gitb79fd91.module+el8.7.0+16689+53d59bc2 RHSA-2022:7472
RHEL 8 virt-dib +24 1:1.44.0-9.module+el8.7.0+16689+53d59bc2 RHSA-2022:7472
RHEL 8 virt-v2v +3 1:1.42.0-21.module+el8.7.0+16689+53d59bc2 RHSA-2022:7472

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 libvirt +24 8.5.0-7.el9_1 ALSA-2022:8003

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 libvirt 8.5.0-7.3.el9_1 RLSA-2022:8003
Rocky Linux 8 hivex 1.3.18-23.module+el8.6.0+847+b490afdd RLSA-2022:7472
Rocky Linux 8 libguestfs 1:1.44.0-9.module+el8.7.0+1084+97b81f61.rocky RLSA-2022:7472
Rocky Linux 8 libguestfs-winsupport 8.6-1.module+el8.6.0+847+b490afdd RLSA-2022:7472
Rocky Linux 8 libiscsi 1.18.0-8.module+el8.4.0+534+4680a14e RLSA-2022:7472
Rocky Linux 8 libnbd 1.6.0-5.module+el8.6.0+847+b490afdd RLSA-2022:7472
Rocky Linux 8 libtpms 0.9.1-1.20211126git1ff6fe1f43.module+el8.7.0+1084+97b81f61 RLSA-2022:7472
Rocky Linux 8 libvirt 8.0.0-10.module+el8.7.0+1084+97b81f61 RLSA-2022:7472
Rocky Linux 8 libvirt-dbus 1.3.0-2.module+el8.4.0+534+4680a14e RLSA-2022:7472
Rocky Linux 8 libvirt-python 8.0.0-2.module+el8.7.0+1084+97b81f61 RLSA-2022:7472
Rocky Linux 8 nbdkit 1.24.0-4.module+el8.6.0+847+b490afdd RLSA-2022:7472
Rocky Linux 8 netcf 0.2.8-12.module+el8.4.0+534+4680a14e RLSA-2022:7472
Rocky Linux 8 perl-Sys-Virt 8.0.0-1.module+el8.6.0+847+b490afdd RLSA-2022:7472
Rocky Linux 8 qemu-kvm 5:6.2.0-20.module+el8.7.0+1084+97b81f61.2 RLSA-2022:7472
Rocky Linux 8 seabios 1.16.0-3.module+el8.7.0+1084+97b81f61 RLSA-2022:7472
Rocky Linux 8 sgabios 1:0.20170427git-3.module+el8.4.0+534+4680a14e RLSA-2022:7472
Rocky Linux 8 supermin 5.2.1-2.module+el8.7.0+1084+97b81f61 RLSA-2022:7472
Rocky Linux 8 swtpm 0.7.0-4.20211109gitb79fd91.module+el8.7.0+1084+97b81f61 RLSA-2022:7472
Rocky Linux 8 virt-v2v 1:1.42.0-21.module+el8.7.0+1084+97b81f61 RLSA-2022:7472
ReleasePackageFixed inAdvisory
SLES 15 SP3 libvirt 7.1.0-150300.6.29.1 SUSE-SU-2022:1549-1
SLES 15 SP2 libvirt 6.0.0-150200.13.27.1 SUSE-SU-2023:2754-1
SLES 12 SP5 libvirt 5.1.0-13.31.1 SUSE-SU-2022:1540-1
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP2 libvirt 6.0.0-150200.13.27.1 SUSE-SU-2023:2754-1
SLES for SAP 12 SP5 libvirt 5.1.0-13.31.1 SUSE-SU-2022:1540-1
SLE Micro 5.2 libvirt 7.1.0-150300.6.29.1 SUSE-SU-2022:1549-1
SLE Micro 5.1 libvirt 7.1.0-150300.6.29.1 SUSE-SU-2022:1549-1
SLE HPC 15 SP2 libvirt 6.0.0-150200.13.27.1 SUSE-SU-2023:2754-1
SUSE Enterprise Storage 7 libvirt 6.0.0-150200.13.27.1 SUSE-SU-2023:2754-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libvirt 8.2.0-1.1 openSUSE-SU-2024:11972-1
openSUSE Leap 15.4 libvirt 7.1.0-150300.6.29.1 SUSE-SU-2022:1549-1
openSUSE Leap 15.3 libvirt 7.1.0-150300.6.29.1 SUSE-SU-2022:1549-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 libvirt +24 8.5.0-7.0.1.el9_1 ELSA-2022-8003
Oracle Linux 8 hivex +4 1.3.18-21.module+el8.5.0+20645+1693a26d ELSA-2022-9460, ELSA-2022-7472
Oracle Linux 8 libguestfs-winsupport 8.2-1.module+el8.5.0+20645+1693a26d ELSA-2022-9460, ELSA-2022-7472
Oracle Linux 8 libiscsi +2 1.18.0-8.module+el8.5.0+20645+1693a26d ELSA-2022-9460, ELSA-2022-7472
Oracle Linux 8 libnbd +3 1.2.2-1.module+el8.5.0+20645+1693a26d ELSA-2022-9460, ELSA-2022-7472
Oracle Linux 8 libtpms +1 0.9.1-1.20211126git1ff6fe1f43.module+el8.7.0+20875+5dd40464 ELSA-2022-7472
Oracle Linux 8 libvirt +29 5.7.0-33.module+el8.5.0+20645+1693a26d ELSA-2022-9460, ELSA-2022-7472
Oracle Linux 8 libvirt-dbus 1.3.0-2.module+el8.5.0+20645+1693a26d ELSA-2022-9460, ELSA-2022-7472
Oracle Linux 8 libvirt-wireshark 8.0.0-10.0.1.module+el8.7.0+20875+5dd40464 ELSA-2022-7472
Oracle Linux 8 nbdkit +13 1.16.2-4.0.1.module+el8.5.0+20645+1693a26d ELSA-2022-9460, ELSA-2022-7472
Oracle Linux 8 nbdkit-nbd-plugin +4 1.24.0-4.module+el8.7.0+20875+5dd40464 ELSA-2022-7472
Oracle Linux 8 netcf +2 0.2.8-12.module+el8.5.0+20645+1693a26d ELSA-2022-9460, ELSA-2022-7472
Oracle Linux 8 ocaml-hivex +1 1.3.18-23.module+el8.7.0+20875+5dd40464 ELSA-2022-7472
Oracle Linux 8 ocaml-libguestfs +2 1:1.44.0-9.0.1.module+el8.7.0+20875+5dd40464 ELSA-2022-7472
Oracle Linux 8 ocaml-libnbd +2 1.6.0-5.module+el8.7.0+20875+5dd40464 ELSA-2022-7472
Oracle Linux 8 perl-Sys-Virt 4.5.0-5.module+el8.5.0+20645+1693a26d ELSA-2022-9460, ELSA-2022-7472
Oracle Linux 8 qemu-img +9 15:4.2.1-17.module+el8.5.0+20645+1693a26d ELSA-2022-9460, ELSA-2022-7472
Oracle Linux 8 qemu-kvm-docs +4 15:6.2.0-20.module+el8.7.0+20875+5dd40464.1 ELSA-2022-7472
Oracle Linux 8 seabios +2 1.13.0-2.module+el8.5.0+20645+1693a26d ELSA-2022-9460, ELSA-2022-7472
Oracle Linux 8 sgabios +1 1:0.20170427git-3.module+el8.5.0+20645+1693a26d ELSA-2022-9460, ELSA-2022-7472
Oracle Linux 8 supermin +1 5.1.19-10.module+el8.5.0+20645+1693a26d ELSA-2022-9460, ELSA-2022-7472
Oracle Linux 8 swtpm +4 0.7.0-4.20211109gitb79fd91.module+el8.7.0+20875+5dd40464 ELSA-2022-7472
Oracle Linux 8 virt-dib +23 1:1.40.2-28.0.4.module+el8.5.0+20645+1693a26d ELSA-2022-9460, ELSA-2022-7472
Oracle Linux 8 virt-v2v-man-pages-ja +2 1:1.42.0-21.module+el8.7.0+20875+5dd40464 ELSA-2022-7472
Oracle Linux 7 libvirt +32 5.7.0-33.el7 ELSA-2022-9433

Advisories 17

References