Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/lxc/incus-os/incus-osd
  4. ›
  5. CVE-2026-32606

CVE-2026-32606: IncusOS has a LUKS encryption bypass due to insufficient TPM policy

March 16, 2026 (updated March 19, 2026)

The default configuration of systemd-cryptenroll as used by IncusOS through mkosi allows for an attacker with physical access to the machine to access the encrypted data without requiring any interaction by the system’s owner or any tampering of Secure Boot state or kernel (UKI) boot image.

That’s because in this configuration, the LUKS key is made available by the TPM so long as the system has the expected PCR7 value and the PCR11 policy matches. That default PCR11 policy importantly allows for the TPM to release the key to the booted system rather than just from the initrd part of the signed kernel image (UKI).

The attack relies on the attacker being able to substitute the original encrypted root partition for one that they control. By doing so, the system will prompt for a recovery key on boot, which the attacker has defined and can provide, before booting the system using the attacker’s root partition rather than the system’s original one.

The attacker only needs to put a systemd unit starting on system boot within their root partition to have the system run that logic on boot. That unit will then run in an environment where the TPM will allow for the retrieval of the encryption key of the real root disk, allowing the attacker to steal the LUKS volume key (immutable master key) and then use it against the real root disk, altering it or getting data out before putting the disk back the way it was and returning the system without a trace of this attack having happened.

This is all possible because the system will have still booted with Secure Boot enabled, will have measured and ran the expected bootloader and kernel image (UKI). The initrd selects the root disk based on GPT partition identifiers making it possible to easily substitute the real root disk for an attacker controlled one. This doesn’t lead to any change in the TPM state and therefore allows for retrieval of the LUKS key by the attacker through a boot time systemd unit on their alternative root partition.

Reproducing steps are effectively:

  • Shutdown the system
  • Alter the GPT partition table to remove the GPT type UUID from the root partition
  • Resize the ESP partition to make space for the attacker’s own root partition
  • Create a new LUKS encrypted ext4 partition in the space that was freed up and set the GPT type UUID to that of the original root partition
  • Populate that new root partition with a systemd unit and script which use systemd-cryptenroll to unlock and extract the key from the original root partition
  • Boot the system
  • When prompted, enter the passphrase of the new (attacker) root partition
  • Let the system boot IncusOS
  • Stop the system
  • Recover the encryption key that was extracted by the boot time systemd unit
  • Access the original root partition using it, steal or modify the data
  • Remove the new (attacker) root partition
  • Grow back the ESP
  • Restore the GPT type UUID on the root partition
  • Start the system back up, it will boot as expected with no indication that it was compromised

References

  • discuss.linuxcontainers.org/t/potential-luks-encryption-bypass-through-filesystem-confusion/26348
  • github.com/advisories/GHSA-wj2j-qwcf-cfcc
  • github.com/lxc/incus-os
  • github.com/lxc/incus-os/commit/e3b35f230d23443d27752eac27ebb2b22c957b75
  • github.com/lxc/incus-os/pull/954
  • github.com/lxc/incus-os/security/advisories/GHSA-wj2j-qwcf-cfcc
  • nvd.nist.gov/vuln/detail/CVE-2026-32606
  • oddlama.org/blog/bypassing-disk-encryption-with-tpm2-unlock

Code Behaviors & Features

Detect and mitigate CVE-2026-32606 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.0-20260313012803-e3b35f230d23

Fixed versions

  • 0.0.0-20260313012803-e3b35f230d23

Solution

Upgrade to version 0.0.0-20260313012803-e3b35f230d23 or above.

Impact 7.6 HIGH

CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-522: Insufficiently Protected Credentials

Source file

go/github.com/lxc/incus-os/incus-osd/CVE-2026-32606.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:18:02 +0000.