CVE-2026-40251 Incus out-of-bounds panic in snapshot metadata handling allows denial of service
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| lxc github.com/lxc/incus/v7/cmd/incusd(Go) | < 7.0.0 | 7.0.0 |
| lxc incus(Go) | All versions | No fix listed |
| lxc incus(Go) | < 7.0.0 | 7.0.0 |
| lxc incus | = < 7.0.0 | No fix listed |
| debian/incus(Debian:13) | < 6.0.4-2+deb13u7 | 6.0.4-2+deb13u7 |
| debian/incus(Debian:13) | = 6.0.4-2 | No fix listed |
| debian/incus(Debian:13) | = 6.0.4-2+deb13u1 | No fix listed |
| debian/incus(Debian:13) | = 6.0.4-2+deb13u1~bpo12+1 | No fix listed |
| debian/incus(Debian:13) | = 6.0.4-2+deb13u2 | No fix listed |
| debian/incus(Debian:13) | = 6.0.4-2+deb13u2~bpo12+1 | No fix listed |
| debian/incus(Debian:13) | = 6.0.4-2+deb13u3 | No fix listed |
| debian/incus(Debian:13) | = 6.0.4-2+deb13u3~bpo12+1 | No fix listed |
| debian/incus(Debian:13) | = 6.0.4-2+deb13u4 | No fix listed |
| debian/incus(Debian:13) | = 6.0.4-2+deb13u4~bpo12+1 | No fix listed |
| debian/incus(Debian:13) | = 6.0.4-2+deb13u5 | No fix listed |
| debian/incus(Debian:13) | = 6.0.4-2+deb13u5~bpo12+1 | No fix listed |
| debian/incus(Debian:13) | = 6.0.4-2+deb13u6 | No fix listed |
| debian/incus(Debian:13) | = 6.0.4-2+deb13u6~bpo12+1 | No fix listed |
| debian/incus(Debian:13) | = 6.0.4-2+deb13u7~bpo12+1 | No fix listed |
| debian/incus(Debian:14) | < 7.0.0-1 | 7.0.0-1 |
| debian/incus(Debian:14) | = 6.0.4-2 | No fix listed |
| debian/incus(Debian:14) | = 6.0.4-3 | No fix listed |
| debian/incus(Debian:14) | = 6.0.5-1 | No fix listed |
| debian/incus(Debian:14) | = 6.0.5-2 | No fix listed |
| debian/incus(Debian:14) | = 6.0.5-3 | No fix listed |
Show 47 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/incus(Debian:14) | = 6.0.5-4 | No fix listed |
| debian/incus(Debian:14) | = 6.0.5-5 | No fix listed |
| debian/incus(Debian:14) | = 6.0.5-6 | No fix listed |
| debian/incus(Debian:14) | = 6.0.5-7 | No fix listed |
| debian/incus(Debian:14) | = 6.0.5-8 | No fix listed |
| debian/incus(Debian:14) | = 6.0.6-1 | No fix listed |
| debian/incus(Debian:14) | = 6.0.6-2 | No fix listed |
| debian/incus(Debian:14) | = 6.0.6-3 | No fix listed |
| debian/incus(Debian:14) | = 6.14.0-1~exp1 | No fix listed |
| debian/incus(Debian:14) | = 6.15.0-1~exp1 | No fix listed |
| debian/incus(Debian:14) | = 6.16.0-1~exp1 | No fix listed |
| debian/incus(Debian:14) | = 6.17.0-1~exp1 | No fix listed |
| debian/incus(Debian:14) | = 6.20.0-1~exp1 | No fix listed |
| debian/incus(Debian:14) | = 6.21.0-1~exp1 | No fix listed |
| debian/incus(Debian:14) | = 6.22.0-1~exp1 | No fix listed |
| debian/incus(Debian:14) | = 6.23.0-1~exp1 | No fix listed |
| debian/incus(Debian:14) | = 7.0.0-1~bpo13+1 | No fix listed |
| debian/lxd(Debian:12) | All versions | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-1 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-2 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-3 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-4 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-5 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-6 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-7 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-8 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-9 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-5 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-5+deb12u1 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-5+deb12u2 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-5+deb12u3 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-5+deb12u4 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-5+deb12u5 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-5+deb12u6 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-6 | No fix listed |
| debian/lxd(Debian:13) | < 5.0.2+git20231211.1364ae4-9+deb13u6 | 5.0.2+git20231211.1364ae4-9+deb13u6 |
| debian/lxd(Debian:13) | = 5.0.2+git20231211.1364ae4-9 | No fix listed |
| debian/lxd(Debian:13) | = 5.0.2+git20231211.1364ae4-9+deb13u1 | No fix listed |
| debian/lxd(Debian:13) | = 5.0.2+git20231211.1364ae4-9+deb13u2 | No fix listed |
| debian/lxd(Debian:13) | = 5.0.2+git20231211.1364ae4-9+deb13u3 | No fix listed |
| debian/lxd(Debian:13) | = 5.0.2+git20231211.1364ae4-9+deb13u4 | No fix listed |
| debian/lxd(Debian:13) | = 5.0.2+git20231211.1364ae4-9+deb13u5 | No fix listed |
| alpine/incus(Alpine:v3.24) | < 7.0.0-r0 | 7.0.0-r0 |
| ubuntu/incus(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/incus(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/incus(Ubuntu:26.10) | All versions | No fix listed |
| linuxcontainers incus | < 7.0.0 | 7.0.0 |
References
- https://github.com/lxc/incus/security/advisories/GHSA-4m88-wxj4-9qj6 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- https://github.com/lxc/incus/blob/v6.22.0/internal/server/storage/backend.go product
- github.com
- Debian Security Tracker CVE-2026-40251 vendor-advisory
- security.alpinelinux.org vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking