CVEfocus › CVE database › CVE-2026-40197

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

CVSS 7.1 HighEPSS 0.4% (higher than 30% of CVEs)Published 2026-05-06Updated 2026-05-07Assigner: GitHub_M

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.

CWE-476

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

6Fixed
9Fix pending
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10incusFix pendingUBUNTU-CVE-2026-40197
Ubuntu 26.04incusFix pendingUBUNTU-CVE-2026-40197
Ubuntu 25.10incusWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-40197
Ubuntu 24.04incusFix pendingUBUNTU-CVE-2026-40197
Ubuntu 20.04lxdFix pendingUBUNTU-CVE-2026-40197
Ubuntu 18.04lxdFix pendingUBUNTU-CVE-2026-40197
Ubuntu 16.04lxdFix pendingUBUNTU-CVE-2026-40197
Debian 14incusFixed7.0.0-1DEBIAN-CVE-2026-40197
Debian 13incusFixed6.0.4-2+deb13u7DEBIAN-CVE-2026-40197
Debian 13lxdFixed5.0.2+git20231211.1364ae4-9+deb13u6DEBIAN-CVE-2026-40197
Debian 12lxdFix pendingDEBIAN-CVE-2026-40197
Alpine Linux 3.24incusFixed7.0.0-r0ALPINE-CVE-2026-40197
Go librarygithub.com/lxc/incusFix pendingGO-2026-5612
Go librarygithub.com/lxc/incus/v6Fix pendingGO-2026-5612
Go librarygithub.com/lxc/incus/v6/cmd/incusdFixed7.0.0GHSA-r7w7-mmxr-47r9
Go librarygithub.com/lxc/incus/v7Fixed7.0.0GO-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.

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.