]> git.ipfire.org Git - thirdparty/grub.git/commit
kern/efi/sb: Reject non-kernel files in the shim_lock verifier
authorJulian Andres Klode <julian.klode@canonical.com>
Thu, 2 Dec 2021 14:03:53 +0000 (15:03 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 7 Jun 2022 14:39:31 +0000 (16:39 +0200)
commit6fe755c5c07bb386fda58306bfd19e4a1c974c53
tree5b3df92b721c246712be88a5da8bb7295bcb969b
parent04c86e0bb7b58fc2f913f798cdb18934933e532d
kern/efi/sb: Reject non-kernel files in the shim_lock verifier

We must not allow other verifiers to pass things like the GRUB modules.
Instead of maintaining a blocklist, maintain an allowlist of things
that we do not care about.

This allowlist really should be made reusable, and shared by the
lockdown verifier, but this is the minimal patch addressing
security concerns where the TPM verifier was able to mark modules
as verified (or the OpenPGP verifier for that matter), when it
should not do so on shim-powered secure boot systems.

Fixes: CVE-2022-28735
Signed-off-by: Julian Andres Klode <julian.klode@canonical.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/efi/sb.c
include/grub/verify.h