CVE-2026-40251
Analyzed Analyzed - Analysis Complete
Out-of-Bounds Panic in Incus Storage Volume Import

Publication date: 2026-05-06

Last updated on: 2026-05-07

Assigner: GitHub, Inc.

Description
Incus is a system container and virtual machine manager. In versions before 7.0.0, missing validation logic in the storage volume import logic allows an authenticated user with access to the storage volume feature to cause the Incus daemon to crash. The backup restore subsystem contains an out-of-bounds panic vulnerability caused by an invalid bounds check when indexing snapshot metadata arrays, and the same flawed pattern also appears in the migration path. When iterating through physical snapshots provided in a backup archive, the loop uses the index to look up corresponding metadata in the parsed `Config.Snapshots` and `Config.VolumeSnapshots` slices. The guard condition `len(slice) >= i-1` is incorrect because it can still evaluate to true when the subsequent slice[i] access is out of bounds. An attacker can submit a backup archive that contains physical snapshot directories while supplying a tampered `index.yaml` with an empty or truncated snapshot metadata array, causing the daemon to index beyond the end of the metadata slice and crash. Repeated use of this issue can be used to keep Incus offline, causing a denial of service. This issue is fixed in version 7.0.0.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-06
Last Modified
2026-05-07
Generated
2026-05-27
AI Q&A
2026-05-07
EPSS Evaluated
2026-05-26
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linuxcontainers incus to 7.0.0 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-129 The product uses untrusted input when calculating or using an array index, but the product does not validate or incorrectly validates the index to ensure the index references a valid position within the array.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in Incus, a system container and virtual machine manager, in versions before 7.0.0. It is caused by missing validation logic in the storage volume import process, specifically in the backup restore subsystem. The issue arises from an incorrect bounds check when indexing snapshot metadata arrays, which can lead to an out-of-bounds panic.

An authenticated user with access to the storage volume feature can exploit this by submitting a specially crafted backup archive containing physical snapshot directories along with a tampered index.yaml file that has empty or truncated snapshot metadata arrays. This causes the Incus daemon to access invalid memory locations and crash.

Repeated exploitation of this flaw can keep the Incus daemon offline, resulting in a denial of service condition. The vulnerability is fixed in version 7.0.0.


How can this vulnerability impact me? :

This vulnerability can cause the Incus daemon to crash repeatedly, leading to a denial of service (DoS) condition. An attacker who is authenticated and has access to the storage volume feature can exploit this to keep the system offline.

The impact is primarily availability-related, as the service managing containers and virtual machines becomes unavailable, potentially disrupting operations that depend on these services.


What immediate steps should I take to mitigate this vulnerability?

To mitigate this vulnerability, upgrade the Incus system container and virtual machine manager to version 7.0.0 or later, where the issue has been fixed.

Until the upgrade can be performed, restrict authenticated users' access to the storage volume feature to prevent exploitation.


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

The vulnerability allows an authenticated user with access to the storage volume feature to cause the Incus daemon to crash, resulting in a denial-of-service condition. This impacts system availability but does not directly disclose or modify sensitive data.

Since the vulnerability primarily affects availability and does not involve unauthorized access to or leakage of personal or protected health information, its impact on compliance with standards like GDPR or HIPAA is indirect and limited to potential service disruption.

Organizations relying on Incus for critical services should consider the availability impact in their risk assessments and ensure timely patching to maintain compliance with availability requirements in these regulations.


How can this vulnerability be detected on my network or system? Can you suggest some commands?

This vulnerability involves an out-of-bounds panic in the Incus daemon triggered by submitting a specially crafted backup archive with tampered snapshot metadata. Detection would involve monitoring for Incus daemon crashes or denial-of-service symptoms when processing storage volume backups or migrations.

Since the issue is triggered by malformed backup archives, one detection approach is to verify the version of Incus running on your system. Versions prior to 7.0.0 are vulnerable.

You can check the Incus version with the command:

  • incus --version

To detect if the daemon is crashing due to this vulnerability, monitor system logs for Incus daemon crashes or panic messages related to storage volume imports or backup restores.

For example, you can use:

  • journalctl -u incus -f

or check the system log files for crash traces.

Additionally, to proactively detect attempts to exploit this vulnerability, inspect backup archives before import to ensure snapshot metadata arrays are not empty or truncated. This requires custom scripting or manual validation of the backup archive's index.yaml file.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart