CVEfocus › CVE database › CVE-2024-8235

CVE-2024-8235Libvirt: crash of virtinterfaced via virconnectlistinterfaces()

CVSS 6.2 MediumEPSS 0.4% (higher than 22% of CVEs)Published 2024-08-30Updated 2026-11-24Assigner: redhat

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.

CWE-476

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Red Hat has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

72Fixed
32Fix pending
69Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04libvirtNot affected
vulnerable_code_not_present
Ubuntu 22.04libvirtNot affected
vulnerable_code_not_present
Debian 14libvirtFixed10.7.0-1DEBIAN-CVE-2024-8235
Debian 13libvirtFixed10.7.0-1DEBIAN-CVE-2024-8235
Red Hat Enterprise Linux 10libvirtFix pending
Affected
Red Hat Enterprise Linux 10libvirt-clientFix pending
Affected
Red Hat Enterprise Linux 10libvirt-client-qemuFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemonFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-commonFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-config-networkFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-config-nwfilterFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-driver-interfaceFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-driver-networkFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-driver-nodedevFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-driver-nwfilterFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-driver-qemuFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-driver-secretFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-driver-storageFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-driver-storage-coreFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-driver-storage-diskFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-driver-storage-iscsiFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-driver-storage-logicalFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-driver-storage-mpathFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-driver-storage-rbdFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-driver-storage-scsiFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-kvmFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-lockFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-logFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-plugin-lockdFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-plugin-sanlockFix pending
Affected
Red Hat Enterprise Linux 10libvirt-daemon-proxyFix pending
Affected
Red Hat Enterprise Linux 10libvirt-develFix pending
Affected
Red Hat Enterprise Linux 10libvirt-docsFix pending
Affected
Red Hat Enterprise Linux 10libvirt-libsFix pending
Affected
Red Hat Enterprise Linux 10libvirt-nssFix pending
Affected
Red Hat Enterprise Linux 10libvirt-ssh-proxyFix pending
Affected
Red Hat Enterprise Linux 9libvirtFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-clientFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-client-qemuFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemonFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-commonFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-config-networkFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-config-nwfilterFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-driver-interfaceFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-driver-networkFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-driver-nodedevFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-driver-nwfilterFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-driver-qemuFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-driver-secretFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-driver-storageFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-driver-storage-coreFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-driver-storage-diskFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-driver-storage-iscsiFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-driver-storage-logicalFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-driver-storage-mpathFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-driver-storage-rbdFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-driver-storage-scsiFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-kvmFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-lockFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-logFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-plugin-lockdFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-plugin-sanlockFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-daemon-proxyFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-develFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-docsFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-libsFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-nssFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 9libvirt-ssh-proxyFixed0:10.5.0-7.el9_5RHSA-2024:9128
Red Hat Enterprise Linux 8libvirtNot affected
Red Hat Enterprise Linux 8libvirt-adminNot affected
Red Hat Enterprise Linux 8libvirt-bash-completionNot affected
Red Hat Enterprise Linux 8libvirt-clientNot affected
Red Hat Enterprise Linux 8libvirt-daemonNot affected
Red Hat Enterprise Linux 8libvirt-daemon-config-networkNot affected
Red Hat Enterprise Linux 8libvirt-daemon-config-nwfilterNot affected
Red Hat Enterprise Linux 8libvirt-daemon-driver-interfaceNot affected
Red Hat Enterprise Linux 8libvirt-daemon-driver-networkNot affected
Red Hat Enterprise Linux 8libvirt-daemon-driver-nodedevNot affected
Red Hat Enterprise Linux 8libvirt-daemon-driver-nwfilterNot affected
Red Hat Enterprise Linux 8libvirt-daemon-driver-qemuNot affected
Red Hat Enterprise Linux 8libvirt-daemon-driver-secretNot affected
Red Hat Enterprise Linux 8libvirt-daemon-driver-storageNot affected
Red Hat Enterprise Linux 8libvirt-daemon-driver-storage-coreNot affected
Red Hat Enterprise Linux 8libvirt-daemon-driver-storage-diskNot affected
Red Hat Enterprise Linux 8libvirt-daemon-driver-storage-glusterNot affected
Red Hat Enterprise Linux 8libvirt-daemon-driver-storage-iscsiNot affected
Red Hat Enterprise Linux 8libvirt-daemon-driver-storage-iscsi-directNot affected
Red Hat Enterprise Linux 8libvirt-daemon-driver-storage-logicalNot affected
Red Hat Enterprise Linux 8libvirt-daemon-driver-storage-mpathNot affected
Red Hat Enterprise Linux 8libvirt-daemon-driver-storage-rbdNot affected
Red Hat Enterprise Linux 8libvirt-daemon-driver-storage-scsiNot affected
Red Hat Enterprise Linux 8libvirt-daemon-kvmNot affected
Red Hat Enterprise Linux 8libvirt-develNot affected
Red Hat Enterprise Linux 8libvirt-docsNot affected
Red Hat Enterprise Linux 8libvirt-libsNot affected
Red Hat Enterprise Linux 8libvirt-lock-sanlockNot affected
Red Hat Enterprise Linux 8libvirt-nssNot affected
Red Hat Enterprise Linux 8libvirt-wiresharkNot affected
Red Hat Enterprise Linux 7libvirtNot affected
Red Hat Enterprise Linux 7libvirt-adminNot affected
Red Hat Enterprise Linux 7libvirt-bash-completionNot affected
Red Hat Enterprise Linux 7libvirt-clientNot affected
Red Hat Enterprise Linux 7libvirt-daemonNot affected
Red Hat Enterprise Linux 7libvirt-daemon-config-networkNot affected
Red Hat Enterprise Linux 7libvirt-daemon-config-nwfilterNot affected
Red Hat Enterprise Linux 7libvirt-daemon-driver-interfaceNot affected
Red Hat Enterprise Linux 7libvirt-daemon-driver-lxcNot affected
Red Hat Enterprise Linux 7libvirt-daemon-driver-networkNot affected
Red Hat Enterprise Linux 7libvirt-daemon-driver-nodedevNot affected
Red Hat Enterprise Linux 7libvirt-daemon-driver-nwfilterNot affected
Red Hat Enterprise Linux 7libvirt-daemon-driver-qemuNot affected
Red Hat Enterprise Linux 7libvirt-daemon-driver-secretNot affected
Red Hat Enterprise Linux 7libvirt-daemon-driver-storageNot affected
Red Hat Enterprise Linux 7libvirt-daemon-driver-storage-coreNot affected
Red Hat Enterprise Linux 7libvirt-daemon-driver-storage-diskNot affected
Red Hat Enterprise Linux 7libvirt-daemon-driver-storage-glusterNot affected
Red Hat Enterprise Linux 7libvirt-daemon-driver-storage-iscsiNot affected
Red Hat Enterprise Linux 7libvirt-daemon-driver-storage-logicalNot affected
Red Hat Enterprise Linux 7libvirt-daemon-driver-storage-mpathNot affected
Red Hat Enterprise Linux 7libvirt-daemon-driver-storage-rbdNot affected
Red Hat Enterprise Linux 7libvirt-daemon-driver-storage-scsiNot affected
Red Hat Enterprise Linux 7libvirt-daemon-kvmNot affected
Red Hat Enterprise Linux 7libvirt-daemon-lxcNot affected
Red Hat Enterprise Linux 7libvirt-develNot affected
Red Hat Enterprise Linux 7libvirt-docsNot affected
Red Hat Enterprise Linux 7libvirt-libsNot affected
Red Hat Enterprise Linux 7libvirt-lock-sanlockNot affected
Red Hat Enterprise Linux 7libvirt-login-shellNot affected
Red Hat Enterprise Linux 7libvirt-nssNot affected
Red Hat Enterprise Linux 7libvirt-pythonNot affected
Red Hat Enterprise Linux 6libvirtNot affected
Red Hat Enterprise Linux 6libvirt-clientNot affected
Red Hat Enterprise Linux 6libvirt-develNot affected
Red Hat Enterprise Linux 6libvirt-lock-sanlockNot affected
Red Hat Enterprise Linux 6libvirt-pythonNot affected
AlmaLinux 9libvirtFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-clientFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-client-qemuFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemonFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-commonFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-config-networkFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-config-nwfilterFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-driver-interfaceFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-driver-networkFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-driver-nodedevFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-driver-nwfilterFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-driver-qemuFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-driver-secretFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-driver-storageFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-driver-storage-coreFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-driver-storage-diskFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-driver-storage-iscsiFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-driver-storage-logicalFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-driver-storage-mpathFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-driver-storage-rbdFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-driver-storage-scsiFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-kvmFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-lockFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-logFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-plugin-lockdFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-plugin-sanlockFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-daemon-proxyFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-develFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-docsFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-libsFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-nssFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
AlmaLinux 9libvirt-ssh-proxyFixed10.5.0-7.el9_5.alma.1ALSA-2024:9128
Rocky Linux 9libvirtFixed0:10.5.0-7.4.el9_5RLSA-2024:9128
Alpine Linux 3.24libvirtFixed10.7.0-r0ALPINE-CVE-2024-8235
Alpine Linux 3.23libvirtFixed10.7.0-r0ALPINE-CVE-2024-8235
Alpine Linux 3.22libvirtFixed10.7.0-r0ALPINE-CVE-2024-8235
Alpine Linux 3.21libvirtFixed10.7.0-r0ALPINE-CVE-2024-8235
Alpine Linux 3.20libvirtFixed10.7.0-r0ALPINE-CVE-2024-8235

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.