First published: Fri Aug 30 2024(Updated: )
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: <a href="https://gitlab.com/libvirt/libvirt/-/commit/8dfb12cb77996519901b8d52c754ab564ebd10e8">https://gitlab.com/libvirt/libvirt/-/commit/8dfb12cb77996519901b8d52c754ab564ebd10e8</a>
Affected Software | Affected Version | How to fix |
---|---|---|
libvirt | >=10.4.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The severity of REDHAT-BUG-2308680 is considered important due to its potential to cause a NULL pointer dereference and crash.
To fix REDHAT-BUG-2308680, update to the latest version of libvirt that addresses this NULL pointer dereference issue.
REDHAT-BUG-2308680 affects platforms where allocating 0 bytes of memory results in a NULL pointer.
REDHAT-BUG-2308680 impacts libvirt versions from 10.4.0 and above.
The consequence of REDHAT-BUG-2308680 is a crash of the virtinterfaced process due to a NULL pointer dereference.