Summary
Incus versions before 7.6.0 create the NBD servers for virtual machine migration and disk export on abstract Unix sockets that have no permission checks. A local unprivileged user could read or modify the VM disk while the operation runs.
What happened
Incus creates the NBD servers used for virtual machine migration and disk export on abstract Unix sockets. These sockets have no permission checks and their names are visible in /proc/net/unix. A local unprivileged user can connect while an operation is running and read or modify the VM disk. On the receiving side of a migration, this allows code execution in the guest. The weakness is classified as CWE-668. The score is CVSS 4.0 of 9.2 (critical severity), assigned by the CNA VulnCheck, with the vector CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N.
Why it matters
The attack requires local access to the system and a migration or export operation in progress. In that case the confidentiality and integrity of the virtual machine disk may be compromised and, on the receiving side of a migration, the guest as well. The source does not indicate known active exploitation: it is not listed as exploited in CISA's KEV catalog. It also provides no evidence that this was a zero-day.
Affected products and versions
Incus (vendor: lxc), versions before 7.6.0 (< 7.6.0). Version 7.6.0 is listed as unaffected.
| Product | Versions | Fixed in |
|---|---|---|
| lxc incus | < 7.6.0 | — |
| lxc incus | 7.6.0 | 7.6.0 |
Action recommended by the source
The source states that version 7.6.0 is not affected, and the vendor advisory is available at https://github.com/lxc/incus/security/advisories/GHSA-3rgf-297m-775x. The source does not detail other mitigations.
Fixed in: 7.6.0
Sources and references
Weaknesses (CWE): CWE-668
Relevant change history
Advisory correction
The preliminary version was replaced by the full write-up.
Published
Preliminary advisory published.