]> 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 19:03:52 +0000 (20:03 +0100)
commit8ff7579554571d92e3deab168f5a7d7b146ed368
treebbabe338b27104816cf303bcd0f4057eb0a0c52d
parent52756a57e978e2706543a254f88f266cc6702f36
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