# CVE-2026-40197: Incus nil-pointer dereference in custom volume import allows denial of service

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 7.0.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-05-06 · Modified: 2026-05-07
- Aliases: UBUNTU-CVE-2026-40197, DEBIAN-CVE-2026-40197, GHSA-r7w7-mmxr-47r9, GO-2026-5612, ALPINE-CVE-2026-40197
- Record: https://cvemate.com/vulnerability/CVE-2026-40197 · JSON: https://cvemate.com/vulnerability/CVE-2026-40197/json

## Description

```text
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.
```

## Signals

- CVSS: 7.1 high (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- EPSS: 0.414%, percentile 37.746%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- alpine incus (Alpine Linux): \< 7.0.0-r0
- alpine incus-feature (Alpine Linux): \< 7.0.0-r0
- debian incus (Debian): \< 6.0.4-2+deb13u7 \| \< 7.0.0-1
- debian lxd (Debian): All versions (No fix recorded) \| \< 5.0.2+git20231211.1364ae4-9+deb13u6
- ubuntu incus (Ubuntu): All versions (No fix recorded)
- ubuntu lxd (Ubuntu): All versions (No fix recorded)
- github.com/lxc incus (Go): All versions (No fix recorded)
- github.com/lxc/incus v6 (Go): All versions (No fix recorded)
- github.com/lxc/incus v7 (Go): \< 7.0.0
- github.com/lxc/incus/v6/cmd incusd (Go): \< 7.0.0
- linuxcontainers incus: \< 7.0.0
- lxc incus: \< 7.0.0

## References

- <https://github.com/lxc/incus/security/advisories/GHSA-r7w7-mmxr-47r9>
- <https://ubuntu.com/security/CVE-2026-40197>
- <https://www.cve.org/CVERecord?id=CVE-2026-40197>
- <https://github.com/lxc/incus/pull/3273>
- <https://security-tracker.debian.org/tracker/CVE-2026-40197>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40197>
- <https://github.com/lxc/incus>
- <https://security.alpinelinux.org/vuln/CVE-2026-40197>

---

Data as of 2026-12-05T04:11:06.534Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
