Files
linux-stable-mirror/fs
Namjae JeonandGreg Kroah-Hartman d84150aab3 exfat: fix uninit-value in __exfat_get_dentry_set
commit 02dffe9ab0 upstream.

There is no check if stream size and start_clu are invalid.
If start_clu is EOF cluster and stream size is 4096, It will
cause uninit value access. because ei->hint_femp.eidx could
be 128(if cluster size is 4K) and wrong hint will allocate
next cluster. and this cluster will be same with the cluster
that is allocated by exfat_extend_valid_size(). The previous
patch will check invalid start_clu, but for clarity, initialize
hint_femp.eidx to zero.

Cc: stable@vger.kernel.org
Reported-by: syzbot+01218003be74b5e1213a@syzkaller.appspotmail.com
Tested-by: syzbot+01218003be74b5e1213a@syzkaller.appspotmail.com
Reviewed-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-12-14 19:54:00 +01:00
..
2024-12-14 19:53:58 +01:00
2024-10-22 15:56:43 +02:00
2024-08-29 17:30:56 +02:00
2024-12-14 19:53:48 +01:00
2024-08-29 17:30:34 +02:00
2024-02-23 09:12:45 +01:00
2023-09-23 11:11:10 +02:00
2023-08-30 16:11:10 +02:00