kern/rescue_reader: Block the rescue mode until the CLI authentication
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
Signed-off-by Maxim Suhanov <[email protected]>
Reviewed-by Daniel Kiper <[email protected]>
--- grub-core/kern/rescue_reader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
grub-core/kern/rescue_reader.c +1 -1
@@ -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