GitHub Advisoryadvisory · Go

GHSA-56mx-8g9f-5crf Incus vulnerable to local privilege escalation through custom storage volumes

HIGH Published 2025-11-13 Modified 2026-03-30 Official page ↗
Aliases
CVE-2025-64507
Ecosystem
Go
Packages
github.com/lxc/incus/v6
Severity
High
CVSS vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Weaknesses
CWE-269
Reviewed
2025-11-13

Affected packages

• Go github.com/lxc/incus/v6: < 6.19.0 → fixed in 6.19.0

Description

Impact This affects any Incus user in an environment where an unprivileged user may have root access to a container with an attached custom storage volume that has the `security.shifted` property set to `true` as well as access to the host as an unprivileged user. The most common case for this would be systems using `incus-user` with the less privileged `incus` group to provide unprivileged users with an isolated restricted access to Incus. Such users may be able to create a custom storage volume with the necessary property (depending on kernel and filesystem support) and can then write a setuid binary from within the container which can be executed as an unpriivleged user on the host to gain root privileges. Patches A patch for this issue is available here: https://github.com/lxc/incus/pull/2642 The first commit changes the permissions for any new storage pool, the second commit applies it on startup to all existing storage pools. Workarounds Permissions can be manually restricted until a patched version of Incus is deployed. This is done with: ``` chmod 0700 /var/lib/incus/storage-pools/*/* chmod 0711 /var/lib/incus/storage-pools/*/buckets* chmod 0711 /var/lib/incus/storage-pools/*/container* ``` Those are the same permissions which will be applied by the patched Incus for both new and existing storage pools. References This was reported publicly on Github by here: https://github.com/lxc/incus/issues/2641

Related

Alias · CVE (1)

  • CVE-2025-64507 Incus is a system container and virtual machine manager. vulnerability

Weakness · CWE (1)

  • CWE-269 Improper Privilege Management weakness

References