{"cve":"CVE-2026-40197","nvd":{"published":"2026-05-06T21:16:00.930","modified":"2026-10-26T19:10:00.163","status":"Analyzed","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_v4":{"vector":"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","score":7.1},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5},"cwes":["CWE-476"],"references":["https://github.com/lxc/incus/security/advisories/GHSA-r7w7-mmxr-47r9"],"products":["linuxcontainers:incus"],"source":"nvd","synced_at":"2026-10-26T19:31:02.781428341+00:00"},"epss":{"cve":"CVE-2026-40197","score":0.00385,"percentile":0.32288,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-r7w7-mmxr-47r9","url":"https://osv.dev/vulnerability/GHSA-r7w7-mmxr-47r9","summary":"Incus has a Nil-Pointer Dereference via Custom Volume Import","modified":"2026-06-25T23:11:37.971741734Z","packages":[{"ecosystem":"Go","name":"github.com/lxc/incus/v6/cmd/incusd","purl":"pkg:golang/github.com/lxc/incus/v6/cmd/incusd","ranges":["<7.0.0"],"fixed":["7.0.0"]}]},{"id":"GO-2026-5612","url":"https://osv.dev/vulnerability/GO-2026-5612","summary":"Incus has a Nil-Pointer Dereference via Custom Volume Import in github.com/lxc/incus","modified":"2026-06-25T23:01:24.349901534Z","packages":[{"ecosystem":"Go","name":"github.com/lxc/incus","purl":"pkg:golang/github.com/lxc/incus","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/lxc/incus/v6","purl":"pkg:golang/github.com/lxc/incus/v6","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/lxc/incus/v7","purl":"pkg:golang/github.com/lxc/incus/v7","ranges":["<7.0.0"],"fixed":["7.0.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}