Vulnerability · Published May 7, 2026 · Assigned by GitHub_M
CVE-2026-41684Incus: Nil Dereferences on Restore via Malformed YAML
Medium 6.5
In plain English
A medium-severity null pointer dereference in incus from lxc. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.24 | incus | 7.0.0-r0 | ALPINE-CVE-2026-41684 |
| Debian:13 | incus | 6.0.4-2+deb13u7 | DEBIAN-CVE-2026-41684 |
| Debian:14 | incus | 7.0.0-1 | DEBIAN-CVE-2026-41684 |
| Debian:12 | lxd | no fix listed | DEBIAN-CVE-2026-41684 |
| Debian:13 | lxd | 5.0.2+git20231211.1364ae4-9+deb13u6 | DEBIAN-CVE-2026-41684 |
| Go | github.com/lxc/incus | no fix listed | GO-2026-5742 |
| Go | github.com/lxc/incus/v6 | no fix listed | GO-2026-5742 |
| Go | github.com/lxc/incus/v6/cmd/incusd | no fix listed | GHSA-x5r6-jr56-89pv |
| Ubuntu:25.10 | incus | no fix listed | UBUNTU-CVE-2026-41684 |
| Ubuntu:26.10 | incus | no fix listed | UBUNTU-CVE-2026-41684 |
Affected products (as reported)
Weakness: CWE-476 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/lxc/incus/security/advisories/GHSA-x5r6-jr56-89pv x_refsource_CONFIRM
- https://github.com/lxc/incus/releases/tag/v7.0.0 x_refsource_MISC