]> git.ipfire.org Git - thirdparty/linux.git/commit
ntfs: add bounds check before accessing EA entries
authorHyunchul Lee <hyc.lee@gmail.com>
Sat, 23 May 2026 04:14:23 +0000 (13:14 +0900)
committerNamjae Jeon <linkinjeon@kernel.org>
Fri, 5 Jun 2026 15:19:59 +0000 (00:19 +0900)
commit937282f7d15b593d0be765fa2ced164130ec87f7
tree57d632060840b4e3656fd43443b8c6a1086451a2
parent2221b691d7b2e17f08153f95848dacaa5d87e21d
ntfs: add bounds check before accessing EA entries

in ntfs_ea_lookup and ntfs_listxattr, this verifies that there is enough
space in the EA entry before accessing the next_entry_offset field of
the EA entry.

Cc: stable@vger.kernel.org # v7.1
Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/ntfs/ea.c