UBUNTU-CVE-2022-0897 (CVE-2022-0897)

Vulnerability from osv_ubuntu – Published: 2022-03-25 19:15 – Updated: 2026-08-14 22:59 – Source website
VLAI
Details

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

Severity

{
  "affected": [
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "libnss-libvirt",
            "binary_version": "4.0.0-1ubuntu8.21"
          },
          {
            "binary_name": "libvirt-bin",
            "binary_version": "4.0.0-1ubuntu8.21"
          },
          {
            "binary_name": "libvirt-clients",
            "binary_version": "4.0.0-1ubuntu8.21"
          },
          {
            "binary_name": "libvirt-daemon",
            "binary_version": "4.0.0-1ubuntu8.21"
          },
          {
            "binary_name": "libvirt-daemon-driver-storage-gluster",
            "binary_version": "4.0.0-1ubuntu8.21"
          },
          {
            "binary_name": "libvirt-daemon-driver-storage-rbd",
            "binary_version": "4.0.0-1ubuntu8.21"
          },
          {
            "binary_name": "libvirt-daemon-driver-storage-sheepdog",
            "binary_version": "4.0.0-1ubuntu8.21"
          },
          {
            "binary_name": "libvirt-daemon-driver-storage-zfs",
            "binary_version": "4.0.0-1ubuntu8.21"
          },
          {
            "binary_name": "libvirt-daemon-system",
            "binary_version": "4.0.0-1ubuntu8.21"
          },
          {
            "binary_name": "libvirt-sanlock",
            "binary_version": "4.0.0-1ubuntu8.21"
          },
          {
            "binary_name": "libvirt-wireshark",
            "binary_version": "4.0.0-1ubuntu8.21"
          },
          {
            "binary_name": "libvirt0",
            "binary_version": "4.0.0-1ubuntu8.21"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:18.04:LTS",
        "name": "libvirt",
        "purl": "pkg:deb/ubuntu/libvirt@4.0.0-1ubuntu8.21?arch=source\u0026distro=bionic"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4.0.0-1ubuntu8.21"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "3.6.0-1ubuntu5",
        "3.6.0-1ubuntu6",
        "4.0.0-1ubuntu1",
        "4.0.0-1ubuntu2",
        "4.0.0-1ubuntu3",
        "4.0.0-1ubuntu4",
        "4.0.0-1ubuntu5",
        "4.0.0-1ubuntu6",
        "4.0.0-1ubuntu7",
        "4.0.0-1ubuntu8",
        "4.0.0-1ubuntu8.1",
        "4.0.0-1ubuntu8.2",
        "4.0.0-1ubuntu8.3",
        "4.0.0-1ubuntu8.4",
        "4.0.0-1ubuntu8.5",
        "4.0.0-1ubuntu8.6",
        "4.0.0-1ubuntu8.7",
        "4.0.0-1ubuntu8.8",
        "4.0.0-1ubuntu8.9",
        "4.0.0-1ubuntu8.10",
        "4.0.0-1ubuntu8.11",
        "4.0.0-1ubuntu8.12",
        "4.0.0-1ubuntu8.13",
        "4.0.0-1ubuntu8.14",
        "4.0.0-1ubuntu8.15",
        "4.0.0-1ubuntu8.16",
        "4.0.0-1ubuntu8.17",
        "4.0.0-1ubuntu8.19",
        "4.0.0-1ubuntu8.20"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "libnss-libvirt",
            "binary_version": "6.0.0-0ubuntu8.16"
          },
          {
            "binary_name": "libvirt-clients",
            "binary_version": "6.0.0-0ubuntu8.16"
          },
          {
            "binary_name": "libvirt-daemon",
            "binary_version": "6.0.0-0ubuntu8.16"
          },
          {
            "binary_name": "libvirt-daemon-driver-lxc",
            "binary_version": "6.0.0-0ubuntu8.16"
          },
          {
            "binary_name": "libvirt-daemon-driver-qemu",
            "binary_version": "6.0.0-0ubuntu8.16"
          },
          {
            "binary_name": "libvirt-daemon-driver-storage-gluster",
            "binary_version": "6.0.0-0ubuntu8.16"
          },
          {
            "binary_name": "libvirt-daemon-driver-storage-rbd",
            "binary_version": "6.0.0-0ubuntu8.16"
          },
          {
            "binary_name": "libvirt-daemon-driver-storage-zfs",
            "binary_version": "6.0.0-0ubuntu8.16"
          },
          {
            "binary_name": "libvirt-daemon-driver-vbox",
            "binary_version": "6.0.0-0ubuntu8.16"
          },
          {
            "binary_name": "libvirt-daemon-driver-xen",
            "binary_version": "6.0.0-0ubuntu8.16"
          },
          {
            "binary_name": "libvirt-daemon-system",
            "binary_version": "6.0.0-0ubuntu8.16"
          },
          {
            "binary_name": "libvirt-daemon-system-systemd",
            "binary_version": "6.0.0-0ubuntu8.16"
          },
          {
            "binary_name": "libvirt-daemon-system-sysv",
            "binary_version": "6.0.0-0ubuntu8.16"
          },
          {
            "binary_name": "libvirt-sanlock",
            "binary_version": "6.0.0-0ubuntu8.16"
          },
          {
            "binary_name": "libvirt-wireshark",
            "binary_version": "6.0.0-0ubuntu8.16"
          },
          {
            "binary_name": "libvirt0",
            "binary_version": "6.0.0-0ubuntu8.16"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:20.04:LTS",
        "name": "libvirt",
        "purl": "pkg:deb/ubuntu/libvirt@6.0.0-0ubuntu8.16?arch=source\u0026distro=focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "6.0.0-0ubuntu8.16"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "5.4.0-0ubuntu5",
        "6.0.0-0ubuntu1",
        "6.0.0-0ubuntu2",
        "6.0.0-0ubuntu3",
        "6.0.0-0ubuntu4",
        "6.0.0-0ubuntu5",
        "6.0.0-0ubuntu6",
        "6.0.0-0ubuntu7",
        "6.0.0-0ubuntu8",
        "6.0.0-0ubuntu8.1",
        "6.0.0-0ubuntu8.2",
        "6.0.0-0ubuntu8.3",
        "6.0.0-0ubuntu8.4",
        "6.0.0-0ubuntu8.5",
        "6.0.0-0ubuntu8.7",
        "6.0.0-0ubuntu8.8",
        "6.0.0-0ubuntu8.9",
        "6.0.0-0ubuntu8.10",
        "6.0.0-0ubuntu8.11",
        "6.0.0-0ubuntu8.12",
        "6.0.0-0ubuntu8.13",
        "6.0.0-0ubuntu8.14",
        "6.0.0-0ubuntu8.15"
      ]
    },
    {
      "ecosystem_specific": {
        "availability": "No subscription required",
        "binaries": [
          {
            "binary_name": "libnss-libvirt",
            "binary_version": "8.0.0-1ubuntu7.5"
          },
          {
            "binary_name": "libvirt-clients",
            "binary_version": "8.0.0-1ubuntu7.5"
          },
          {
            "binary_name": "libvirt-daemon",
            "binary_version": "8.0.0-1ubuntu7.5"
          },
          {
            "binary_name": "libvirt-daemon-config-network",
            "binary_version": "8.0.0-1ubuntu7.5"
          },
          {
            "binary_name": "libvirt-daemon-config-nwfilter",
            "binary_version": "8.0.0-1ubuntu7.5"
          },
          {
            "binary_name": "libvirt-daemon-driver-lxc",
            "binary_version": "8.0.0-1ubuntu7.5"
          },
          {
            "binary_name": "libvirt-daemon-driver-qemu",
            "binary_version": "8.0.0-1ubuntu7.5"
          },
          {
            "binary_name": "libvirt-daemon-driver-storage-gluster",
            "binary_version": "8.0.0-1ubuntu7.5"
          },
          {
            "binary_name": "libvirt-daemon-driver-storage-iscsi-direct",
            "binary_version": "8.0.0-1ubuntu7.5"
          },
          {
            "binary_name": "libvirt-daemon-driver-storage-rbd",
            "binary_version": "8.0.0-1ubuntu7.5"
          },
          {
            "binary_name": "libvirt-daemon-driver-storage-zfs",
            "binary_version": "8.0.0-1ubuntu7.5"
          },
          {
            "binary_name": "libvirt-daemon-driver-vbox",
            "binary_version": "8.0.0-1ubuntu7.5"
          },
          {
            "binary_name": "libvirt-daemon-driver-xen",
            "binary_version": "8.0.0-1ubuntu7.5"
          },
          {
            "binary_name": "libvirt-daemon-system",
            "binary_version": "8.0.0-1ubuntu7.5"
          },
          {
            "binary_name": "libvirt-daemon-system-systemd",
            "binary_version": "8.0.0-1ubuntu7.5"
          },
          {
            "binary_name": "libvirt-daemon-system-sysv",
            "binary_version": "8.0.0-1ubuntu7.5"
          },
          {
            "binary_name": "libvirt-login-shell",
            "binary_version": "8.0.0-1ubuntu7.5"
          },
          {
            "binary_name": "libvirt-sanlock",
            "binary_version": "8.0.0-1ubuntu7.5"
          },
          {
            "binary_name": "libvirt-wireshark",
            "binary_version": "8.0.0-1ubuntu7.5"
          },
          {
            "binary_name": "libvirt0",
            "binary_version": "8.0.0-1ubuntu7.5"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:22.04:LTS",
        "name": "libvirt",
        "purl": "pkg:deb/ubuntu/libvirt@8.0.0-1ubuntu7.5?arch=source\u0026distro=jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8.0.0-1ubuntu7.5"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "7.6.0-0ubuntu1",
        "7.6.0-0ubuntu3",
        "8.0.0-1ubuntu3",
        "8.0.0-1ubuntu4",
        "8.0.0-1ubuntu5",
        "8.0.0-1ubuntu6",
        "8.0.0-1ubuntu7",
        "8.0.0-1ubuntu7.1",
        "8.0.0-1ubuntu7.2",
        "8.0.0-1ubuntu7.3",
        "8.0.0-1ubuntu7.4"
      ]
    }
  ],
  "aliases": [],
  "details": "A flaw was found in the libvirt nwfilter driver. The virNWFilterObjListNumOfNWFilters method failed to acquire the driver-\u003enwfilters mutex before iterating over virNWFilterObj instances. There was no protection to stop another thread from concurrently modifying the driver-\u003enwfilters object. This flaw allows a malicious, unprivileged user to exploit this issue via libvirt\u0027s API virConnectNumOfNWFilters to crash the network filter management daemon (libvirtd/virtnwfilterd).",
  "id": "UBUNTU-CVE-2022-0897",
  "modified": "2026-08-14T22:59:18Z",
  "published": "2022-03-25T19:15:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2022-0897"
    },
    {
      "type": "ADVISORY",
      "url": "https://ubuntu.com/security/notices/USN-5399-1"
    },
    {
      "type": "ADVISORY",
      "url": "https://ubuntu.com/security/notices/USN-6126-1"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2022-0897"
    }
  ],
  "related": [
    "USN-5399-1",
    "USN-6126-1"
  ],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L",
      "type": "CVSS_V3"
    },
    {
      "score": "low",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2022-0897"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…