Skip to contentSkip to conversation

kern/rescue_reader: Block the rescue mode until the CLI authentication

PATCH New Daniel Kiper via Grub-devel 1 participant 1 message May 8, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/8 kern/rescue_reader: Block the rescue mode until the CLI authentication

From: Maxim Suhanov <[email protected]>

This further mitigates potential misuse of the CLI after the root device has been successfully unlocked via TPM.

Fixes CVE-2025-4382
---
 grub-core/kern/rescue_reader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
grub-core/kern/rescue_reader.c +1 -1
index 4259857ba..a71ada8fb 100644
@@ -79,7 +79,7 @@ void __attribute__ ((noreturn))
 grub_rescue_run (void)
 {
   /* Stall if the CLI has been disabled */
-  if (grub_is_cli_disabled ())
+  if (grub_is_cli_disabled () || grub_is_cli_need_auth ())
     {
       grub_printf ("Rescue mode has been disabled...\n");
 
Signature · 7 lines
2.11.0


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel