Vulnerability · Published Aug 30, 2024 · Assigned by redhat
CVE-2024-8235Libvirt: crash of virtinterfaced via virconnectlistinterfaces()
Medium 6.2
In plain English
A medium-severity null pointer dereference in libvirt. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 15% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A flaw was found in libvirt. A refactor of the code fetching the list of interfaces for multiple APIs introduced a corner case on platforms where allocating 0 bytes of memory results in a NULL pointer. This corner case would lead to a NULL-pointer dereference and subsequent crash of virtinterfaced. This issue could allow clients connecting to the read-only socket to crash the virtinterfaced daemon.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | libvirt | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-client | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-client-qemu | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-common | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-config-network | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-config-nwfilter | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-driver-interface | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-driver-network | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-driver-nodedev | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-driver-nwfilter | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-driver-qemu | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-driver-secret | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-driver-storage | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-driver-storage-core | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-driver-storage-disk | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-driver-storage-iscsi | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-driver-storage-logical | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-driver-storage-mpath | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-driver-storage-rbd | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-driver-storage-scsi | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-kvm | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-lock | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-log | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-plugin-lockd | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-plugin-sanlock | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-daemon-proxy | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-devel | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-docs | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-libs | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-nss | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| AlmaLinux:9 | libvirt-ssh-proxy | 10.5.0-7.el9_5.alma.1 | ALSA-2024:9128 |
| Alpine:v3.20 | libvirt | 10.7.0-r0 | ALPINE-CVE-2024-8235 |
| Alpine:v3.21 | libvirt | 10.7.0-r0 | ALPINE-CVE-2024-8235 |
| Alpine:v3.22 | libvirt | 10.7.0-r0 | ALPINE-CVE-2024-8235 |
| Alpine:v3.23 | libvirt | 10.7.0-r0 | ALPINE-CVE-2024-8235 |
| Alpine:v3.24 | libvirt | 10.7.0-r0 | ALPINE-CVE-2024-8235 |
| Debian:13 | libvirt | 10.7.0-1 | DEBIAN-CVE-2024-8235 |
| Debian:14 | libvirt | 10.7.0-1 | DEBIAN-CVE-2024-8235 |
| Rocky Linux:9 | libvirt | 0:10.5.0-7.4.el9_5 | RLSA-2024:9128 |
| Ubuntu:22.04:LTS | libvirt | 8.0.0-1ubuntu7.10 | UBUNTU-CVE-2024-8235 |
| Ubuntu:24.04:LTS | libvirt | 10.0.0-2ubuntu8.3 | UBUNTU-CVE-2024-8235 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| libvirt | 10.4.0 – before 10.7.0 | |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 10 | see references |
| Red Hat | Red Hat Enterprise Linux 6 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 8 Advanced Virtualization | see references |
Weakness: CWE-476 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- RHSA-2024:9128 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2024-8235 vdb-entry, x_refsource_REDHAT
- RHBZ#2308680 issue-tracking, x_refsource_REDHAT
- https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/X6WOVCL6QF3FQRFIIXL736RFZVSUWLWJ/
- https://security.netapp.com/advisory/ntap-20240920-0006/