CVE-2025-64507

NameCVE-2025-64507
DescriptionIncus is a system container and virtual machine manager. An issue in versions prior to 6.0.6 and 6.19.0 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 unprivileged user on the host to gain root privileges. A patch for this issue is expected in versions 6.0.6 and 6.19.0. As a workaround, permissions can be manually restricted until a patched version of Incus is deployed.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-6051-1, DSA-6057-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
incus (PTS)trixie6.0.4-2+deb13u1vulnerable
trixie (security)6.0.4-2+deb13u2fixed
sid, forky6.0.5-5fixed
lxd (PTS)bookworm5.0.2-5vulnerable
bookworm (security)5.0.2-5+deb12u2fixed
trixie (security), trixie5.0.2+git20231211.1364ae4-9+deb13u1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
incussourcetrixie6.0.4-2+deb13u2DSA-6051-1
incussource(unstable)6.0.5-4
lxdsourcebookworm5.0.2-5+deb12u2DSA-6057-1
lxdsource(unstable)(unfixed)

Notes

[trixie] - lxd <ignored> (File system ID mapping is broken with Kernel 6.9+ making CVE-2025-64507 unexploitable)
https://github.com/lxc/incus/security/advisories/GHSA-56mx-8g9f-5crf
https://github.com/lxc/incus/issues/2641
Fixed by: https://github.com/lxc/incus/pull/2642
Followup: https://github.com/lxc/incus/pull/2643
https://github.com/canonical/lxd/security/advisories/GHSA-3g2j-vm47-x4mj
Fixed by: https://github.com/canonical/lxd/pull/16904

Search for package or bug name: Reporting problems