Bug 2308680 (CVE-2024-8235) - CVE-2024-8235 libvirt: Crash of virtinterfaced via virConnectListInterfaces()
Summary: CVE-2024-8235 libvirt: Crash of virtinterfaced via virConnectListInterfaces()
Keywords:
Status: NEW
Alias: CVE-2024-8235
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2308689
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-08-30 13:15 UTC by OSIDB Bzimport
Modified: 2025-04-06 19:17 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2024:9128 0 None None None 2024-11-12 08:53:03 UTC

Description OSIDB Bzimport 2024-08-30 13:15:59 UTC
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

Comment 1 errata-xmlrpc 2024-11-12 08:53:02 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:9128 https://access.redhat.com/errata/RHSA-2024:9128


Note You need to log in before you can comment on or make changes to this bug.