CVE-2026-41684Incus: Nil Dereferences on Restore via Malformed YAML
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.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Debian, Go, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | incus | Fix pending | UBUNTU-CVE-2026-41684 | |
| Ubuntu 26.04 | incus | Fix pending | UBUNTU-CVE-2026-41684 | |
| Ubuntu 25.10 | incus | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-41684 | |
| Ubuntu 24.04 | incus | Fix pending | UBUNTU-CVE-2026-41684 | |
| Ubuntu 20.04 | lxd | Fix pending | UBUNTU-CVE-2026-41684 | |
| Ubuntu 18.04 | lxd | Fix pending | UBUNTU-CVE-2026-41684 | |
| Ubuntu 16.04 | lxd | Fix pending | UBUNTU-CVE-2026-41684 | |
| Debian 14 | incus | Fixed | 7.0.0-1 | DEBIAN-CVE-2026-41684 |
| Debian 13 | incus | Fixed | 6.0.4-2+deb13u7 | DEBIAN-CVE-2026-41684 |
| Debian 13 | lxd | Fixed | 5.0.2+git20231211.1364ae4-9+deb13u6 | DEBIAN-CVE-2026-41684 |
| Debian 12 | lxd | Fix pending | DEBIAN-CVE-2026-41684 | |
| Alpine Linux 3.24 | incus | Fixed | 7.0.0-r0 | ALPINE-CVE-2026-41684 |
| Go library | github.com/lxc/incus | Fix pending | GO-2026-5742 | |
| Go library | github.com/lxc/incus/v6 | Fix pending | GO-2026-5742 | |
| Go library | github.com/lxc/incus/v6/cmd/incusd | Fix pending | GHSA-x5r6-jr56-89pv |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- lxc incus: affected: < 7.0.0
References
- https://github.com/lxc/incus/security/advisories/GHSA-x5r6-jr56-89pv
- https://github.com/lxc/incus/releases/tag/v7.0.0
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.