Security advisory
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).
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-0897
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 20:38 UTC · Revision 1
Source evidence
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).
osv:CVE-2022-0897
Complete source record
{
"id": "51ac57d88164183637e6f4e94d688469ac3b1f0788d0b2f725eb922f8dd49f19",
"url": "https://osv.dev/vulnerability/CVE-2022-0897",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2022-0897",
"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).",
"evidence": "osv:CVE-2022-0897",
"products": [],
"severity": "unknown",
"structured": {
"id": "CVE-2022-0897",
"aliases": [
"CVE-2022-0897"
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/libvirt/libvirt",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "e9b8c9dc80ec53643824a054300f40d45219bf35"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:redhat:libvirt:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "1.1.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v1.0.0",
"v1.0.1",
"v0.8.3",
"v0.9.12",
"v1.1.1",
"v1.1.1-rc2",
"v1.1.1-rc1",
"CVE-2013-4153",
"CVE-2013-4154",
"CVE-2013-2230",
"v1.1.0",
"CVE-2013-2218",
"v1.1.0-rc2",
"v1.1.0-rc1",
"v1.0.6",
"v1.0.6-rc2",
"v1.0.6-rc1",
"CVE-2013-1962",
"v1.0.5",
"v1.0.5-rc1",
"v1.0.4",
"v1.0.4-rc2",
"v1.0.4-rc1",
"v1.0.3",
"v1.0.3-rc2",
"v1.0.3-rc1",
"v1.0.2",
"CVE-2013-0170",
"v1.0.2-rc2",
"v1.0.2-rc1",
"v1.0.1-rc2",
"v1.0.1-rc1",
"CVE-2012-3411",
"v1.0.0-rc3",
"v1.0.0-rc2",
"v1.0.0-rc1",
"v0.10.2",
"v0.10.2-rc2",
"v0.10.2-rc1",
"CVE-2012-4423",
"v0.10.1",
"v0.10.0",
"v0.10.0-rc2",
"v0.10.0-rc1",
"v0.10.0-rc0",
"CVE-2012-3445",
"v0.9.13",
"v0.9.13-rc2",
"v0.9.13-rc1",
"v0.9.6",
"v0.9.12-rc2",
"v0.9.12-rc1",
"v0.9.11",
"v0.9.11-rc2",
"v0.9.11-rc1",
"v0.9.10",
"v0.9.10-rc2",
"v0.9.10-rc1",
"v0.9.9",
"v0.9.9-rc2",
"v0.9.9-rc1",
"v0.9.8",
"v0.9.8-rc2",
"v0.9.8-rc1",
"v0.9.7",
"v0.9.7-rc1",
"v0.9.5",
"v0.9.5-rc3",
"v0.9.5-rc2",
"v0.9.5-rc1",
"v0.9.4",
"v0.9.4-rc2",
"v0.9.4-rc1",
"v0.9.3",
"v0.9.3-rc2",
"v0.9.3-rc1",
"v0.9.2",
"CVE-2011-2178",
"v0.9.1",
"v0.9.0",
"CVE-2011-1486",
"CVE-2011-1146",
"v0.8.8",
"v0.8.7",
"v0.8.6",
"v0.8.5",
"v0.8.4",
"CVE-2010-2239",
"CVE-2010-2238",
"CVE-2010-2237",
"CVE-2010-2242",
"v0.8.2",
"v0.8.1",
"v0.8.0",
"v0.7.7",
"v0.7.6",
"v0.7.5",
"v0.7.4",
"v0.7.3",
"v0.7.2",
"v0.7.1",
"v0.7.0",
"v0.6.5",
"LIBVIRT_0_6_5",
"v0.6.4",
"LIBVIRT_0_6_4",
"v0.6.3",
"LIBVIRT_0_6_3",
"v0.6.2",
"LIBVIRT_0_6_2",
"v0.6.1",
"LIBVIRT_0_6_1",
"v0.6.0",
"LIBVIRT_0_6_0",
"CVE-2009-0036",
"CVE-2008-5086",
"v0.5.1",
"LIBVIRT_0_5_1",
"v0.5.0",
"LIBVIRT_0_5_0",
"v0.4.6",
"LIBVIRT_0_4_6",
"v0.4.4",
"LIBVIRT_0_4_4",
"v0.4.2",
"LIBVIRT_0_4_2",
"v0.4.1",
"LIBVIRT_0_4_1",
"v0.3.3",
"LIBVIRT_0_3_3",
"v0.3.2",
"LIBVIRT_0_3_2",
"v0.3.1",
"LIBVIRT_0_3_1",
"v0.3.0",
"LIBVIRT_0_3_0",
"v0.2.3",
"LIVIRT_0_2_3",
"v0.2.2",
"LIBVIRT_0_2_2",
"v0.2.1",
"LIBVIRT_0_2_1",
"v0.2.0",
"LIBVIRT_0_2_0",
"v0.1.11",
"LIBVIRT_0_1_11",
"v0.1.10",
"LIBVIRT_0_1_10",
"v0.1.9",
"LIBVIRT_0_1_9",
"v0.1.8",
"LIBVIRT_0_1_8",
"v0.1.7",
"LIBVIRT_0_1_7",
"v0.1.6",
"LIBVIRT_0_1_6",
"v0.1.4",
"LIBVIRT_0_1_4",
"v0.1.3",
"LIBVIRT_0_1_3",
"v0.1.1",
"LIBVIRT_0_1_1",
"v0.1.0",
"LIBVIRT_0_1_0",
"v0.0.5",
"LIBVIRT_0_0_5",
"v0.0.4",
"LIBVIRT_0_0_4",
"v0.0.3",
"LIBVIRT_0_0_3",
"v0.0.2",
"LIBVIR_0_0_2",
"v0.0.1",
"LIBVIR_0_0_1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-0897.json"
}
},
{
"ranges": [
{
"repo": "https://gitlab.com/libvirt/libvirt",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "e9b8c9dc80ec53643824a054300f40d45219bf35"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:redhat:libvirt:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "1.1.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v1.0.0",
"v1.0.1",
"v0.8.3",
"v0.9.12",
"v1.1.1",
"v1.1.1-rc2",
"v1.1.1-rc1",
"CVE-2013-4153",
"CVE-2013-4154",
"CVE-2013-2230",
"v1.1.0",
"CVE-2013-2218",
"v1.1.0-rc2",
"v1.1.0-rc1",
"v1.0.6",
"v1.0.6-rc2",
"v1.0.6-rc1",
"CVE-2013-1962",
"v1.0.5",
"v1.0.5-rc1",
"v1.0.4",
"v1.0.4-rc2",
"v1.0.4-rc1",
"v1.0.3",
"v1.0.3-rc2",
"v1.0.3-rc1",
"v1.0.2",
"CVE-2013-0170",
"v1.0.2-rc2",
"v1.0.2-rc1",
"v1.0.1-rc2",
"v1.0.1-rc1",
"CVE-2012-3411",
"v1.0.0-rc3",
"v1.0.0-rc2",
"v1.0.0-rc1",
"v0.10.2",
"v0.10.2-rc2",
"v0.10.2-rc1",
"CVE-2012-4423",
"v0.10.1",
"v0.10.0",
"v0.10.0-rc2",
"v0.10.0-rc1",
"v0.10.0-rc0",
"CVE-2012-3445",
"v0.9.13",
"v0.9.13-rc2",
"v0.9.13-rc1",
"v0.9.6",
"v0.9.12-rc2",
"v0.9.12-rc1",
"v0.9.11",
"v0.9.11-rc2",
"v0.9.11-rc1",
"v0.9.10",
"v0.9.10-rc2",
"v0.9.10-rc1",
"v0.9.9",
"v0.9.9-rc2",
"v0.9.9-rc1",
"v0.9.8",
"v0.9.8-rc2",
"v0.9.8-rc1",
"v0.9.7",
"v0.9.7-rc1",
"v0.9.5",
"v0.9.5-rc3",
"v0.9.5-rc2",
"v0.9.5-rc1",
"v0.9.4",
"v0.9.4-rc2",
"v0.9.4-rc1",
"v0.9.3",
"v0.9.3-rc2",
"v0.9.3-rc1",
"v0.9.2",
"CVE-2011-2178",
"v0.9.1",
"v0.9.0",
"CVE-2011-1486",
"CVE-2011-1146",
"v0.8.8",
"v0.8.7",
"v0.8.6",
"v0.8.5",
"v0.8.4",
"CVE-2010-2239",
"CVE-2010-2238",
"CVE-2010-2237",
"CVE-2010-2242",
"v0.8.2",
"v0.8.1",
"v0.8.0",
"v0.7.7",
"v0.7.6",
"v0.7.5",
"v0.7.4",
"v0.7.3",
"v0.7.2",
"v0.7.1",
"v0.7.0",
"v0.6.5",
"LIBVIRT_0_6_5",
"v0.6.4",
"LIBVIRT_0_6_4",
"v0.6.3",
"LIBVIRT_0_6_3",
"v0.6.2",
"LIBVIRT_0_6_2",
"v0.6.1",
"LIBVIRT_0_6_1",
"v0.6.0",
"LIBVIRT_0_6_0",
"CVE-2009-0036",
"CVE-2008-5086",
"v0.5.1",
"LIBVIRT_0_5_1",
"v0.5.0",
"LIBVIRT_0_5_0",
"v0.4.6",
"LIBVIRT_0_4_6",
"v0.4.4",
"LIBVIRT_0_4_4",
"v0.4.2",
"LIBVIRT_0_4_2",
"v0.4.1",
"LIBVIRT_0_4_1",
"v0.3.3",
"LIBVIRT_0_3_3",
"v0.3.2",
"LIBVIRT_0_3_2",
"v0.3.1",
"LIBVIRT_0_3_1",
"v0.3.0",
"LIBVIRT_0_3_0",
"v0.2.3",
"LIVIRT_0_2_3",
"v0.2.2",
"LIBVIRT_0_2_2",
"v0.2.1",
"LIBVIRT_0_2_1",
"v0.2.0",
"LIBVIRT_0_2_0",
"v0.1.11",
"LIBVIRT_0_1_11",
"v0.1.10",
"LIBVIRT_0_1_10",
"v0.1.9",
"LIBVIRT_0_1_9",
"v0.1.8",
"LIBVIRT_0_1_8",
"v0.1.7",
"LIBVIRT_0_1_7",
"v0.1.6",
"LIBVIRT_0_1_6",
"v0.1.4",
"LIBVIRT_0_1_4",
"v0.1.3",
"LIBVIRT_0_1_3",
"v0.1.1",
"LIBVIRT_0_1_1",
"v0.1.0",
"LIBVIRT_0_1_0",
"v0.0.5",
"LIBVIRT_0_0_5",
"v0.0.4",
"LIBVIRT_0_0_4",
"v0.0.3",
"LIBVIRT_0_0_3",
"v0.0.2",
"LIBVIR_0_0_2",
"v0.0.1",
"LIBVIR_0_0_1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-0897.json"
}
}
],
"modified": "2026-10-28T02:30:39.080477726Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0897.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-0897",
"https://security.gentoo.org/glsa/202210-06",
"https://bugzilla.redhat.com/show_bug.cgi?id=2063883",
"https://lists.debian.org/debian-lts-announce/2024/04/msg00000.html"
],
"provider_metadata": {
"cwe_ids": [
"CWE-667"
],
"cna_assigner": "redhat",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "libvirt 8.0.0-8"
},
{
"last_affected": "libvirt 8.0.0-8"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0897.json"
}
},
"related_cves": [
{
"value": "CVE-2022-0897",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 506765,
"published_at": "2022-03-25T00:00:00+00:00"
}