7.1

CVE-2026-40251: linuxcontainers incus Improper Validation of Array Index

CVSS: 7.1v4.0HighAnalyzed
AliasesUBUNTU-CVE-2026-40251DEBIAN-CVE-2026-40251GHSA-4m88-wxj4-9qj6
Published 06-05-2026Last modified 07-05-2026

Vulnerability summary

CVE-2026-40251 is a high (CVSS 7.1) Improper Validation of Array Index vulnerability in linuxcontainers incus. EPSS estimates a 0.47% chance of exploitation in the next 30 days, higher than 39.3% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
38/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.1/10
010
High · v4.0 (CVE.org)
EPSS score
0.47%
0%100%
Low · +0.06 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 1 · Related 1

Timeline

  1. 06-05-2026
    PublishedVulnerability first disclosed.
  2. 07-05-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

8 scores · 5 sources · 2 versions

EPSS trend

Probability

0.47%

Chance of exploitation in the next 30 days

Percentile

39%

Versus all other CVEs

30-day change

+0.06 pp

From 0.41% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.47%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Incus

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Debian2 products
  • incus< 6.0.4-2+deb13u7 | < 7.0.0-1
  • lxdAll versions (No fix recorded) | < 5.0.2+git20231211.1364ae4-9+deb13u6
Github.com/lxc/incus2 products
  • v6All versions (No fix recorded)
  • v7< 7.0.0
Ubuntu2 products
  • incusAll versions (No fix recorded)
  • lxdAll versions (No fix recorded)
Github.com/lxc1 product
  • incusAll versions (No fix recorded)
Github.com/lxc/incus/v6/cmd1 product
  • incusd< 7.0.0
Linuxcontainers1 product
Lxc1 product

7 vendors · 10 products

References

8 links