]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ntfs: limit memory allocation in ntfs_attr_readall
authorHyunchul Lee <hyc.lee@gmail.com>
Fri, 3 Apr 2026 01:10:39 +0000 (10:10 +0900)
committerNamjae Jeon <linkinjeon@kernel.org>
Sat, 18 Apr 2026 02:33:02 +0000 (11:33 +0900)
commit0b79de3299079e4132972ab5e04136c770e38038
tree457c35ea593bd6cce3d9e8add38a089c7a7599ec
parentca513e492fb8ac59f5e3092a79d836cd2e687a2a
ntfs: limit memory allocation in ntfs_attr_readall

check an attribute size before memory allocation, and reject if the size
is over the maximum size.

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