]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
jfs: array-index-out-of-bounds fix in dtReadFirst
authorGhanshyam Agrawal <ghanshyam1898@gmail.com>
Sat, 28 Sep 2024 08:37:22 +0000 (14:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:52 +0000 (20:03 +0100)
commit22dcbf7661c6ffc3247978c254dc40b833a0d429
treef029cc4abb94ceb17623eb6636619d5b07d615f7
parentf2b95248a16c5186d1c658fc0aeb2f3bd95e5259
jfs: array-index-out-of-bounds fix in dtReadFirst

[ Upstream commit ca84a2c9be482836b86d780244f0357e5a778c46 ]

The value of stbl can be sometimes out of bounds due
to a bad filesystem. Added a check with appopriate return
of error code in that case.

Reported-by: syzbot+65fa06e29859e41a83f3@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=65fa06e29859e41a83f3
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