diff --git a/bugfix-Clear-buffer-for-screen-info.patch b/bugfix-Clear-buffer-for-screen-info.patch new file mode 100644 index 0000000000000000000000000000000000000000..5d0f04c195dc2ec938c4c7d06c5331131a84942f --- /dev/null +++ b/bugfix-Clear-buffer-for-screen-info.patch @@ -0,0 +1,25 @@ +From ec551328ad7ef8e98a22e052c8da6e258893c144 Mon Sep 17 00:00:00 2001 +From: Xue Liu +Date: Mon, 25 Nov 2024 14:23:34 +0800 +Subject: [PATCH] bugfix: Clear buffer for screen info + +--- + grub-core/loader/loongarch64/linux-elf.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/grub-core/loader/loongarch64/linux-elf.c b/grub-core/loader/loongarch64/linux-elf.c +index c5d9434..b495a2b 100644 +--- a/grub-core/loader/loongarch64/linux-elf.c ++++ b/grub-core/loader/loongarch64/linux-elf.c +@@ -167,6 +167,8 @@ alloc_screen_info (void) + if (status != GRUB_EFI_SUCCESS) + return NULL; + ++ grub_memset((void *)si, 0, sizeof(struct screen_info)); ++ + status = b->install_configuration_table (&compat_screen_info_guid, si); + if (status != GRUB_EFI_SUCCESS) + goto free_mem; +-- +2.43.0 + diff --git a/grub.patches b/grub.patches index f11ec640cdd493e613229dc43fa8e6f8bad8c511..f67209120253b0aca781433a431f14e7209f78a0 100644 --- a/grub.patches +++ b/grub.patches @@ -244,3 +244,4 @@ Patch243: 10_linux-fix-missing-ro-in-kernel-boot-parameters.patch Patch244: 0001-cryptodisk-add-OS-provided-secret-support.patch Patch245: 0002-efi-Add-API-for-retrieving-the-EFI-secret-for-crypto.patch Patch246: backport-acpi-Fix-out-of-bounds-access-in-grub_acpi_xsdt_find.patch +Patch247: bugfix-Clear-buffer-for-screen-info.patch diff --git a/grub2.spec b/grub2.spec index 19ca23f69f03c501122fa301189030ceb0f26fe6..ac87ce447c1c0458d73063247368edd927baf755 100644 --- a/grub2.spec +++ b/grub2.spec @@ -19,7 +19,7 @@ Name: grub2 Epoch: 1 Version: 2.12 -Release: 27 +Release: 28 Summary: Bootloader with support for Linux, Multiboot and more License: GPLv3+ URL: http://www.gnu.org/software/grub/ @@ -461,6 +461,12 @@ fi %{_datadir}/man/man* %changelog +* Fri Nov 8 2024 liuxue - 1:2.12-28 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:Clear buffer for screen info + * Wed Nov 13 2024 yueyuankun - 1:2.12-27 - Type:bugfix - CVE:NA