Skip to content
Commit a72e75ab authored by zhangyue's avatar zhangyue Committed by Lin Yujun
Browse files

net: tulip: de4x5: fix the problem that the array 'lp->phy[8]' may be out of bound

stable inclusion
from stable-v4.19.220
commit 2c1a6a9a011d622a7c61324a97a49801ba425eff
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9S282
CVE: CVE-2021-47547

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



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

[ Upstream commit 61217be8 ]

In line 5001, if all id in the array 'lp->phy[8]' is not 0, when the
'for' end, the 'k' is 8.

At this time, the array 'lp->phy[8]' may be out of bound.

Signed-off-by: default avatarzhangyue <zhangyue1@kylinos.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarLin Yujun <linyujun809@huawei.com>
parent 0a378cfa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment