UBUNTU-CVE-2021-3975

Source
https://ubuntu.com/security/CVE-2021-3975
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3975.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2021-3975
Related
Published
2021-11-24T00:00:00Z
Modified
2024-12-18T16:34:57Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

A use-after-free flaw was found in libvirt. The qemuMonitorUnregister() function in qemuProcessHandleMonitorEOF is called using multiple threads without being adequately protected by a monitor lock. This flaw could be triggered by the virConnectGetAllDomainStats API when the guest is shutting down. An unprivileged client with a read-only connection could use this flaw to perform a denial of service attack by causing the libvirt daemon to crash.

References

Affected packages

Ubuntu:Pro:14.04:LTS / libvirt

Package

Name
libvirt
Purl
pkg:deb/ubuntu/libvirt?arch=src?distro=esm-infra-legacy/trusty

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.1.1-0ubuntu8
1.1.1-0ubuntu9
1.1.4-0ubuntu2
1.1.4-0ubuntu3
1.1.4-0ubuntu4
1.1.4-0ubuntu5
1.2.0-0ubuntu1
1.2.0-0ubuntu2
1.2.0-0ubuntu3
1.2.1-0ubuntu1
1.2.1-0ubuntu2
1.2.1-0ubuntu3
1.2.1-0ubuntu4
1.2.1-0ubuntu5
1.2.1-0ubuntu7
1.2.1-0ubuntu8
1.2.1-0ubuntu9
1.2.1-0ubuntu10
1.2.2-0ubuntu1
1.2.2-0ubuntu2
1.2.2-0ubuntu3
1.2.2-0ubuntu4
1.2.2-0ubuntu5
1.2.2-0ubuntu6
1.2.2-0ubuntu7
1.2.2-0ubuntu8
1.2.2-0ubuntu9
1.2.2-0ubuntu10
1.2.2-0ubuntu11
1.2.2-0ubuntu12
1.2.2-0ubuntu13
1.2.2-0ubuntu13.1
1.2.2-0ubuntu13.1.1
1.2.2-0ubuntu13.1.2
1.2.2-0ubuntu13.1.4
1.2.2-0ubuntu13.1.5
1.2.2-0ubuntu13.1.6
1.2.2-0ubuntu13.1.7
1.2.2-0ubuntu13.1.8
1.2.2-0ubuntu13.1.9
1.2.2-0ubuntu13.1.10
1.2.2-0ubuntu13.1.12
1.2.2-0ubuntu13.1.14
1.2.2-0ubuntu13.1.16
1.2.2-0ubuntu13.1.17
1.2.2-0ubuntu13.1.20
1.2.2-0ubuntu13.1.21
1.2.2-0ubuntu13.1.22
1.2.2-0ubuntu13.1.23
1.2.2-0ubuntu13.1.25
1.2.2-0ubuntu13.1.26
1.2.2-0ubuntu13.1.27
1.2.2-0ubuntu13.1.28
1.2.2-0ubuntu13.1.28+esm1

Ecosystem specific

{
    "ubuntu_priority": "low"
}

Ubuntu:Pro:16.04:LTS / libvirt

Package

Name
libvirt
Purl
pkg:deb/ubuntu/libvirt?arch=src?distro=esm-infra/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

1.2.16-2ubuntu11
1.2.16-2ubuntu12
1.2.16-2ubuntu13
1.2.16-2ubuntu14
1.2.21-2ubuntu1
1.2.21-2ubuntu3
1.2.21-2ubuntu4
1.2.21-2ubuntu5
1.2.21-2ubuntu7
1.2.21-2ubuntu8
1.2.21-2ubuntu9
1.2.21-2ubuntu10
1.3.1-1ubuntu1
1.3.1-1ubuntu2
1.3.1-1ubuntu3
1.3.1-1ubuntu4
1.3.1-1ubuntu6
1.3.1-1ubuntu9
1.3.1-1ubuntu10
1.3.1-1ubuntu10.1
1.3.1-1ubuntu10.2
1.3.1-1ubuntu10.3
1.3.1-1ubuntu10.5
1.3.1-1ubuntu10.6
1.3.1-1ubuntu10.7
1.3.1-1ubuntu10.8
1.3.1-1ubuntu10.10
1.3.1-1ubuntu10.11
1.3.1-1ubuntu10.12
1.3.1-1ubuntu10.13
1.3.1-1ubuntu10.14
1.3.1-1ubuntu10.15
1.3.1-1ubuntu10.17
1.3.1-1ubuntu10.18
1.3.1-1ubuntu10.19
1.3.1-1ubuntu10.21
1.3.1-1ubuntu10.22
1.3.1-1ubuntu10.23
1.3.1-1ubuntu10.24
1.3.1-1ubuntu10.25
1.3.1-1ubuntu10.26
1.3.1-1ubuntu10.27
1.3.1-1ubuntu10.29
1.3.1-1ubuntu10.30
1.3.1-1ubuntu10.31

Ecosystem specific

{
    "ubuntu_priority": "low"
}

Ubuntu:18.04:LTS / libvirt

Package

Name
libvirt
Purl
pkg:deb/ubuntu/libvirt?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.0.0-1ubuntu8.21

Affected versions

3.*

3.6.0-1ubuntu5
3.6.0-1ubuntu6

