]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ntfs: add bound checking to ntfs_attr_find
authorHyunchul Lee <hyc.lee@gmail.com>
Thu, 12 Mar 2026 01:23:46 +0000 (10:23 +0900)
committerNamjae Jeon <linkinjeon@kernel.org>
Tue, 7 Apr 2026 09:36:05 +0000 (18:36 +0900)
commit6ceb4cc81ef3409ff79dcb959771f9110787397a
tree2a69fd7c73c89489bf6810adafef094f8b499341
parent77f58db7391e227f8ff6ef5d83966347d759daed
ntfs: add bound checking to ntfs_attr_find

Add bound validations in ntfs_attr_find to ensure
attribute value offsets and lengths are safe to
access. It verifies that resident attributes meet
type-specific minimum length requirements and
check the mapping_pairs_offset boundaries for
non-resident attributes.

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