CVE-2026-41684
published medium CVSS 3.1 · 6.5Incus: Nil Dereferences on Restore via Malformed YAML
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| lxc | — | incus< 7.0.0 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | incus | Fixed | 7.0.0-r0 | Package fix record |
| Debian | trixie | incus | Advisory build | 6.0.4-2+deb13u7 | DSA-6244-1 |
| Alpine Linux | v3.24 | incus | Fixed | 7.0.0-r0 | Package fix record |
| Alpine Linux | edge | incus-feature | Fixed | 7.0.0-r0 | Package fix record |
| Debian | bookworm | lxd | Advisory build | 5.0.2-5+deb12u6 | DSA-6247-1 |
| Debian | trixie | lxd | Advisory build | 5.0.2+git20231211.1364ae4-9+deb13u6 | DSA-6247-1 |
Description
Incus is a system container and virtual machine manager. Prior to version 7.0.0, backup.GetInfo() trusts the inline backup/index.yaml config when present and only falls back to parsing the legacy backup/container/backup.yaml file if result.Config == nil. As a result, an archive can carry a valid inline config that passes the initial import preflight while also carrying a malformed legacy backup/container/backup.yaml file that is reparsed later from the restored file system. ParseConfigYamlFile() accepts YAML documents with no container section, and multiple downstream consumers then dereference. Container without checking for nil. Confirmed examples in the instance restore and import flow include backup.UpdateInstanceConfig() and internalImportFromBackup(). An authenticated user with permission to import instance backups may be able to crash the Incus daemon with a crafted backup archive whose inline backup/index.yaml is valid but whose extracted legacy backup.yaml omits container. The crash occurs in the restore path after archive extraction has begun. This issue has been patched in version 7.0.0.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| lxc | incus | < 7.0.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-476 CWE-476: NULL Pointer Dereference
References
2Provider assertions
2GitHub_M · cna
Incus: Nil Dereferences on Restore via Malformed YAML
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 832e47131c34167fe663db6e476294ad6845b7acaa3d344c94621688fb121971
- Ingested
- 23 Sep 2026, 09:13:40 UTC
- Source record
- Official CVE record