{"cve":"CVE-2026-40251","nvd":{"published":"2026-05-06T21:16:01.210","modified":"2026-10-26T19:10:00.163","status":"Analyzed","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.\n\nAn 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_v4":{"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":7.1},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5},"cwes":["CWE-129"],"references":["https://github.com/lxc/incus/blob/v6.22.0/internal/server/storage/backend.go","https://github.com/lxc/incus/security/advisories/GHSA-4m88-wxj4-9qj6","https://github.com/lxc/incus/security/advisories/GHSA-4m88-wxj4-9qj6"],"products":["linuxcontainers:incus"],"source":"nvd","synced_at":"2026-10-26T19:31:02.781428341+00:00"},"epss":{"cve":"CVE-2026-40251","score":0.00408,"percentile":0.3484,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-4m88-wxj4-9qj6","url":"https://osv.dev/vulnerability/GHSA-4m88-wxj4-9qj6","summary":"Incus Vulnerable to Panic via Snapshot Bounds Check","modified":"2026-06-25T18:56:06.503204094Z","packages":[{"ecosystem":"Go","name":"github.com/lxc/incus/v6/cmd/incusd","purl":"pkg:golang/github.com/lxc/incus/v6/cmd/incusd","ranges":["<7.0.0"],"fixed":["7.0.0"]}]},{"id":"GO-2026-5127","url":"https://osv.dev/vulnerability/GO-2026-5127","summary":"Incus Vulnerable to Panic via Snapshot Bounds Check in github.com/lxc/incus","modified":"2026-06-25T18:45:23.709033016Z","packages":[{"ecosystem":"Go","name":"github.com/lxc/incus","purl":"pkg:golang/github.com/lxc/incus","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/lxc/incus/v6","purl":"pkg:golang/github.com/lxc/incus/v6","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/lxc/incus/v7","purl":"pkg:golang/github.com/lxc/incus/v7","ranges":["<7.0.0"],"fixed":["7.0.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}