Vulnerability · Published May 6, 2026 · Assigned by GitHub_M

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

High 7.1

In plain English

A high-severity null pointer dereference in incus from lxc. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)7.1High
Exploit odds (30 days)0.4%top 67.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.24incus7.0.0-r0ALPINE-CVE-2026-40197
Debian:13incus6.0.4-2+deb13u7DEBIAN-CVE-2026-40197
Debian:14incus7.0.0-1DEBIAN-CVE-2026-40197
Debian:12lxdno fix listedDEBIAN-CVE-2026-40197
Debian:13lxd5.0.2+git20231211.1364ae4-9+deb13u6DEBIAN-CVE-2026-40197
Gogithub.com/lxc/incusno fix listedGO-2026-5612
Gogithub.com/lxc/incus/v6no fix listedGO-2026-5612
Gogithub.com/lxc/incus/v6/cmd/incusd7.0.0GHSA-r7w7-mmxr-47r9
Gogithub.com/lxc/incus/v77.0.0GO-2026-5612
Ubuntu:25.10incusno fix listedUBUNTU-CVE-2026-40197
Ubuntu:26.10incusno fix listedUBUNTU-CVE-2026-40197

Affected products (as reported)

VendorProductVersions
lxc incus < 7.0.0

Weakness: CWE-476 · 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

References