This series tightens validation of on-disk NTFS metadata in the read path.
The first four patches move index validation closer to the point
where index metadata is read and tighten the structural checks for both
$INDEX_ROOT and INDX block headers. The last patch adds a missing bounds
check before accessing fields in an EA entry.
Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
---
Hyunchul Lee (4):
ntfs: validate index block header more strictly
ntfs: centalize $INDEX_ROOT header validation
ntfs: validate index entries on reading
ntfs: add bounds check before accessing EA entries
fs/ntfs/dir.c | 64 +++----------------
fs/ntfs/ea.c | 8 +++
fs/ntfs/index.c | 193 +++++++++++++++++++++++++++++++++++++-------------------
fs/ntfs/index.h | 12 +++-
fs/ntfs/inode.c | 15 ++---
5 files changed, 162 insertions(+), 130 deletions(-)
---
base-commit: 5a717e8c387c2a3ccd372a1b34005c1dcedee297
change-id: 20260522-t-fix-oob-v2-626816acbca5
Best regards,
--
Thanks,
Hyunchul