LXD and Incus local root flaws: patch shared hosts first
Canonical's LXD advisory rates local root escalation High (8.8). Fixed in 4.0.16, 5.0.12, 5.21.10 and 6.10.2. Shared container hosts should patch first.

Canonical’s LXD project published a security advisory on November 26 covering several ways a local, unprivileged user can become root on the host. It is rated High, with a CVSS score of 8.8. The advisory was copied from the matching Incus advisory, so Incus hosts are in scope too.
What to do
- Upgrade LXD to 4.0.16, 5.0.12, 5.21.10 or 6.10.2, depending on your release line. The advisory lists every version from 4.0 onward as affected.
- Check Incus separately. The LXD text says it came from Incus advisory GHSA-p8fx-6xxm-25wh. Take the fixed release from the Incus project, not from the LXD list above.
- Audit who has local access. Do not put untrusted accounts in the incus group.
- Review proxy devices. Avoid ones that listen on a unix socket in a directory other users can write to.
What is wrong
The advisory describes four places where the daemon and its helpers run as root and trust something a local user controls:
- During an rsync transfer of an instance or volume, the sending side accepts the first connection on an abstract unix socket without checking who connected.
- Proxy devices that listen on a host unix socket set the socket’s owner and mode by path. The generated AppArmor profile writes the resolved socket paths in as is.
- The directory that holds a container on the storage pool is what keeps local users away from setuid files in its root filesystem. Whoever supplied the container’s content can set that directory’s owner, through a migration, an image or a backup.
- While a container starts or a disk is hot-plugged, the disk source is briefly mounted under a path any local user can traverse, with setuid bits still honored.
The advisory says a member of the incus group who only has access to their own restricted project through incus-user can reach root. Both routes it describes work with the project and profile exactly as incus-user creates them.
A local user with no Incus group membership has more limited options. They can read an instance or volume while it is copied, moved, refreshed or migrated with rsync. They can take ownership of host files when a proxy device listens in a directory they can write to. They can add rules to an AppArmor profile or stop a container from starting. They can run setuid files from another user’s custom volume through the staging mount.
Those last four need an administrator or another user to start a transfer or an instance, or to have configured the proxy device. The local attacker cannot trigger them alone.
Priority call
Patch multi-tenant hosts first: shared build machines, lab servers, and anything that gives people incus-user access. A single-admin box with no other local accounts can wait for its normal window. I found no report of exploitation in the sources I read, so this is a priority for hosts with untrusted local users and not an emergency for everyone else.
If you cannot patch yet, the advisory offers two mitigations. Mounting the filesystem that holds the Incus directory with nosuid blocks the setuid-based escalations, but containers then lose setuid support too unless they use idmapped mounts on a separate filesystem. The rsync transfer socket has no workaround other than keeping untrusted local users off hosts that use rsync-based transfers (dir, lvm and cross-driver copies).
For another root-level Linux server flaw this week, see our piece on NFS2ROOT. More container and platform coverage sits in the cloud hub.
Found this useful? Share it.


