CVE-2026-140084: lxd: Incorrect authorization in resource creation bypasses project isolation and allows host root
Incorrect authorization in the resource-creation endpoints in Canonical LXD 5.21.0 through 5.21.9 allows an authenticated fine-grained authorization (OpenFGA) user holding a create entitlement on a project to create resources in the unrestricted default project without permissions on it when the project's matching features. flag is disabled, bypassing project isolation and, by creating a bridge network in default configured with raw.dnsmasq, executing attacker-chosen code as root on the host.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Canonical LXD versions 5.21.0 through 5.21.9 are affected when fine-grained authorization using OpenFGA is in use, a user has create entitlement on a project, and that project's matching features.* flag is disabled.
What access does an attacker need to reach host-root code execution?
The attacker must be an authenticated OpenFGA user with permission to create resources in a project. They can bypass isolation to create a bridge network in the default project and configure raw.dnsmasq with attacker-chosen code, which executes as host root.
Is the unrestricted default project directly exposed by the user's existing entitlement?
No. The bypass allows a user entitled to create resources in another project to create resources in the default project even without permissions on that default project, under the affected feature-flag condition.