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_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/0xxx/CVE-2022-0897.json",
"cna_assigner": "redhat",
"unresolved_ranges": [
{
"extracted_events": [
{
"last_affected": "libvirt 8.0.0-8"
}
],
"source": "AFFECTED_FIELD"
}
],
"cwe_ids": [
"CWE-667"
]
}{
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "1.1.1"
}
],
"cpe": "cpe:2.3:a:redhat:libvirt:*:*:*:*:*:*:*:*",
"source": "CPE_RANGE"
}{
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "1.1.1"
}
],
"cpe": "cpe:2.3:a:redhat:libvirt:*:*:*:*:*:*:*:*",
"source": "CPE_RANGE"
}