4.*

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",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "4.0.0-1ubuntu8.21",
            "binary_name": "libnss-libvirt"
        },
        {
            "binary_version": "4.0.0-1ubuntu8.21",
            "binary_name": "libnss-libvirt-dbgsym"
        },
        {
            "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-clients-dbgsym"
        },
        {
            "binary_version": "4.0.0-1ubuntu8.21",
            "binary_name": "libvirt-daemon"
        },
        {
            "binary_version": "4.0.0-1ubuntu8.21",
            "binary_name": "libvirt-daemon-dbgsym"
        },
        {
            "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-gluster-dbgsym"
        },
        {
            "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-rbd-dbgsym"
        },
        {
            "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-sheepdog-dbgsym"
        },
        {
            "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-driver-storage-zfs-dbgsym"
        },
        {
            "binary_version": "4.0.0-1ubuntu8.21",
            "binary_name": "libvirt-daemon-system"
        },
        {
            "binary_version": "4.0.0-1ubuntu8.21",
            "binary_name": "libvirt-daemon-system-dbgsym"
        },
        {
            "binary_version": "4.0.0-1ubuntu8.21",
            "binary_name": "libvirt-dev"
        },
        {
            "binary_version": "4.0.0-1ubuntu8.21",
            "binary_name": "libvirt-doc"
        },
        {
            "binary_version": "4.0.0-1ubuntu8.21",
            "binary_name": "libvirt-sanlock"
        },
        {
            "binary_version": "4.0.0-1ubuntu8.21",
            "binary_name": "libvirt-sanlock-dbgsym"
        },
        {
            "binary_version": "4.0.0-1ubuntu8.21",
            "binary_name": "libvirt-wireshark"
        },
        {
            "binary_version": "4.0.0-1ubuntu8.21",
            "binary_name": "libvirt-wireshark-dbgsym"
        },
        {
            "binary_version": "4.0.0-1ubuntu8.21",
            "binary_name": "libvirt0"
        },
        {
            "binary_version": "4.0.0-1ubuntu8.21",
            "binary_name": "libvirt0-dbgsym"
        }
    ]
}

Ubuntu:20.04:LTS / libvirt

Package

Name
libvirt
Purl
pkg:deb/ubuntu/libvirt?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.0.0-0ubuntu8.16

Affected versions

5.*

5.4.0-0ubuntu5

6.*

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",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "6.0.0-0ubuntu8.16",
            "binary_name": "libnss-libvirt"
        },
        {
            "binary_version": "6.0.0-0ubuntu8.16",
            "binary_name": "libnss-libvirt-dbgsym"
        },
        {
            "binary_version": "6.0.0-0ubuntu8.16",
            "binary_name": "libvirt-clients"
        },
        {
            "binary_version": "6.0.0-0ubuntu8.16",
            "binary_name": "libvirt-clients-dbgsym"
        },
        {
            "binary_version": "6.0.0-0ubuntu8.16",
            "binary_name": "libvirt-daemon"
        },
        {
            "binary_version": "6.0.0-0ubuntu8.16",
            "binary_name": "libvirt-daemon-dbgsym"
        },
        {
            "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-lxc-dbgsym"
        },
        {
            "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-qemu-dbgsym"
        },
        {
            "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-gluster-dbgsym"
        },
        {
            "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-rbd-dbgsym"
        },
        {
            "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-storage-zfs-dbgsym"
        },
        {
            "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-vbox-dbgsym"
        },
        {
            "binary_version": "6.0.0-0ubuntu8.16",
            "binary_name": "libvirt-daemon-driver-xen"
        },
        {
            "binary_version": "6.0.0-0ubuntu8.16",
            "binary_name": "libvirt-daemon-driver-xen-dbgsym"
        },
        {
            "binary_version": "6.0.0-0ubuntu8.16",
            "binary_name": "libvirt-daemon-system"
        },
        {
            "binary_version": "6.0.0-0ubuntu8.16",
            "binary_name": "libvirt-daemon-system-dbgsym"
        },
        {
            "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-dev"
        },
        {
            "binary_version": "6.0.0-0ubuntu8.16",
            "binary_name": "libvirt-doc"
        },
        {
            "binary_version": "6.0.0-0ubuntu8.16",
            "binary_name": "libvirt-sanlock"
        },
        {
            "binary_version": "6.0.0-0ubuntu8.16",
            "binary_name": "libvirt-sanlock-dbgsym"
        },
        {
            "binary_version": "6.0.0-0ubuntu8.16",
            "binary_name": "libvirt-wireshark"
        },
        {
            "binary_version": "6.0.0-0ubuntu8.16",
            "binary_name": "libvirt-wireshark-dbgsym"
        },
        {
            "binary_version": "6.0.0-0ubuntu8.16",
            "binary_name": "libvirt0"
        },
        {
            "binary_version": "6.0.0-0ubuntu8.16",
            "binary_name": "libvirt0-dbgsym"
        }
    ]
}

Ubuntu:22.04:LTS / libvirt

Package

Name
libvirt
Purl
pkg:deb/ubuntu/libvirt?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
7.6.0-0ubuntu3

Affected versions

7.*

7.6.0-0ubuntu1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libnss-libvirt"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libnss-libvirt-dbgsym"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-clients"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-clients-dbgsym"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-config-network"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-config-nwfilter"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-dbgsym"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-driver-lxc"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-driver-lxc-dbgsym"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-driver-qemu"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-driver-qemu-dbgsym"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-driver-storage-gluster"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-driver-storage-gluster-dbgsym"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-driver-storage-iscsi-direct"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-driver-storage-iscsi-direct-dbgsym"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-driver-storage-rbd"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-driver-storage-rbd-dbgsym"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-driver-storage-zfs"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-driver-storage-zfs-dbgsym"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-driver-vbox"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-driver-vbox-dbgsym"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-driver-xen"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-driver-xen-dbgsym"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-system"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-system-systemd"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-daemon-system-sysv"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-dev"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-doc"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-login-shell"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-login-shell-dbgsym"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-sanlock"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-sanlock-dbgsym"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-wireshark"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt-wireshark-dbgsym"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt0"
        },
        {
            "binary_version": "7.6.0-0ubuntu3",
            "binary_name": "libvirt0-dbgsym"
        }
    ]
}