CVE-2026-40251
Medium · 6.5CVSS
6.5
EPSS
0.5%
Published
May 6, 2026
CISA due date
—
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-96675 alsa-lib through 1.2.16.1 contains a denial of service vulnerability in the multi PCM… CWE-129
- CVE-2026-84445 gRPC-Go is the Go language implementation of gRPC. CWE-129
- CVE-2026-88052 Tesseract is an open source OCR engine. CWE-129
- CVE-2026-87500 Improper validation of array index in ANGLE in Google Chrome prior to 153.0.8010.36… CWE-129
- CVE-2026-0799 In BPF instructions that load/store a value from/to a scratch memory register the… CWE-129
- CVE-2026-57159 PJSIP is a free and open source multimedia communication library written in C. CWE-129
- CVE-2026-85084 Out-of-bounds Write and Improper Validation of Array Index vulnerability in Samsung Open… CWE-129
- CVE-2023-31308 A malicious virtual function can invoke the certain command handlers in the SMU, causing… CWE-129