WSL2-Linux-Kernel/fs/ntfs3
lei lu 35652dfa8c fs/ntfs3: Validate ff offset
commit 50c47879650b4c97836a0086632b3a2e300b0f06 upstream.

This adds sanity checks for ff offset. There is a check
on rt->first_free at first, but walking through by ff
without any check. If the second ff is a large offset.
We may encounter an out-of-bound read.

Signed-off-by: lei lu <llfamsec@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-07-27 10:46:16 +02:00
..
lib fs/ntfs3: Add missing header and guards to lib/ headers 2021-09-13 19:41:44 +03:00
Kconfig
Makefile
attrib.c fs/ntfs3: Add NULL ptr dereference checking at the end of attr_allocate_frame() 2024-03-01 13:21:46 +01:00
attrlist.c fs/ntfs3: Disable ATTR_LIST_ENTRY size check 2024-03-01 13:21:46 +01:00
bitfunc.c fs/ntfs3: Remove a useless shadowing variable 2021-09-23 19:05:46 +03:00
bitmap.c fs/ntfs3: Use kvmalloc instead of kmalloc(... __GFP_NOWARN) 2023-11-08 17:26:46 +01:00
debug.h fs/ntfs3. Add forward declarations for structs to debug.h 2021-09-13 19:41:43 +03:00
dir.c fs/ntfs3: Break dir enumeration if directory contents error 2024-06-16 13:39:13 +02:00
file.c fs/ntfs3: Update inode->i_size after success write into compressed file 2024-03-01 13:21:47 +01:00
frecord.c fs/ntfs3: Fix possible NULL-ptr-deref in ni_readpage_cmpr() 2023-11-08 17:26:46 +01:00
fslog.c fs/ntfs3: Validate ff offset 2024-07-27 10:46:16 +02:00
fsntfs.c fs/ntfs3: Prevent generic message "attempt to access beyond end of device" 2024-03-01 13:21:46 +01:00
index.c fs/ntfs3: Fix case when index is reused during tree transformation 2024-06-16 13:39:13 +02:00
inode.c fs/ntfs3: Taking DOS names into account during link counting 2024-06-16 13:39:13 +02:00
lznt.c fs/ntfs3: Remove tabs before spaces from comment 2021-09-16 17:01:36 +03:00
namei.c fs/ntfs3: Refactoring of various minor issues 2023-05-17 11:50:26 +02:00
ntfs.h fs/ntfs3: Use variable length array instead of fixed size 2024-06-16 13:39:43 +02:00
ntfs_fs.h fs/ntfs3: Prevent generic message "attempt to access beyond end of device" 2024-03-01 13:21:46 +01:00
record.c fs/ntfs3: Taking DOS names into account during link counting 2024-06-16 13:39:13 +02:00
run.c fs/ntfs3: Check fields while reading 2023-07-23 13:47:46 +02:00
super.c fs/ntfs3: Remove max link count info display during driver init 2024-06-16 13:39:13 +02:00
upcase.c fs/ntfs3: Change right headers to upcase.c 2021-09-13 19:41:45 +03:00
xattr.c fs/ntfs3: Mark volume as dirty if xattr is broken 2024-07-18 13:07:35 +02:00