libvirt: missing locking in nwfilterConnectNumOfNWFilters can lead to denial of service
Published Mar 25, 2022
5.0
MEDIUMCVSS 3.1
EPSS 1.05%
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
- Vendor n/a Product Libvirt Defaultn/a
- Version libvirt 8.0.0-8StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | Libvirt | n/a |
|
Configuration 2
- n/a
No data.
Red Hat Enterprise Linux 8
virt-devel:rhel-8070020220921004438.3b9f49c4
Fixed · RHSA-2022:7472
Red Hat Enterprise Linux 8
virt:rhel-8070020220921004438.3b9f49c4
Fixed · RHSA-2022:7472
Red Hat Enterprise Linux 9
libvirt-0:8.5.0-7.el9_1
Fixed · RHSA-2022:8003
Red Hat Enterprise Linux 6
libvirt
Out of support scope
Red Hat Enterprise Linux 7
libvirt
Out of support scope
Red Hat Enterprise Linux 8 Advanced Virtualization
virt:8.2/libvirt
Fix deferred
Red Hat Enterprise Linux 8 Advanced Virtualization
virt:av/libvirt
Fix deferred
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | virt-devel:rhel-8070020220921004438.3b9f49c4 | Fixed | RHSA-2022:7472 |
| Red Hat Enterprise Linux 8 | virt:rhel-8070020220921004438.3b9f49c4 | Fixed | RHSA-2022:7472 |
| Red Hat Enterprise Linux 9 | libvirt-0:8.5.0-7.el9_1 | Fixed | RHSA-2022:8003 |
| Red Hat Enterprise Linux 6 | libvirt | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | libvirt | Out of support scope | n/a |
| Red Hat Enterprise Linux 8 Advanced Virtualization | virt:8.2/libvirt | Fix deferred | n/a |
| Red Hat Enterprise Linux 8 Advanced Virtualization | virt:av/libvirt | Fix deferred | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
A future update may address this issue in Red Hat Enterprise Linux 8 and RHEL Advanced Virtualization.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
1 other source (Red Hat) ▾
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:S/C:N/I:N/A:P
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
NoneAutomatable
NoTechnical Impact
PartialDecision
n/aAssessed May 8, 2024 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (12 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 1.05% (0.01049) | 63.00th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.02% (0.01024) | 58.87th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.03% (0.00031) | 5.64th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.09% (0.00090) | 40.32th | v3 (v2023.03.01) |
| Apr 2, 2024 | 0.09% (0.00090) | 37.52th | v3 (v2023.03.01) |
| Oct 16, 2023 | 0.07% (0.00072) | 30.15th | v3 (v2023.03.01) |
| Apr 1, 2023 | 0.07% (0.00065) | 26.47th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.05% (0.00053) | 19.10th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.89% (0.00885) | 27.89th | v2 (v2022.01.01) |
| Sep 10, 2022 | 0.89% (0.00885) | 26.24th | v2 (v2022.01.01) |
| Apr 1, 2022 | 0.89% (0.00885) | 24.24th | v2 (v2022.01.01) |
| Mar 26, 2022 | 0.89% (0.00885) | 11.52th | v2 (v2022.01.01) |
References (6)
- https://access.redhat.com/security/cve/CVE-2022-0897 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2063883 Issue Tracking
- https://lists.debian.org/debian-lts-announce/2024/04/msg00000.html mailing-list
- https://nvd.nist.gov/vuln/detail/CVE-2022-0897
- https://security.gentoo.org/glsa/202210-06 vendor-advisoryThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2022-0897
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2022-0897 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2063883 | Issue Tracking | |
| https://lists.debian.org/debian-lts-announce/2024/04/msg00000.html | mailing-list | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-0897 | ||
| https://security.gentoo.org/glsa/202210-06 | vendor-advisoryThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2022-0897 |
Change history (0)
No recorded changes yet.