CVE-2026-40251Incus out-of-bounds panic in snapshot metadata handling allows denial of service
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.
What to do
Fixed builds are available from Alpine, Debian, Go: see the table below for the fixed version per release.
Debian, Go, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | incus | Fix pending | UBUNTU-CVE-2026-40251 | |
| Ubuntu 26.04 | incus | Fix pending | UBUNTU-CVE-2026-40251 | |
| Ubuntu 25.10 | incus | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-40251 | |
| Ubuntu 24.04 | incus | Fix pending | UBUNTU-CVE-2026-40251 | |
| Ubuntu 20.04 | lxd | Fix pending | UBUNTU-CVE-2026-40251 | |
| Ubuntu 18.04 | lxd | Fix pending | UBUNTU-CVE-2026-40251 | |
| Ubuntu 16.04 | lxd | Fix pending | UBUNTU-CVE-2026-40251 | |
| Debian 14 | incus | Fixed | 7.0.0-1 | DEBIAN-CVE-2026-40251 |
| Debian 13 | incus | Fixed | 6.0.4-2+deb13u7 | DEBIAN-CVE-2026-40251 |
| Debian 13 | lxd | Fixed | 5.0.2+git20231211.1364ae4-9+deb13u6 | DEBIAN-CVE-2026-40251 |
| Debian 12 | lxd | Fix pending | DEBIAN-CVE-2026-40251 | |
| Alpine Linux 3.24 | incus | Fixed | 7.0.0-r0 | ALPINE-CVE-2026-40251 |
| Go library | github.com/lxc/incus | Fix pending | GO-2026-5127 | |
| Go library | github.com/lxc/incus/v6 | Fix pending | GO-2026-5127 | |
| Go library | github.com/lxc/incus/v6/cmd/incusd | Fixed | 7.0.0 | GHSA-4m88-wxj4-9qj6 |
| Go library | github.com/lxc/incus/v7 | Fixed | 7.0.0 | GO-2026-5127 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- lxc incus: affected: < 7.0.0
References
- https://github.com/lxc/incus/security/advisories/GHSA-4m88-wxj4-9qj6
- https://github.com/lxc/incus/blob/v6.22.0/internal/server/storage/backend.go
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.