Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.4%top 69%

CVE-2026-40197: CWE-476: NULL Pointer Dereference in lxc incus

0
High
VulnerabilityCVE-2026-40197cvecve-2026-40197cwe-476
Published: 05/06/2026 (05/06/2026, 20:36:24 UTC)
Source: CVE Database V5
Vendor/Project: lxc
Product: incus

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

Score 7.1high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

GitHub Actionsmore threats →ai
lxc/incus
pkg:github/lxc/incus
Affected versions
<7.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/14/2026, 03:50:35 UTC

Technical Analysis

Incus versions before 7.0.0 contain a NULL pointer dereference vulnerability (CWE-476) in the custom volume backup import subsystem. During snapshot import, the daemon iterates over the volume snapshots array without validating if elements are nil. The yaml unmarshaler can convert attacker-controlled null array elements into nil pointers, which when dereferenced cause the daemon to crash. This leads to denial of service on the affected node. The issue requires an authenticated user with access to the storage volume feature to exploit. The vulnerability is addressed in Incus 7.0.0.

Potential Impact

Successful exploitation causes the Incus daemon to crash, resulting in denial of service on the affected node. Repeated exploitation can keep the service offline, disrupting container and virtual machine management. There is no indication of privilege escalation or data corruption from the provided information.

Mitigation Recommendations

This issue is fixed in Incus version 7.0.0. Users should upgrade to version 7.0.0 or later to remediate this vulnerability. Patch status is not explicitly confirmed in the vendor advisory content provided, but the fix is stated to be in version 7.0.0. Until upgrade, restrict authenticated user access to the storage volume feature to trusted users only.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-09T20:59:17.621Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69fba9cccbff5d86105e9c32

Added to database: 05/06/2026, 20:51:24 UTC

Last enriched: 05/14/2026, 03:50:35 UTC

Last updated: 07/31/2026, 21:34:32 UTC

Views: 100

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses