Commit 29a8f98b authored by Manas Ghandat's avatar Manas Ghandat Committed by ZhaoLong Wang
Browse files

jfs: fix slab-out-of-bounds Read in dtSearch

stable inclusion
from stable-v4.19.307
commit ce8bc22e948634a5c0a3fa58a179177d0e3f3950
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I96G8Y
CVE: CVE-2023-52602

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ce8bc22e948634a5c0a3fa58a179177d0e3f3950



--------------------------------

[ Upstream commit fa5492ee89463a7590a1449358002ff7ef63529f ]

Currently while searching for current page in the sorted entry table
of the page there is a out of bound access. Added a bound check to fix
the error.

Dave:
Set return code to -EIO

Reported-by: default avatarkernel test robot <lkp@intel.com>
Reported-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202310241724.Ed02yUz9-lkp@intel.com/


Signed-off-by: default avatarManas Ghandat <ghandatmanas@gmail.com>
Signed-off-by: default avatarDave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZhaoLong Wang <wangzhaolong1@huawei.com>
parent fe60ff2c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment