cve.bz

CVE-2024-8235 redhat libvirt: NULL Pointer Dereference

6.2 mediumEPSS 0.2%Fix available

Medium (6.2) in redhat libvirt. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.2 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 16th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-08-30. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-8235 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-8235?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-8235?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-8235 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 90:10.5.0-7.el9_5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13, 14libvirt10.7.0-1DEBIAN-CVE-2024-8235
Red Hatenterprise_linux:9::appstreamlibvirt, libvirt-nss, libvirt-libs and 53 more0:10.5.0-7.el9_5RHSA-2024:9128
Red Hatenterprise_linux:9::crblibvirt-docs, libvirt-devel, libvirt-debuginfo and 27 more0:10.5.0-7.el9_5RHSA-2024:9128
openSUSETumbleweedlibvirt10.7.0-1.1openSUSE-SU-2024:14315-1
AlmaLinux9libvirt, libvirt-nss, libvirt-docs and 29 more10.5.0-7.el9_5.alma.1ALSA-2024:9128
Rocky Linux9libvirt0:10.5.0-7.4.el9_5RLSA-2024:9128
Alpinev3.20, v3.21, v3.22 and 2 morelibvirt10.7.0-r0ALPINE-CVE-2024-8235
Alpaquitastreamlibvirt10.7.0-r0BELL-CVE-2024-8235

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This bug was introduced in libvirt-10.4.0. All versions of libvirt as shipped in Red Hat Enterprise Linux prior to RHEL-9.5 are unaffected by this CVE.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9libvirt-0:10.5.0-7.el9_5Fixed 2024-11-12RHSA-2024:9128
Red Hat Enterprise Linux 10libvirtAffected
Red Hat Enterprise Linux 6libvirtNot affected
Red Hat Enterprise Linux 7libvirtNot affected
Red Hat Enterprise Linux 8virt:rhel/libvirtNot affected
Red Hat Enterprise Linux 8 Advanced Virtualizationvirt:av/libvirtNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-8235.

References

Check your stackJSON