diff options
| author | 2026-06-30 23:17:43 +0200 | |
|---|---|---|
| committer | 2026-09-16 13:05:54 +0200 | |
| commit | 666af227b12fcc3f4ac9827d449ee0910f7bcf9f (patch) | |
| tree | 1a32aee3f99c930f6a4932a580e95de57cc89a6a /scripts/Makefile.thinlto | |
| parent | ntfs3: fix out-of-bounds read in ntfs_read_mft() (diff) | |
ntfs3: reject empty iomap before reading its LCN
attr_data_get_block() can return success with a zero run length when no
cached or on-disk mapping covers a read VCN. In that case it does not
initialize the LCN output.
Check the returned length before comparing the LCN against the special
mapping values. This preserves the existing -EINVAL result for an empty
mapping without passing an uninitialized LCN to the comparisons.
Fixes: ecbb433f9a8e ("fs/ntfs3: fold file size handling into ntfs_set_size()")
Reported-by: syzbot+4b4ec878e25fafefa70f@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=4b4ec878e25fafefa70f
Cc: stable@vger.kernel.org
Signed-off-by: Yousef Alhouseen <alhouseenyousef@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
