]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ntfs: add bound checking to ntfs_external_attr_find
authorHyunchul Lee <hyc.lee@gmail.com>
Mon, 16 Mar 2026 04:28:34 +0000 (13:28 +0900)
committerNamjae Jeon <linkinjeon@kernel.org>
Tue, 7 Apr 2026 09:36:09 +0000 (18:36 +0900)
commita198a0c4b898f7c62f240a5b6baef93e456fb033
tree706dd92c73a03627fd144e9dc4f71f040c1feb25
parent6ceb4cc81ef3409ff79dcb959771f9110787397a
ntfs: add bound checking to ntfs_external_attr_find

Add bound validation in ntfs_external_attr_find to
prevent out-of-bounds memory accesses. This ensures
that the attribute record's length, name offset, and
both resident and non-resident value offsets strictly
fall within the safe boundaries of the MFT record.

Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
fs/ntfs/attrib.c