diff options
| author | Hyunchul Lee <hyc.lee@gmail.com> | 2026-09-22 15:18:33 +0900 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-10-20 18:41:46 +0900 |
| commit | ca43660672050337f4b845e36f732e3af1e308ca (patch) | |
| tree | 596144c7964bcfae0edd63ca719967dd127d8c9b /scripts/Makefile.thinlto | |
| parent | 749357bd48c16c4cdc09093450deca609492f012 (diff) | |
| download | linux-ca43660672050337f4b845e36f732e3af1e308ca.tar.gz linux-ca43660672050337f4b845e36f732e3af1e308ca.zip | |
ntfs: validate attribute-list sizes before allocation
The NULL point dereference could occur when an on-disk
$ATTRIBUTE_LIST size was truncated before it was validated and allocated.
To fix this issue and prevent excessive memory allocation, limit the
$ATTRIBUTE_LIST size to 256 KiB.
The following existing implementation and Windows test provide evidence
for this 256 KiB compatibility limit:
NTFS already treats 256 KiB as the $ATTRIBUTE_LIST limit in its
attribute-size checks and $MFT attribute list repack/expand paths.
For additional Windows testing, when $MFT's attribute-list data_size was
above 256 KiB, Windows attached the disk partition but did not mount a NTFS
volume and target access failed.
Fixes: af0db57d4293 ("ntfs: update inode operations")
Link: https://lore.kernel.org/ntfs/88468.1790006025@30-10-12.wireless.csail.mit.edu/T/#u
Cc: stable@vger.kernel.org
Cc: Robert Morris <rtm@mit.edu>
Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Reviewed-by: Baolin Liu <liubaolin@kylinos.cn>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
