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:zhangyue <zhangyue1@kylinos.cn> Signed-off-by:
David S. Miller <davem@davemloft.net> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Lin Yujun <linyujun809@huawei.com>
Loading
Please sign in to comment