shim is a trivial EFI application that, when run, attempts to open and
execute another application.
Provides
Requires
License
BSD-2-Clause
Changelog
* Thu Oct 29 2026 jlee@suse.com
- Update shim RPMs for new shim-install
- RPMs
shim-16.1-150300.4.42.1.x86_64.rpm
shim-debuginfo-16.1-150300.4.42.1.x86_64.rpm
shim-debugsource-16.1-150300.4.42.1.x86_64.rpm
shim-16.1-150300.4.42.1.aarch64.rpm
shim-debuginfo-16.1-150300.4.42.1.aarch64.rpm
shim-debugsource-16.1-150300.4.42.1.aarch64.rpm
- submitreq: https://build.suse.de/request/show/428896
- repo:
https://build.suse.de/package/show/SUSE:Maintenance:46192/shim.SUSE_SLE-15-SP3_Update
- Repackaging shim-install to child RPM.
- shim-install: separate the logic of grabbing OS_ID
When the GRUB_DISTRIBUTOR can be grab by /etc/default/grub.
(bsc#1285863#c14)
* Thu Oct 08 2026 jlee@suse.com
- Update to 16.1 nx-shim
- RPMs
shim-16.1-150300.4.31.1.x86_64.rpm
shim-debuginfo-16.1-150300.4.31.1.x86_64.rpm
shim-debugsource-16.1-150300.4.31.1.x86_64.rpm
shim-16.1-150300.4.31.1.aarch64.rpm
shim-debuginfo-16.1-150300.4.31.1.aarch64.rpm
shim-debugsource-16.1-150300.4.31.1.aarch64.rpm
- submitreq: https://build.suse.de/request/show/426267
- repo: https://build.suse.de/package/show/SUSE:Maintenance:46192/shim.SUSE_SLE-15-SP3_Update
shim.spec: Removed the override shim-install
- Removed the override shim-install. Let's direct use the
shim-install script from shim-16.1*.rpm.
References: d2b0f6f77ee5 ("Apply nx-shim, create non-nx
shim boot entry") in src.opensuse.org/shim-leap
New shim-install includes the following changes:
- f78b88d6060 Update shim-install to limit the scope of the 'removable'
SL-Micro to the image booting with TPM2 unsealing (bsc#1210382)
from src.opensuse.org/shim
- 661ad2944d2a shim-install: Do not update fallback on sl-micro when
the fallback is not in efi default boot path
- patch is from src.opensuse.org/shim git repo
- 5aff585bda6 Apply nx-shim, create non-nx shim boot entry
from openSUSE:Factory/shim
- Create non-nx shim boot entry as a fallback option
Because we apply nx shim as the default shim binary in
/boot/efi/EFI/opensuse/shim.efi
/boot/efi/EFI/boot/bootx64.efi or bootaa64.efi
In case that user got any problem when the machine boots with
nx-shim, so we create a new boot entry for non-nx shim as a
fallback option by efibootmgr.
- b5c000a0d2cb shim-install: Create non-NX shim boot entry first to
prioritize NX shim
- Use the NX shim as the default binary for system booting. By
creating the boot entry for the non-NX shim prior to the default
NX shim, the standard NX shim entry will automatically gain a
higher priority in the UEFI BootOrder. This ensures the system
boots using the secure NX shim by default while keeping the
non-NX shim as a fallback option.
- 805b17153f5d shim-install: Fix the variable name for the source of
non-nx shim
- 1ce3a89baefa shim-install: Create a white list of SUSE distros for
supporing nx shim
- Currently SLES-16-SP1 and openSUSE Tumbleweed support nx shim.
- shim.spec: f38c3e6d430 Modified the pretrans Lua script to work around
the broken DB issue caused by buggy firmware when Secure Boot is disabled.
It is impossible for the db to be empty while Secure Boot is enabled.
If the db is empty, the installation behavior will be treated the
same as when Secure Boot is disabled. We allow the shim installation
process to continue and display a message reminding the user to add
the appropriate certificate. (bsc#1259096)
- from src.opensuse.org/shim
- Add Requires tags for checking the grub2 sbat generation at RPM
level.
Please remember to update the grub_gen generation number in shim
spec file when the revoked GRUB2 generation number in the
SbatLevel_Variable.txt is modified. (bsc#1278729)
References: 4267692a1794 ("shim.spec: Add Requires tags for checking
the grub2 sbat generation at RPM level") in src.opensuse.org/shim
* Fri Jun 26 2026 glin@suse.com
- shim-install: Improve the detection of SL Micro
The GRUB_DISTRIBUTOR variable in SL Micro images may contain
"SL Micro" or "SL-Micro" prefix. (bsc#1269084)
* Tue Dec 16 2025 jlee@suse.com
- shim-install: Add ca_string for SL Micro to update fallback loader
The fallback loader, /boot/efi/EFI/BOOT/bootaa64.efi or bootx64.efi,
cannot be upgraded by shim-install on SL Micro. The issue case is
SL Micro 6.0. It causes that system gets regression bug because it's
fallback to a old shim. So this patch adds ca_string to SL Micro.
(bsc#1254336)
* Mon Dec 15 2025 jlee@suse.com
- Add DER format certificate files for the pretrans script to verify
that the necessary certificate is in the UEFI db
- openSUSE Secure Boot CA, 2013-2035
openSUSE_Secure_Boot_CA_2013.crt
- SUSE Linux Enterprise Secure Boot CA, 2013-2035
SUSE_Linux_Enterprise_Secure_Boot_CA_2013.crt
- Microsoft Corporation UEFI CA 2011, 2011-2026
Microsoft_Corporation_UEFI_CA_2011.crt
- Microsoft UEFI CA 2023, 2023-2038
Microsoft_UEFI_CA_2023.crt
- shim.spec: Add a pretrans script to verify that the necessary certificate
is in the UEFI db.
- Always put SUSE Linux Enterprise Secure Boot CA to target array.
(bsc#1254679)
* Fri Dec 12 2025 jlee@suse.com
- Update to 16.1
- RPMs
shim-16.1-150300.4.31.1.x86_64.rpm
shim-debuginfo-16.1-150300.4.31.1.x86_64.rpm
shim-debugsource-16.1-150300.4.31.1.x86_64.rpm
shim-16.1-150300.4.31.1.aarch64.rpm
shim-debuginfo-16.1-150300.4.31.1.aarch64.rpm
shim-debugsource-16.1-150300.4.31.1.aarch64.rpm
- submitreq: https://build.suse.de/request/show/395247
- repo: https://build.suse.de/package/show/SUSE:Maintenance:39913/shim.SUSE_SLE-15-SP3_Update
- Patches (git log --oneline --reverse 16.0..16.1)
4040ec4 shim_start_image(): fix guid/handle pairing when uninstalling protocols
39c0aa1 str2ip6(): parsing of "uncompressed" ipv6 addresses
3133d19 test-mock-variables: make our filter list entries safer.
d44405e mock-variables: remove unused variable
0e8459f Update CI to use ubuntu-24.04 instead of ubuntu-20.04
d16a5a6 SbatLevel_Variable.txt: minor typo fix.
32804cf Realloc() needs one more byte for sprintf()
431d370 IPv6: Add more check to avoid multiple double colon and illegal char
5e4d93c Loader Proto: make freeing of bprop.buffer conditional.
33deac2 Prepare to move things from shim.c to verify.c
030e7df Move a bunch of stuff from shim.c to verify.c
f3ddda7 handle_image(): make verification conditional
774f226 Cache sections of a loaded image and sub-images from them.
eb0d20b loader-protocol: handle sub-section loading for UKIs
2f64bb9 loader-protocol: add workaround for EDK2 2025.02 page fault on FreePages
1abc7ca loader-protocol: NULL output variable in load_image on failure
fb77b44 Generate Authenticode for the entire PE file
b86b909 README: mention new loader protocol and interaction with UKIs
8522612 ci: add mkosi configuration and CI
9ebab84 mkosi workflow: fix the branch name for main.
72a4c41 shim: change automatically enable MOK_POLICY_REQUIRE_NX
a2f0dfa This is an organizational patch to move some things around in mok.c
54b9946 Update to the shim-16.1 branch of gnu-efi to get AsciiSPrint()
a5a6922 get_max_var_sz(): add more debugging for apple platforms
77a2922 Add a "VariableInfo" variable to mok-variables.
efc71c9 build: Avoid passing *FLAGS to sub-make
7670932 Fixes for 'make TOPDIR=... clean'
13ab598 add SbatLevel entry 2025051000 for PSA-2025-00012-1
617aed5 Update version to 16.1~rc1
d316ba8 format_variable_info(): fix wrong size test.
f5fad0e _do_sha256_sum(): Fix missing error check.
3a9734d doc: add howto for running mkosi locally
ced5f71 mkosi: remove spurious slashes from script
0076155 ci: update mkosi commit
5481105 fix http boot
121cddf loader-protocol: Handle UnloadImage after StartImage properly
6a1d1a9 loader-protocol: Fix memory leaks
27a5d22 gitignore: add more mkosi dirs and vscode dir
346ed15 mkosi: disable repository key check on Fedora
afc4955 Update version to 16.1
- 16.1 release note https://github.com/rhboot/shim/releases
shim_start_image(): fix guid/handle pairing when uninstalling protocols by @vathpela in #738
Fix uncompressed ipv6 netboot by @hrvach in #742
fix test segfaults caused by uninitialized memory by @Fabian-Gruenbichler in #739
Update CI to use ubuntu-24.04 instead of ubuntu-20.04 by @vathpela in #749
SbatLevel_Variable.txt: minor typo fix. by @vathpela in #751
Realloc() needs to allocate one more byte for sprintf() by @dennis-tseng99 in #746
IPv6: Add more check to avoid multiple double colon and illegal char by @dennis-tseng99 in #753
Loader proto v2 by @vathpela in #748
loader-protocol: add workaround for EDK2 2025.02 page fault on FreePages by @bluca in #750
Generate Authenticode for the entire PE file by @esnowberg in #604
README: mention new loader protocol and interaction with UKIs by @bluca in #755
ci: add mkosi configuration and CI by @bluca in #764
shim: change automatically enable MOK_POLICY_REQUIRE_NX by @vathpela in #761
Save var info by @vathpela in #763
build: Avoid passing *FLAGS to sub-make by @rosslagerwall in #758
Fixes for 'make TOPDIR=... clean' by @bluca in #762
add SbatLevel entry 2025051000 for PSA-2025-00012-1 by @Fabian-Gruenbichler in #766
Coverity fixes 20250804 by @vathpela in #767
ci: fixlets and docs for mkosi workflow by @bluca in #768
fix http boot by @jsetje in #770
Fix double free and leak in the loader protocol by @rosslagerwall in #769
gitignore: add more mkosi dirs and vscode dir by @bluca in #771
- Drop upstreamed patch:
The following patches are merged to 16.1
- shim-alloc-one-more-byte-for-sprintf.patch
- 32804cf5d9 Realloc() needs one more byte for sprintf() [16.1]
- shim-change-automatically-enable-MOK_POLICY_REQUIRE_NX.patch (bsc#1205588)
- 72a4c41877 shim: change automatically enable MOK_POLICY_REQUIRE_NX [16.1]
- Building MokManager.efi and fallback.efi with POST_PROCESS_PE_FLAGS=-n (bsc#1205588)
- Building with the latest version of gcc in the codebase:
- The gcc13 can workaround dxe_get_mem_attrs() hsi_status problem
- We prefer that building shim with the latest version of gcc in codebase.
- Set the minimum version is gcc-13.
(bsc#1247432)
- SLE shim should includes vendor-dbx-sles.esl instead of
vendor-dbx-opensuse.esl. Fixed it in shim.spec.
* Tue Apr 22 2025 eugenio.paolantonio@suse.com
- Undefine %_enable_debug_packages to fix building with rpm-4.20
(backport of the fix from Factory in SR#1232808)
- Fix build with rpm 4.20 by copying the extracted directories
explicitly
* Thu Sep 19 2024 glin@suse.com
- Update shim-install to limit the scope of the 'removable'
SL-Micro to the image booting with TPM2 unsealing (bsc#1210382)
* 769e41d Limit the removable option to encrypted SL-Micro
* Mon Sep 16 2024 glin@suse.com
- Update shim-install to use the 'removable' way for SL-Micro
(bsc#1230316)
* 433cc4e Always use the removable way for SL-Micro
* Sun May 19 2024 dennis.tseng@suse.com
-- Update to version 15.8
- Various CVE fixes are already merged into this version
mok: fix LogError() invocation (bsc#1215099,CVE-2023-40546)
avoid incorrectly trusting HTTP headers (bsc#1215098,CVE-2023-40547)
Fix integer overflow on SBAT section size on 32-bit system (bsc#1215100,CVE-2023-40548)
Authenticode: verify that the signature header is in bounds (bsc#1215101,CVE-2023-40549)
pe: Fix an out-of-bound read in verify_buffer_sbat() (bsc#1215102,CVE-2023-40550)
pe-relocate: Fix bounds check for MZ binaries (bsc#1215103,CVE-2023-40551)
- remove shim-Enable-the-NX-compatibility-flag-by-default.patch
The codes in this patch are already existing in shim-15.8
The NX flag is disable which is same as the default value of shim-15.8,
hence, not need to enable it by this patch now.
- Patches (git log --oneline --reverse 15.7..15.8)
657b248 Make sbat_var.S parse right with buggy gcc/binutils
7c76425 Enable the NX compatibility flag by default.
89972ae CryptoPkg/BaseCryptLib: Fix buffer overflow issue in realloc wrapper
c7b3051 pe: Align section size up to page size for mem attr