]> git.ipfire.org Git - thirdparty/grub.git/commit
fs/ntfs: Correct possible infinite loops/hangs
authorAndrew Hamilton <adhamilt@gmail.com>
Thu, 22 May 2025 03:20:40 +0000 (22:20 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 29 May 2025 13:45:24 +0000 (15:45 +0200)
commit272ff81cb291437211047f2402ff20aaa1c6bcf6
tree314d9595fb38cd4804befb148ff2ea5bc111fcef
parent8c95307a0b690dc2d0aba012878f9dca5a50f2cc
fs/ntfs: Correct possible infinite loops/hangs

Correct several infinite loops/hangs found during fuzzing. The issues
fixed here could occur if certain specific malformed NTFS file systems
were presented to GRUB. Currently, GRUB does not allow NTFS file system
access when lockdown mode is enforced, so these should be of minimal
impact.

The changes made in this commit generally correct issues such as attempting
to iterate through a buffer using a length read from the NTFS file system
without confirming the length is larger than 0.

Signed-off-by: Andrew Hamilton <adhamilt@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/fs/ntfs.c