| From: |
| Hyunchul Lee <hyc.lee-AT-gmail.com> |
| To: |
| Namjae Jeon <linkinjeon-AT-kernel.org> |
| Subject: |
| [PATCH 0/4] ntfs: tighten EA and index metadata validation |
| Date: |
| Fri, 22 May 2026 09:45:06 +0900 |
| Message-ID: |
| <20260522-t-fix-oob-v2-v1-0-0bea6582a361@gmail.com> |
| Cc: |
| Hyunchul Lee <hyc.lee-AT-gmail.com>, linux-fsdevel-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org |
| Archive-link: |
| Article |
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