Vulnerability · Published Apr 9, 2026 · Assigned by canonical
CVE-2026-34177VM lowlevel restriction bypass via raw.apparmor and raw.qemu.conf
Critical 9.1
In plain English
A critical-severity security flaw in lxd from Canonical. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 31% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Canonical LXD versions 4.12 through 6.7 contain an incomplete denylist in isVMLowLevelOptionForbidden (lxd/project/limits/permissions.go), which omits raw.apparmor and raw.qemu.conf from the set of keys blocked under the restricted.virtual-machines.lowlevel=block project restriction. A remote attacker with can_edit permission on a VM instance in a restricted project can inject an AppArmor rule and a QEMU chardev configuration that bridges the LXD Unix socket into the guest VM, enabling privilege escalation to LXD cluster administrator and subsequently to host root.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | incus | 6.0.2-1 | DEBIAN-CVE-2026-34177 |
| Debian:14 | incus | 6.0.2-1 | DEBIAN-CVE-2026-34177 |
| Debian:12 | lxd | no fix listed | DEBIAN-CVE-2026-34177 |
| Debian:13 | lxd | 5.0.2+git20231211.1364ae4-9+deb13u5 | DEBIAN-CVE-2026-34177 |
| Go | github.com/canonical/lxd | no fix listed | GHSA-fm2x-c5qw-4h6f |
| Go | github.com/canonical/lxd | no fix listed | GO-2026-5368 |
Affected products (as reported)
Weakness: CWE-184 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
References
- VM lowlevel restriction bypass via raw.apparmor and raw.qemu.conf vdb-entry, vendor-advisory
- lxd: Prevent use of raw.apparmor and raw.qemu.conf when low level options are blocked patch, issue-tracking