GO-2026-5612 CVE-2026-40197 GHSA-r7w7-mmxr-47r9
Incus has a Nil-Pointer Dereference via Custom Volume Import in github.com/lxc/incus
- Severity
- 0.0 / 10
- Medium · CVSS 4.0
- Exploit chance (EPSS)
- 0.39%
- Chance of exploitation in the next 30 days. Higher than 32.56% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-476 NULL Pointer Dereference
- Fix
- Available
- 2 packages have a fixed version
Description
Incus has a Nil-Pointer Dereference via Custom Volume Import in github.com/lxc/incus
Affected versions
Go
| Package | Vulnerable | Fixed in |
|---|---|---|
| github.com/lxc/incus | all versions |
No fix yet |
| github.com/lxc/incus/v6 | all versions |
No fix yet |
| github.com/lxc/incus/v6/cmd/incusd | < 7.0.0 |
7.0.0 |
| github.com/lxc/incus/v7 | < 7.0.0 |
7.0.0 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
github.com/lxc/incus/v6/cmd/incusd Go → 7.0.0
- go
go get github.com/lxc/incus/v6/cmd/incusd@v7.0.0 && go mod tidy
github.com/lxc/incus/v7 Go → 7.0.0
- go
go get github.com/lxc/incus/v7@v7.0.0 && go mod tidy
Severity breakdown
CVSS 4.0 0.0
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
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- Low
- User interaction
- None
- Confidentiality (vulnerable system)
- None
- Integrity (vulnerable system)
- None
- Availability (vulnerable system)
- High
- Confidentiality (subsequent systems)
- None
- Integrity (subsequent systems)
- None
- Availability (subsequent systems)
- None
CVSS 3.1 6.5
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Weakness
CWE-476: NULL Pointer Dereference
The product dereferences a pointer that it expects to be valid but is NULL.
How to prevent it
- Implementation: For any pointers that could have been modified or provided from a function that can return NULL, check the pointer for NULL before use. When working with a multithreaded or otherwise asynchronous environment, ensure that proper locking APIs are used to lock before the check, and unlock when it has finished [REF-1484].
- Requirements: Select a programming language that is not susceptible to these issues.
- Implementation: Check the results of all functions that return a value and verify that the value is non-null before acting upon it.
- Architecture and Design: Identify all variables and data stores that receive information from external sources, and apply input validation to make sure that they are only initialized to expected values.
- Implementation: Explicitly initialize all variables and other data stores, either during declaration or just before the first usage.
References
Advisories
Packages
Other links
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GO-2026-6319 Incus has a project restriction bypass in instance copy across projects | High | Also affects github.com/lxc/incus |
| GHSA-64f3-v33m-w89f Incus has a project restriction bypass for custom volume copy across projects | High | Also affects github.com/lxc/incus |
| GO-2026-5806 Incus has an arbitrary file write on its client due to trusted image hash | Critical | Also affects github.com/lxc/incus |
| GO-2026-5810 Incus: CreateCustomVolumeFromBackup nil-pointer dereference on volume_snapshots[*].expires_at (sibling-field variant of GHSA-r7w7) | Low | Also affects github.com/lxc/incus |
| GO-2026-5808 Incus has an argument injection in backup compression algorithm leading to AFW and ACE | Critical | Also affects github.com/lxc/incus |
| GO-2026-5800 Incus: Nil-pointer dereference in createDependentVolumesFromBackup on disk.{Volume,VolumeSnapshots,Pool} | Low | Also affects github.com/lxc/incus |
| GO-2026-5802 Incus has an arbitrary file write via path traversal in S3 multipart upload | Critical | Also affects github.com/lxc/incus |
| GO-2026-5803 Incus has arbitrary file read+write on host via templates/ symlink in malicious image | Critical | Also affects github.com/lxc/incus |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor