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

- Severity: High 7.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-04T17:45:21.000Z
- Modified: 2026-10-26T19:10:00.163Z
- Also known as: GHSA-r7w7-mmxr-47r9, GO-2026-5612
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- lxc incus: < 7.0.0
- github.com/lxc/incus/v6/cmd/incusd (Go): before 7.0.0
- github.com/lxc/incus (Go): all versions
- github.com/lxc/incus/v6 (Go): all versions
- github.com/lxc/incus/v7 (Go): before 7.0.0
- linuxcontainers incus: before 7.0.0

## Every score

- GitHub_M: CVSS:4.0 7.1 High `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`
- GitHub: CVSS:3.1 6.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/lxc/incus/security/advisories/GHSA-r7w7-mmxr-47r9> (exploit, advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40197> (advisory)
- <https://github.com/lxc/incus> (package)

## Sources

- CVE List: [CVE-2026-40197](https://www.cve.org/CVERecord?id=CVE-2026-40197), CVE Terms of Use, modified 2026-05-07
- GitHub Advisory Database: [GHSA-r7w7-mmxr-47r9](https://github.com/advisories/GHSA-r7w7-mmxr-47r9), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5612](https://pkg.go.dev/vuln/GO-2026-5612), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-40197](https://nvd.nist.gov/vuln/detail/CVE-2026-40197), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40197 · Whole record: https://cve.day/CVE-2026-40197.json · Rebuilt by cve.day 2026-11-25T22:59:20.833Z
