]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
jfs: fix array-index-out-of-bounds in jfs_readdir
authorGhanshyam Agrawal <ghanshyam1898@gmail.com>
Tue, 1 Oct 2024 06:05:47 +0000 (11:35 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:51:39 +0000 (19:51 +0100)
commit9efe72eefd4c4a7ce63b3e4d667d766d2b360cb4
tree3a7c1672dad59be31bbd1e4bca6bf0c874420518
parent6676034aa753aa448beb30dbd75630927ba7cd96
jfs: fix array-index-out-of-bounds in jfs_readdir

[ Upstream commit 839f102efb168f02dfdd46717b7c6dddb26b015e ]

The stbl might contain some invalid values. Added a check to
return error code in that case.

Reported-by: syzbot+0315f8fe99120601ba88@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=0315f8fe99120601ba88
Signed-off-by: Ghanshyam Agrawal <ghanshyam1898@gmail.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/jfs/jfs_dtree.c