CVE-2026-136978: lxd: Exposure of resource to wrong sphere in instance file transfer API
Exposure of resource to wrong sphere in the instance file transfer API in Canonical LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2 allows an authenticated user with restricted project access to read and write arbitrary host block or character devices, compromise the host, and hang file transfer requests via importing device nodes or named pipes outside /dev in an image or backup and opening them on a stopped instance.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
lxdto a version that resolves this vulnerability.Fixed in 4.0.16 - Upgrade
Upgrade
lxdto a version that resolves this vulnerability.Fixed in 5.0.12 - Upgrade
Upgrade
lxdto a version that resolves this vulnerability.Fixed in 5.21.10 - Upgrade
Upgrade
lxdto a version that resolves this vulnerability.Fixed in 6.10.2
Event History
Frequently Asked Questions
Which deployments are exposed?
Deployments running Canonical LXD before 4.0.16, 5.0.12, 5.21.10, or 6.10.2 are affected when an authenticated user has restricted project access and can import an image or backup containing device nodes or named pipes outside /dev.
What does an attacker need to exploit this issue?
The attacker must be authenticated and have restricted project access. They need to import a crafted image or backup with block devices, character devices, or named pipes outside /dev, then open those objects on a stopped instance.
What could exploitation allow?
An attacker can read from and write to arbitrary host block or character devices, which can lead to host compromise. Crafted named pipes can also cause file-transfer requests to hang.
What can be done before updating LXD?
Limit restricted-project users' ability to import images or backups that contain device nodes or named pipes outside /dev. Avoid opening such imported objects on stopped instances until LXD is updated.