CVEfocus › CVE database › CVE-2026-40251

CVE-2026-40251Incus out-of-bounds panic in snapshot metadata handling allows denial of service

CVSS 7.1 HighEPSS 0.5% (higher than 33% of CVEs)Published 2026-05-06Updated 2026-05-07Assigner: GitHub_M

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.

CWE-129

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

6Fixed
9Fix pending
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10incusFix pendingUBUNTU-CVE-2026-40251
Ubuntu 26.04incusFix pendingUBUNTU-CVE-2026-40251
Ubuntu 25.10incusWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-40251
Ubuntu 24.04incusFix pendingUBUNTU-CVE-2026-40251
Ubuntu 20.04lxdFix pendingUBUNTU-CVE-2026-40251
Ubuntu 18.04lxdFix pendingUBUNTU-CVE-2026-40251
Ubuntu 16.04lxdFix pendingUBUNTU-CVE-2026-40251
Debian 14incusFixed7.0.0-1DEBIAN-CVE-2026-40251
Debian 13incusFixed6.0.4-2+deb13u7DEBIAN-CVE-2026-40251
Debian 13lxdFixed5.0.2+git20231211.1364ae4-9+deb13u6DEBIAN-CVE-2026-40251
Debian 12lxdFix pendingDEBIAN-CVE-2026-40251
Alpine Linux 3.24incusFixed7.0.0-r0ALPINE-CVE-2026-40251
Go librarygithub.com/lxc/incusFix pendingGO-2026-5127
Go librarygithub.com/lxc/incus/v6Fix pendingGO-2026-5127
Go librarygithub.com/lxc/incus/v6/cmd/incusdFixed7.0.0GHSA-4m88-wxj4-9qj6
Go librarygithub.com/lxc/incus/v7Fixed7.0.0GO-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.

References

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.