NULL Pointer Dereference Affecting incus package, versions <6.0.4-2+deb13u7


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.39% (32nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-INCUS-18496051
  • published1 Aug 2026
  • disclosed6 May 2026

Introduced: 6 May 2026

CVE-2026-40197  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

Upgrade Echo:latest incus to version 6.0.4-2+deb13u7 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream incus package and not the incus package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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 Base Scores

version 3.1