CVE-2026-40197Incus nil-pointer dereference in custom volume import allows denial of service
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.
What to do
Fixed builds are available from Alpine, Debian, Go: see the table below for the fixed version per release.
Debian, Go, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | incus | Fix pending | UBUNTU-CVE-2026-40197 | |
| Ubuntu 26.04 | incus | Fix pending | UBUNTU-CVE-2026-40197 | |
| Ubuntu 25.10 | incus | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-40197 | |
| Ubuntu 24.04 | incus | Fix pending | UBUNTU-CVE-2026-40197 | |
| Ubuntu 20.04 | lxd | Fix pending | UBUNTU-CVE-2026-40197 | |
| Ubuntu 18.04 | lxd | Fix pending | UBUNTU-CVE-2026-40197 | |
| Ubuntu 16.04 | lxd | Fix pending | UBUNTU-CVE-2026-40197 | |
| Debian 14 | incus | Fixed | 7.0.0-1 | DEBIAN-CVE-2026-40197 |
| Debian 13 | incus | Fixed | 6.0.4-2+deb13u7 | DEBIAN-CVE-2026-40197 |
| Debian 13 | lxd | Fixed | 5.0.2+git20231211.1364ae4-9+deb13u6 | DEBIAN-CVE-2026-40197 |
| Debian 12 | lxd | Fix pending | DEBIAN-CVE-2026-40197 | |
| Alpine Linux 3.24 | incus | Fixed | 7.0.0-r0 | ALPINE-CVE-2026-40197 |
| Go library | github.com/lxc/incus | Fix pending | GO-2026-5612 | |
| Go library | github.com/lxc/incus/v6 | Fix pending | GO-2026-5612 | |
| Go library | github.com/lxc/incus/v6/cmd/incusd | Fixed | 7.0.0 | GHSA-r7w7-mmxr-47r9 |
| Go library | github.com/lxc/incus/v7 | Fixed | 7.0.0 | GO-2026-5612 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- lxc incus: affected: < 7.0.0
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.