CVE-2026-40197: linuxcontainers incus NULL Pointer Dereference
Vulnerability summary
CVE-2026-40197 is a high (CVSS 7.1) NULL Pointer Dereference vulnerability in linuxcontainers incus. EPSS estimates a 0.44% chance of exploitation in the next 30 days, higher than 37.2% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 06-05-2026PublishedVulnerability first disclosed.
- 07-05-2026Last 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 custom volume backup import subsystem contains a nil-pointer dereference vulnerability during import operations. In the snapshot import loop, the daemon iterates over entries from `srcBackup.Config.VolumeSnapshots` and assumes that each slice element is initialized, then dereferences fields such as `Name`, `Config`, `Description`, `CreatedAt`, and `ExpiresAt` without first validating the element itself. Because the yaml unmarshaler accepts explicit null array elements from an attacker-controlled index.yaml and converts them into nil pointers inside the slice, an attacker can supply a backup archive containing a null entry in the volume_snapshots array. This causes a nil-pointer dereference during custom volume import and terminates the daemon, resulting in denial of service on the affected node. 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- OSV · UbuntuEcosystem advisory · calculated7.1HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- OSV · GoEcosystem advisory · calculated7.1HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- NVDNIST7.1HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · GoEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.44%
Chance of exploitation in the next 30 days
Percentile
37%
Versus all other CVEs
30-day change
+0.06 pp
From 0.39% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundIncus
Maturity: poc
Weaknesses
CWE · root causeAffected 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
- incus< 7.0.0
Lxc1 product
- incus< 7.0.0
7 vendors · 10 products
References
7 links- github.com/lxc/incus/security/advisories/GHSA-r7w7-mmxr-47r9X Refsource CONFIRMREPORTWEBAdvisoryExploitVendor Advisory
- github.com/lxc/incusPACKAGE