Skip to content
OpenAdvisories
Critical · 9.1 CVE-2026-34177 EUVD-2026-20872GHSA-fm2x-c5qw-4h6fGO-2026-5368

VM lowlevel restriction bypass via raw.apparmor and raw.qemu.conf

Published Apr 9, 2026 · Updated Apr 9, 2026 · Assigned by canonical

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 products

VendorProductAffectedFixed
Canonical lxd 4.12.0 – < 5.0.7, 5.1.0 – < 5.21.5, 6.0.0 – < 6.8.0 5.0.7

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 incus 6.0.2-1 —
Debian 13 incus 6.0.2-1 —
Debian 13 lxd 5.0.2+git20231211.1364ae4-9+deb13u5 —
Debian 12 lxd No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS incus No fix yet —
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 govulncheck-vulndb 0.0.20260827T195228-160000.1.1 SUSE-SU-2026:23625-1
SLES 16.0 govulncheck-vulndb 0.0.20260827T195228-160000.1.1 SUSE-SU-2026:23625-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260827T195228-160000.1.1 openSUSE-SU-2026:21761-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/canonical/lxd >= 0.0.0-20210305023314-538ac3df036e, <= 0.0.0-20260226085519-736f34afb267 — GHSA-fm2x-c5qw-4h6f
Go github.com/canonical/lxd >= 0.0.0-20210305023314-538ac3df036e — GO-2026-5368

Advisories 2

References