mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
grub: patch CVE-2024-45778 and CVE-2024-45779
Cherry-pick patch mentioning these CVEs. (From OE-Core rev: 9ecee5f950f249d982b307bbdbe0e13e55f27b24) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
parent
7b009013fc
commit
51a7eb1192
|
@ -0,0 +1,55 @@
|
||||||
|
From 26db6605036bd9e5b16d9068a8cc75be63b8b630 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Daniel Axtens <dja@axtens.net>
|
||||||
|
Date: Sat, 23 Mar 2024 15:59:43 +1100
|
||||||
|
Subject: [PATCH] fs/bfs: Disable under lockdown
|
||||||
|
|
||||||
|
The BFS is not fuzz-clean. Don't allow it to be loaded under lockdown.
|
||||||
|
This will also disable the AFS.
|
||||||
|
|
||||||
|
Fixes: CVE-2024-45778
|
||||||
|
Fixes: CVE-2024-45779
|
||||||
|
|
||||||
|
Reported-by: Nils Langius <nils@langius.de>
|
||||||
|
Signed-off-by: Daniel Axtens <dja@axtens.net>
|
||||||
|
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
|
||||||
|
|
||||||
|
CVE: CVE-2024-45778
|
||||||
|
CVE: CVE-2024-45779
|
||||||
|
Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/grub.git/commit/?id=]
|
||||||
|
Signed-off-by: Peter Marko <peter.marko@siemens.com>
|
||||||
|
---
|
||||||
|
grub-core/fs/bfs.c | 9 +++++++--
|
||||||
|
1 file changed, 7 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/grub-core/fs/bfs.c b/grub-core/fs/bfs.c
|
||||||
|
index 022f69fe2..78aeb051f 100644
|
||||||
|
--- a/grub-core/fs/bfs.c
|
||||||
|
+++ b/grub-core/fs/bfs.c
|
||||||
|
@@ -30,6 +30,7 @@
|
||||||
|
#include <grub/types.h>
|
||||||
|
#include <grub/i18n.h>
|
||||||
|
#include <grub/fshelp.h>
|
||||||
|
+#include <grub/lockdown.h>
|
||||||
|
|
||||||
|
GRUB_MOD_LICENSE ("GPLv3+");
|
||||||
|
|
||||||
|
@@ -1106,7 +1107,10 @@ GRUB_MOD_INIT (bfs)
|
||||||
|
{
|
||||||
|
COMPILE_TIME_ASSERT (1 << LOG_EXTENT_SIZE ==
|
||||||
|
sizeof (struct grub_bfs_extent));
|
||||||
|
- grub_fs_register (&grub_bfs_fs);
|
||||||
|
+ if (!grub_is_lockdown ())
|
||||||
|
+ {
|
||||||
|
+ grub_fs_register (&grub_bfs_fs);
|
||||||
|
+ }
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef MODE_AFS
|
||||||
|
@@ -1115,5 +1119,6 @@ GRUB_MOD_FINI (afs)
|
||||||
|
GRUB_MOD_FINI (bfs)
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
- grub_fs_unregister (&grub_bfs_fs);
|
||||||
|
+ if (!grub_is_lockdown ())
|
||||||
|
+ grub_fs_unregister (&grub_bfs_fs);
|
||||||
|
}
|
|
@ -33,6 +33,7 @@ SRC_URI = "${GNU_MIRROR}/grub/grub-${PV}.tar.gz \
|
||||||
file://CVE-2024-45777.patch \
|
file://CVE-2024-45777.patch \
|
||||||
file://CVE-2025-0690.patch \
|
file://CVE-2025-0690.patch \
|
||||||
file://CVE-2025-1118.patch \
|
file://CVE-2025-1118.patch \
|
||||||
|
file://CVE-2024-45778_CVE-2024-45779.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI[sha256sum] = "b30919fa5be280417c17ac561bb1650f60cfb80cc6237fa1e2b6f56154cb9c91"
|
SRC_URI[sha256sum] = "b30919fa5be280417c17ac561bb1650f60cfb80cc6237fa1e2b6f56154cb9c91"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user