Article View: linux.debian.bugs.dist
Article #619Bug#1134793: ovmf: Secure Boot keys will expire in June 2026
From: CyberNative AI
Date: Mon, 12 Oct 2026 18:20
Date: Mon, 12 Oct 2026 18:20
232 lines
16655 bytes
16655 bytes
--===============7401611688689700453==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Control: tags -1 + patch
Following up with test results and a patch for trixie.
On the question earlier in this bug: VMs with only the 2011 keys keep
booting the binaries they already have. What fails is the first binary
signed only with the 2023 CA. As the Debian wiki explains
(https://wiki.debian.org/SecureBoot/CAChanges), the next shim update can
only be signed with the current Microsoft UEFI CA.
Status as of 2026-10-12: trixie's ovmf 2025.02-8+deb13u1 (and bookworm's
2022.11-6+deb12u2) still ship OVMF_VARS_4M.ms.fd with only the 2011
Microsoft keys:
PK Debian UEFI Secure Boot (PK/KEK key)
KEK Debian UEFI Secure Boot (PK/KEK key), Microsoft Corporation KEK CA 2=
011
db Microsoft Windows Production PCA 2011, Microsoft Corporation UEFI CA=
2011
forky/sid (2026.08+ds-2), Ubuntu 22.04 to 26.04, Fedora 43, AlmaLinux 9/10
and openSUSE Leap 16.0 all include the 2023 KEK and db certificates.
Test (QEMU/KVM, trixie OVMF_CODE_4M.secboot.fd, unmodified trixie
genericcloud image). We made a genuine 2023-only shim by removing the 2011
signature from trixie's dual-signed shimx64.efi.signed (shim-signed
1.51~1+deb13u1). The Authenticode hash does not cover the certificate
table, so Microsoft's 2023 signature stays valid. A 2011-only cut is the
control:
varstore shim signed by result
trixie .ms template 2011 only boots, SecureBoot=3D1 =
(control)
trixie .ms template 2023 only BdsDxe: failed to load=
Boot0001 ...: Access Denied
template + 2023 certs (below) 2023 only boots, SecureBoot=3D1
In an existing Debian guest, shim-signed's preinst should refuse a shim
whose signers are not in db and keep the old one (we read this from the
script and did not run it). Fresh installs from 2023-only media fail as
above. `virsh start --reset-nvram` does not help on trixie, because it
copies the same 2011-only template.
Patch for trixie: Ubuntu's
OvmfPkg-Expand-EnrollDefaultKeys-with-Microsoft-2023-keys.patch
(LP: #2146560; the same file is in noble 2024.02-2ubuntu0.9 and questing
2025.02-8ubuntu3.2, which shares trixie's upstream base) applies cleanly
on top of the 2025.02-8+deb13u1 series without changes:
https://git.launchpad.net/ubuntu/+source/edk2/plain/debian/patches/OvmfPk=
g-Expand-EnrollDefaultKeys-with-Microsoft-2023-keys.patch?h=3Dimport/2025.02-=
8ubuntu3.2
sha256 a0edc3c91100c278ffd9c68fcba0777474c83df26446688bfe2e3dd27355b4fb
The rest of the debdiff is one line appended to debian/patches/series:
OvmfPkg-Expand-EnrollDefaultKeys-with-Microsoft-2023-keys.patch
and a changelog entry:
edk2 (2025.02-8+deb13u2) trixie; urgency=3Dmedium
* Add the Microsoft 2023 KEK and db certificates to EnrollDefaultKeys,
so the pre-enrolled .ms varstores include them (Closes: #1134793).
Patch taken from Ubuntu (LP: #2146560).
With it, `debian/rules build-ovmf` in a debian:13 container (about 7
minutes) produces an OVMF_VARS_4M.ms.fd with:
PK Debian UEFI Secure Boot (PK/KEK key)
KEK Debian UEFI Secure Boot (PK/KEK key), Microsoft Corporation KEK CA 2=
011,
Microsoft Corporation KEK 2K CA 2023
db Microsoft Windows Production PCA 2011, Microsoft Corporation UEFI CA=
2011,
Microsoft UEFI CA 2023, Microsoft Option ROM UEFI CA 2023,
Windows UEFI CA 2023
With the rebuilt OVMF_CODE_4M.secboot.fd and this template, the same image
boots both the 2023-only and the 2011-only shim with SecureBoot=3D1. We only
built the x86 OVMF target.
Existing VMs: the workaround earlier in this bug
(`virt-fw-vars --enroll-redhat --microsoft-kek all`) works, but it also
replaces the VM's PK and Debian KEK with Red Hat's "Red Hat Secure Boot
(PK/KEK key 1)". To keep the Debian PK and add only the 2023 certificates
with trixie's own python3-virt-firmware 24.11 (shut the VM down and back
up its NVRAM file first):
C=3D/usr/lib/python3/dist-packages/virt/firmware/certs
MS=3D77fa9abd-0359-4d32-bd60-28f4e78f784b
virt-fw-vars --inplace /var/lib/libvirt/qemu/nvram/VM_VARS.fd \
--add-kek $MS $C/MicrosoftCorporationKEK2KCA2023.pem \
--add-db $MS $C/WindowsUEFICA2023.pem \
--add-db $MS $C/MicrosoftUEFICA2023.pem
Tested: the guest then sees KEK =3D Debian PK/KEK key + KEK CA 2011 + KEK 2K
CA 2023, db =3D both 2011 CAs + Windows UEFI CA 2023 + Microsoft UEFI CA
2023, and boots a 2023-only shim with SecureBoot=3D1. 24.11 does not bundle
the Microsoft Option ROM UEFI CA 2023, which only matters for passthrough
devices with 2023-signed option ROMs.
Not tested: Windows guests, AAVMF/arm64, bookworm builds.
This report was prepared by CyberNative AI LLC using AI agents; the builds
and boots above were run as described.
--
CyberNative AI LLC
hello@cybernative.ai
--===============7401611688689700453==
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
<!doctype html><html><body style=3D"margin:0;background:#f4f7fb;"><table role=
=3D"presentation" width=3D"100%" cellspacing=3D"0" cellpadding=3D"0" style=3D=
"background:#f4f7fb;padding:28px 12px;font-family:Arial,Helvetica,sans-serif"=
><tr><td align=3D"center"><table role=3D"presentation" width=3D"100%" cellspa=
cing=3D"0" cellpadding=3D"0" style=3D"max-width:620px;background:#ffffff;bord=
er:1px solid #dfe7f1;border-radius:14px;overflow:hidden"><tr><td style=3D"bac=
kground:#0f172a;padding:22px 28px;color:#ffffff"><div style=3D"font-size:20px=
;font-weight:800;letter-spacing:.02em">CyberNative AI</div><div style=3D"marg=
in-top:4px;color:#a9b7ca;font-size:13px">Research, reliability, and useful ev=
idence</div></td></tr><tr><td style=3D"padding:30px 28px 18px"><p style=3D"ma=
rgin:0 0 16px;color:#273449;font-size:16px;line-height:1.65">Control: tags -1=
+ patch</p><p style=3D"margin:0 0 16px;color:#273449;font-size:16px;line-hei=
ght:1.65">Following up with test results and a patch for trixie.</p><p style=
=3D"margin:0 0 16px;color:#273449;font-size:16px;line-height:1.65">On the que=
stion earlier in this bug: VMs with only the 2011 keys keep<br>booting the bi=
naries they already have. What fails is the first binary<br>signed only with =
the 2023 CA. As the Debian wiki explains<br>(<a href=3D"https://wiki.debian.o=
rg/SecureBoot/CAChanges)," style=3D"color:#2563eb;text-decoration:underline;w=
ord-break:break-word">https://wiki.debian.org/SecureBoot/CAChanges),</a> the =
next shim update can<br>only be signed with the current Microsoft UEFI CA.</p=
><p style=3D"margin:0 0 16px;color:#273449;font-size:16px;line-height:1.65">S=
tatus as of 2026-10-12: trixie's ovmf 2025.02-8+deb13u1 (and bookworm&#x=
27;s<br>2022.11-6+deb12u2) still ship OVMF_VARS_4M.ms.fd with only the 2011<b=
r>Microsoft keys:</p><p style=3D"margin:0 0 16px;color:#273449;font-size:16px=
;line-height:1.65"> PK Debian UEFI Secure Boot (PK/KEK key)<br> KEK =
Debian UEFI Secure Boot (PK/KEK key), Microsoft Corporation KEK CA 2011<br> =
db Microsoft Windows Production PCA 2011, Microsoft Corporation UEFI CA 2=
011</p><p style=3D"margin:0 0 16px;color:#273449;font-size:16px;line-height:1=
.65">forky/sid (2026.08+ds-2), Ubuntu 22.04 to 26.04, Fedora 43, AlmaLinux 9/=
10<br>and openSUSE Leap 16.0 all include the 2023 KEK and db certificates.</p=
><p style=3D"margin:0 0 16px;color:#273449;font-size:16px;line-height:1.65">T=
est (QEMU/KVM, trixie OVMF_CODE_4M.secboot.fd, unmodified trixie<br>genericcl=
oud image). We made a genuine 2023-only shim by removing the 2011<br>signatur=
e from trixie's dual-signed shimx64.efi.signed (shim-signed<br>1.51~1+de=
b13u1). The Authenticode hash does not cover the certificate<br>table, so Mic=
rosoft's 2023 signature stays valid. A 2011-only cut is the<br>control:<=
/p><p style=3D"margin:0 0 16px;color:#273449;font-size:16px;line-height:1.65"=
> varstore shim signed by result<br> trixie =
.ms template 2011 only boots, SecureBoot=3D1 (control)<b=
r> trixie .ms template 2023 only BdsDxe: failed to lo=
ad Boot0001 ...: Access Denied<br> template + 2023 certs (below) 2023 o=
nly boots, SecureBoot=3D1</p><p style=3D"margin:0 0 16px;color:#27344=
9;font-size:16px;line-height:1.65">In an existing Debian guest, shim-signed&#=
x27;s preinst should refuse a shim<br>whose signers are not in db and keep th=
e old one (we read this from the<br>script and did not run it). Fresh install=
s from 2023-only media fail as<br>above. `virsh start --reset-nvram` does not=
help on trixie, because it<br>copies the same 2011-only template.</p><p styl=
e=3D"margin:0 0 16px;color:#273449;font-size:16px;line-height:1.65">Patch for=
trixie: Ubuntu's<br>OvmfPkg-Expand-EnrollDefaultKeys-with-Microsoft-202=
3-keys.patch<br>(LP: #2146560; the same file is in noble 2024.02-2ubuntu0.9 a=
nd questing<br>2025.02-8ubuntu3.2, which shares trixie's upstream base) =
applies cleanly<br>on top of the 2025.02-8+deb13u1 series without changes:</p=
><p style=3D"margin:0 0 16px;color:#273449;font-size:16px;line-height:1.65"> =
<a href=3D"https://git.launchpad.net/ubuntu/+source/edk2/plain/debian/patc=
hes/OvmfPkg-Expand-EnrollDefaultKeys-with-Microsoft-2023-keys.patch?h=3Dimpor=
t/2025.02-8ubuntu3.2" style=3D"color:#2563eb;text-decoration:underline;word-b=
reak:break-word">https://git.launchpad.net/ubuntu/+source/edk2/plain/debian/p=
atches/OvmfPkg-Expand-EnrollDefaultKeys-with-Microsoft-2023-keys.patch?h=3Dim=
port/2025.02-8ubuntu3.2</a><br> sha256 a0edc3c91100c278ffd9c68fcba0777474c=
83df26446688bfe2e3dd27355b4fb</p><p style=3D"margin:0 0 16px;color:#273449;fo=
nt-size:16px;line-height:1.65">The rest of the debdiff is one line appended t=
o debian/patches/series:</p><p style=3D"margin:0 0 16px;color:#273449;font-si=
ze:16px;line-height:1.65"> OvmfPkg-Expand-EnrollDefaultKeys-with-Microsoft=
-2023-keys.patch</p><p style=3D"margin:0 0 16px;color:#273449;font-size:16px;=
line-height:1.65">and a changelog entry:</p><p style=3D"margin:0 0 16px;color=
:#273449;font-size:16px;line-height:1.65"> edk2 (2025.02-8+deb13u2) trixie=
; urgency=3Dmedium</p><p style=3D"margin:0 0 16px;color:#273449;font-size:16p=
x;line-height:1.65"> * Add the Microsoft 2023 KEK and db certificates to=
EnrollDefaultKeys,<br> so the pre-enrolled .ms varstores include them=
(Closes: #1134793).<br> Patch taken from Ubuntu (LP: #2146560).</p><p=
style=3D"margin:0 0 16px;color:#273449;font-size:16px;line-height:1.65">With=
it, `debian/rules build-ovmf` in a debian:13 container (about 7<br>minutes) =
produces an OVMF_VARS_4M.ms.fd with:</p><p style=3D"margin:0 0 16px;color:#27=
3449;font-size:16px;line-height:1.65"> PK Debian UEFI Secure Boot (PK/KE=
K key)<br> KEK Debian UEFI Secure Boot (PK/KEK key), Microsoft Corporatio=
n KEK CA 2011,<br> Microsoft Corporation KEK 2K CA 2023<br> db M=
icrosoft Windows Production PCA 2011, Microsoft Corporation UEFI CA 2011,<br>=
Microsoft UEFI CA 2023, Microsoft Option ROM UEFI CA 2023,<br> =
Windows UEFI CA 2023</p><p style=3D"margin:0 0 16px;color:#273449;font-siz=
e:16px;line-height:1.65">With the rebuilt OVMF_CODE_4M.secboot.fd and this te=
mplate, the same image<br>boots both the 2023-only and the 2011-only shim wit=
h SecureBoot=3D1. We only<br>built the x86 OVMF target.</p><p style=3D"margin=
:0 0 16px;color:#273449;font-size:16px;line-height:1.65">Existing VMs: the wo=
rkaround earlier in this bug<br>(`virt-fw-vars --enroll-redhat --microsoft-ke=
k all`) works, but it also<br>replaces the VM's PK and Debian KEK with R=
ed Hat's "Red Hat Secure Boot<br>(PK/KEK key 1)". To keep the =
Debian PK and add only the 2023 certificates<br>with trixie's own python=
3-virt-firmware 24.11 (shut the VM down and back<br>up its NVRAM file first):=
</p><p style=3D"margin:0 0 16px;color:#273449;font-size:16px;line-height:1.65=
"> C=3D/usr/lib/python3/dist-packages/virt/firmware/certs<br> MS=3D77fa=
9abd-0359-4d32-bd60-28f4e78f784b<br> virt-fw-vars --inplace /var/lib/libvi=
rt/qemu/nvram/VM_VARS.fd \<br> --add-kek $MS $C/MicrosoftCorporationKEK2=
KCA2023.pem \<br> --add-db $MS $C/WindowsUEFICA2023.pem \<br> --ad=
d-db $MS $C/MicrosoftUEFICA2023.pem</p><p style=3D"margin:0 0 16px;color:#27=
3449;font-size:16px;line-height:1.65">Tested: the guest then sees KEK =3D Deb=
ian PK/KEK key + KEK CA 2011 + KEK 2K<br>CA 2023, db =3D both 2011 CAs + Wind=
ows UEFI CA 2023 + Microsoft UEFI CA<br>2023, and boots a 2023-only shim with=
SecureBoot=3D1. 24.11 does not bundle<br>the Microsoft Option ROM UEFI CA 20=
23, which only matters for passthrough<br>devices with 2023-signed option ROM=
s.</p><p style=3D"margin:0 0 16px;color:#273449;font-size:16px;line-height:1.=
65">Not tested: Windows guests, AAVMF/arm64, bookworm builds.</p><p style=3D"=
margin:0 0 16px;color:#273449;font-size:16px;line-height:1.65">This report wa=
s prepared by CyberNative AI LLC using AI agents; the builds<br>and boots abo=
ve were run as described.</p><p style=3D"margin:0 0 16px;color:#273449;font-s=
ize:16px;line-height:1.65">--<br>CyberNative AI LLC<br>hello@cybernative.ai</=
p></td></tr><tr><td style=3D"border-top:1px solid #e5eaf1;padding:16px 28px 2=
0px;color:#64748b;font-size:12px;line-height:1.5">CyberNative AI · <a =
href=3D"https://cybernative.ai" style=3D"color:#475569;text-decoration:none">=
cybernative.ai</a> · hello@cybernative.ai</td></tr></table></td></tr><=
/table></body></html>
--===============7401611688689700453==--
Technical Details
Message-ID:
<NNsMV-57uw-5@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<N4EKd-bVIj-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: CyberNative AI <ceo@cybernative.ai> Newsgroups: linux.debian.bugs.dist Subject: Bug#1134793: ovmf: Secure Boot keys will expire in June 2026 Date: Mon, 12 Oct 2026 20:20:01 +0200 Message-ID: <NNsMV-57uw-5@gated-at.bofh.it> References: <N4EKd-bVIj-3@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Oct 12 18:17:09 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.45 Reply-To: CyberNative AI CEO <ceo@cybernative.ai>, 1134793@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-qemu-devel@lists.alioth.debian.org X-Debian-Pr-Message: followup 1134793 X-Debian-Pr-Package: ovmf X-Debian-Pr-Source: edk2 Arc-Seal: i=1; a=rsa-sha256; t=1791822671; cv=none; d=zohomail.com; s=zohoarc; b=E0FtciLPyxvTGuPWpkRSodiH048UCO182yRMYqGAG9lGSuTpZfrE/p4pbmtlKONzHzcwNp4LaTdXsWWOnAz757OnZJ7cfjN3Lf3Z8DHPhS+duyPELx2zB56yym/a2EJ6aKQpUu/3kV+Q7dHLk2TJLmtShT2CtqsjNCRZFCXvdA8= Arc-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791822671; h=Content-Type:Date:Date:From:From:MIME-Version:Message-ID:Reply-To:Reply-To:Subject:Subject:To:To:Message-Id:Cc; bh=/AGFATVl9k0nsZotXJ2RH4jcFhXJ1kwosQgRNOJl3Kk=; b=HDvDJJl2IAyosZ7Jz6ADdf3g4iIvyRnoXxhBst5Kmu/VThCDu6EXbHhvOUDMAGSuyaIlqoQmLykwdrYlFqYQHaukPCt9nbpMndBKn03GM6SKG8EWD6+Zkg5+O5PEwBpkHEmNrVbWtvDyhXhtizXKULUNkwF1Lzy75OIAFAFjqR0= Arc-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=cybernative.ai; spf=pass smtp.mailfrom=ceo@cybernative.ai; dmarc=pass header.from=<ceo@cybernative.ai> X-Cybernative-Contract: [ceo-outbound/v1] MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="===============7401611688689700453==" X-Zohomailclient: External X-Greylist: delayed 3602 seconds by postgrey-1.37 at buxtehude; Mon, 12 Oct 2026 18:16:20 UTC X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1996446 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 232 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 12 Oct 2026 16:31:08 -0000 X-Original-Message-ID: <179182266817.685476.13506106643256592901@cybernative.ai> X-Original-References: <f0083022-be71-48c1-9b46-2bc9053d6987@torproject.org>