Critical NULL Pointer Dereference in libvirt Leading to Daemon Crash

libvirt Updated 02 Oct 2025

Summary

30/08/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-8235: A flaw was found in libvirt. Affects libvirt versions < 10.7.0-1. Fixed in 10.7.0-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

libvirt is an open-source API, daemon, and management tool for managing platform virtualization. It provides a consistent way to manage virtual machines, storage, and networking across different hypervisors. The libvirt package is widely used in cloud computing and virtualization environments, making it essential for system administrators and developers. However, a recent vulnerability has been identified that could lead to a crash of the virtinterfaced daemon, impacting the stability of virtualized environments.

Vulnerability Detail

A flaw was found in libvirt due to a refactor of the code responsible for fetching the list of interfaces across multiple APIs. This introduced a corner case on platforms where allocating 0 bytes of memory results in a NULL pointer. When this NULL pointer is dereferenced, it leads to a crash of the virtinterfaced daemon. Clients connecting to the read-only socket could experience service disruption as a result of this vulnerability.

How To Fix

Minimum fixed version

10.7.0-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libvirt

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can avoid connecting clients to the read-only socket until the package is updated. This will prevent the potential crash of the virtinterfaced daemon while a fix is being implemented.

Conclusion

The identified vulnerability in libvirt poses a significant risk by potentially crashing the virtinterfaced daemon due to a NULL pointer dereference. It is crucial for users to update to the patched version 10.7.0-1 to mitigate this risk. Until then, implementing the suggested workaround can help maintain service stability.

See every vulnerability recorded for libvirt →

Share this vulnerability

FAQ

The vulnerability can lead to a NULL pointer dereference, causing the virtinterfaced daemon to crash, which may disrupt services for clients connecting to it.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If immediate updates are not possible, consider implementing the workaround by avoiding client connections to the read-only socket until the update can be applied.

Yes, the vulnerability affects libvirt versions prior to 10.7.0-1. Updating to this version or later will resolve the issue.

More information about libvirt can be found on its official website and documentation, which provide insights into its features and usage.

Related vulnerabilities

Recent vulnerabilities recorded for libvirt.

How To Fix

Minimum fixed version

10.7.0-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libvirt

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback