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

Published Aug 30, 2024
·
Updated

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.

Other sources

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 if virConnectListInterfaces() is called requesting 0 networks to be filled.

The bug was introduced in libvirt-10.4.0 and reproduces only on platforms where allocation of 0-length memory returns NULL instead of a valid pointer.

Upstream fix: https://gitlab.com/libvirt/libvirt/-/commit/8dfb12cb77996519901b8d52c754ab564ebd10e8

Red Hat

Affected Software

2 affected components
All of the following
redhat Enterprise Linux=9.0
redhat libvirt>=10.4.0<10.7.0

Event History

Aug 30, 2024
Data Sourced
via Red Hat·01:15 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·04:16 PM
Data Sourced
via MITRE·04:16 PM
DescriptionSeverityWeakness
Apr 25, 56770
Event
via FIRST·05:00 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-8235?

CVE-2024-8235 is classified with a medium severity due to the potential for causing a crash of the application.

2

How do I fix CVE-2024-8235?

To mitigate CVE-2024-8235, update libvirt to a version above 10.7.0, as this issue is fixed in later releases.

3

Which versions of libvirt are affected by CVE-2024-8235?

CVE-2024-8235 affects libvirt versions from 10.4.0 to 10.7.0.

4

On which platforms does CVE-2024-8235 occur?

CVE-2024-8235 occurs on platforms where allocating 0 bytes results in a NULL pointer.

5

What type of issue is CVE-2024-8235?

CVE-2024-8235 is a NULL-pointer dereference issue that can lead to application crashes.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203