Linux Lockdown and Hibernation (again)
Web page · https://codon.org.uk/~mjg59/blog/p/linux-lockdown-and-hibernation-again
First seen by Oriel on .
AI summary
The post describes a Linux patchset to allow hibernation under Lockdown by using TPM state and boot measurements to verify that the kernel created an unmodified hibernation image.
- Root can otherwise write a forged hibernation image to swap, which the kernel may resume into, bypassing Lockdown’s protection against userspace modifying kernel state.
- The design restricts userspace access to a TPM NV index, records the hibernation image hash there, and uses an audited TPM session to verify the hash on resume.
- A PCR 5 measurement made before UEFI ExitBootServices() is intended to distinguish kernels implementing the restriction from older kernels that attackers could use to forge images.
- A deterministic Attestation Key can be regenerated on resume to verify the TPM audit log without storing the key separately.
- The approach depends on firmware extending PCR 5 at ExitBootServices() and on userspace being unable to bypass the kernel when issuing raw TPM commands.
#linux kernel #tpm #secure boot #hibernation
Generated by gpt-5.6-sol. Check the original for details.
Aliases
| Source | External ID | URL |
|---|---|---|
| Lobsters | rrazyb | https://codon.org.uk/~mjg59/blog/p/linux-lockdown-and-hibernation-again/ Read discussion |