]> git.ipfire.org Git - thirdparty/linux.git/commit
ntfs: harden ntfs_listxattr against EA entries
authorHyunchul Lee <hyc.lee@gmail.com>
Mon, 9 Mar 2026 07:40:09 +0000 (16:40 +0900)
committerNamjae Jeon <linkinjeon@kernel.org>
Mon, 16 Mar 2026 11:27:40 +0000 (20:27 +0900)
commite6a95c5a8066b4d6a74651f89612f13ed1a03fe6
tree272a88cec39d0e07a8bac555703dfd511b1d3ab7
parentc451d34ae14201c2bb40652bf74072a79ff82f7d
ntfs: harden ntfs_listxattr against EA entries

Validate every EA entry only if the buffer length is required to prevent
large memory allocation.

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