From 566e4a9efade09d926bb4f57ed4555ea5b85ef13 Mon Sep 17 00:00:00 2001 From: Egor Ignatov Date: Thu, 23 Jan 2025 20:44:13 +0300 Subject: [PATCH] fs/xfs: Handle root inode read failure in grub_xfs_mount Signed-off-by: Egor Ignatov Gbp-Pq: Topic cve-2025-jan Gbp-Pq: Name fs-xfs-Handle-root-inode-read-failure-in-grub_xfs_mount.patch --- grub-core/fs/xfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grub-core/fs/xfs.c b/grub-core/fs/xfs.c index 28a3429..59bdee5 100644 --- a/grub-core/fs/xfs.c +++ b/grub-core/fs/xfs.c @@ -1086,6 +1086,8 @@ grub_xfs_mount (grub_disk_t disk) grub_cpu_to_be64(data->sblock.rootino)); grub_xfs_read_inode (data, data->diropen.ino, &data->diropen.inode); + if (grub_errno) + goto fail; return data; fail: -- 2.30.2