Commit ea664b24 authored by Konstantin Meskhidze's avatar Konstantin Meskhidze Committed by sanglipeng
Browse files

kconfig: fix possible buffer overflow

stable inclusion
from stable-v5.10.195
commit 84f99532152b2e8ccfa0d9ac4b98a9d6af487469
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I95JOC

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



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

[ Upstream commit a3b7039b ]

Buffer 'new_argv' is accessed without bound check after accessing with
bound check via 'new_argc' index.

Fixes: e298f3b4 ("kconfig: add built-in function support")
Co-developed-by: default avatarIvanov Mikhail <ivanov.mikhail1@huawei-partners.com>
Signed-off-by: default avatarKonstantin Meskhidze <konstantin.meskhidze@huawei.com>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent a2cc9086
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment