Skip to content

[Laptop 13 Pro] Core Ultra Series 3: BIOS 03.04 Secure Boot pre-check measures the boot loader into PCR4 before ReadyToBoot, breaking Ubuntu TPM-backed FDE #325

Backlog

Description

@lorek123

System Model or SKU

Framework Laptop 13 (Intel® Core™ Ultra Series 3)

BIOS Version

03.04

DIY Edition Information

No response

Port/Peripheral Information

No response

Standalone Operation

Full System, Standalone mode NOT enabled (normal usage)

Describe the Bug

Since BIOS 03.04, the boot loader is measured into the TPM twice: once before ReadyToBoot and once after it. Measured-boot tools treat the first measurement as an unexpected application running before the OS. Because of this, Ubuntu's installer won't offer TPM-backed full-disk encryption on this laptop.

This seems to come from the new Secure Boot prompt in 03.04 ("Updated Secure Boot screen prompt behavior when an unsigned Linux boot media is detected"). To decide whether to show the prompt, the firmware does a trial LoadImage() of the boot option before ReadyToBoot. That load is verified and measured like any other, adding a PCR7 authority event and a PCR4 measurement. Then the real boot signals ReadyToBoot and loads the image again. 03.02 doesn't do the trial load.

Relevant part of the TCG event log (/sys/kernel/security/tpm0/binary_bios_measurements), with identifiers shortened:

PCR7  EV_EFI_VARIABLE_AUTHORITY        db: Microsoft Corporation UEFI CA 2011
PCR4  EV_EFI_BOOT_SERVICES_APPLICATION ...\NVMe(…)\HD(1,GPT,…)\\EFI\ubuntu\shimx64.efi   <- trial load
PCR4  EV_EFI_ACTION                    "Calling EFI Application from Boot Option"
PCR0-6 EV_SEPARATOR
PCR4  EV_EFI_BOOT_SERVICES_APPLICATION ...\NVMe(…)\HD(1,GPT,…)\\EFI\ubuntu\shimx64.efi   <- real boot, same digest

The same thing happens when booting the Ubuntu live USB from the F12 menu (\EFI\BOOT\BOOTX64.EFI).

Steps To Reproduce

  1. Update to BIOS 03.04, with Secure Boot enabled and the default keys.
  2. Boot any shim-based Linux, for example Ubuntu 26.04.1 from NVMe or from the live USB.
  3. Run sudo tcglog-dump (or read /sys/kernel/security/tpm0/binary_bios_measurements with any TCG log parser) and look at the PCR4 events before the EV_SEPARATOR events.
  4. Optionally, try installing Ubuntu 26.04.1 with "hardware-backed encryption". It's unavailable (PCR_UNUSABLE). The first error is an unrelated secboot limitation, fixed in efi,efi/preinstall: Support firmware that implements timestamp revocation or OS recovery canonical/secboot#580; with that fix applied, this PCR4 measurement is the next error.

Expected Behavior

The boot loader is measured into PCR4 only after ReadyToBoot and the EV_SEPARATOR events, as described in the TCG PC Client Platform Firmware Profile spec and as on 03.02. The Secure Boot prompt can stay; only the extra measurement before ReadyToBoot is the problem. Possible ways to keep the prompt without it:

  • signal ReadyToBoot first and do a single LoadImage() of the boot option. If it fails with a security violation, show the prompt; otherwise start the image that was already loaded, instead of loading it again;
  • or check the signature without a measured LoadImage().

The trial-loaded image also doesn't seem to be unloaded when the check passes.

Screenshots

No response

Operating System

Ubuntu 26.04.1 LTS

Linux Kernel Version

7.0.0-44-generic

Additional Context

  • Forum topic with more detail: https://community.frame.work/t/86649
  • I compared the 03.02 and 03.04 capsules from LVFS. The TPM and image-verification modules are identical; only the boot manager (BdsDxe) changed, with the new prompt and SecureBootEnforce handling. That's where the trial LoadImage() comes from.
  • Workaround on the Ubuntu side: efi: support firmware that measures the boot option before ReadyToBoot canonical/secboot#596 (together with #580). With both, secboot's compatibility check passes on this laptop and the predicted PCR4 and PCR7 values match the TPM. A firmware fix would still help any other tool that predicts PCR4.
  • Windows/BitLocker is probably unaffected, because by default it seals to PCR7 and PCR11, not PCR4.
  • I can share the full event log privately.

I used an AI assistant (Claude) for the firmware analysis and to help write this up. I checked everything here on my own laptop.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions