Uefi 20261127 patches
The following changes since commit 9751c62358073580cbf330a4df22077a7c6a407c:
Update version for v11.2.0-rc2 release (2026-11-25 21:39:27 -0800)
are available in the Git repository at:
https://gitlab.com/kraxel/qemu.git tags/uefi-20261127-pull-request
for you to fetch changes up to 363d7b2828155f8ae6a9be441452ef17c047cba0:
hw/uefi: accept a PK enrolled in setup mode (2026-11-27 09:54:23 +0100)
----------------------------------------------------------------
hw/uefi: pk enroll bugfix
----------------------------------------------------------------
Martin Pitt (1):
hw/uefi: accept a PK enrolled in setup mode
hw/uefi/var-service-auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.56.1
[PULL 1/1] hw/uefi: accept a PK enrolled in setup mode
From: Martin Pitt <[email protected]>
uefi_vars_check_auth_2_sb() returns an efi_status. Commit cc3cf42e618a changed it to return "true" for the "no self-signed PK is required" code path. That value 1 is interpreted as EFI_WARN_UNKNOWN_GLYPH, so uefi_vars_mm_set_variable() rejects the write, and the guest can never enroll its own PK. Return the correct code to fix this.
Since commit a1b96fcde870 ("hw/uefi: improve default config security") a self-signed PK is not required by default. This bug can be worked around by forcing the still working old code path:
-global uefi-vars-sysbus.require-self-signed-pk=on
Message-ID: <[email protected]>
--- hw/uefi/var-service-auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/uefi/var-service-auth.c +1 -1
@@ -214,7 +214,7 @@ static efi_status uefi_vars_check_auth_2_sb(uefi_vars_state *uv, };return uefi_vars_check_pkcs7_2 (&tmp,NULL ,NULL , va, data); }else { -return true; +return EFI_SUCCESS ; } }
Signature · 1 line
2.56.1
Richard Henderson
AppliedQuoted 6 lines · Gerd Hoffmann
The following changes since commit
9751c62358073580cbf330a4df22077a7c6a407c:Update version for v11.2.0-rc2 release (2026-11-25 21:39:27 -0800)are available in the Git repository at:
Quoted 8 lines
https://gitlab.com/kraxel/qemu.git tags/uefi-20261127-pull-requestfor you to fetch changes up to
363d7b2828155f8ae6a9be441452ef17c047cba0:hw/uefi: accept a PK enrolled in setup mode (2026-11-27 09:54:23 +0100)
----------------------------------------------------------------
hw/uefi: pk enroll bugfix
Applied, thanks.
r~