Commit 1b150873 authored by Szymon Heidrich's avatar Szymon Heidrich Committed by Yang Yingliang
Browse files

USB: gadget: validate interface OS descriptor requests



stable inclusion
from linux-4.19.230
commit e5eb8d19aee115d8fb354d1eff1b8df700467164
CVE: CVE-2022-25258

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

commit 75e5b484 upstream.

Stall the control endpoint in case provided index exceeds array size of
MAX_CONFIG_INTERFACES or when the retrieved function pointer is null.

Signed-off-by: default avatarSzymon Heidrich <szymon.heidrich@gmail.com>
Cc: stable@kernel.org
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarWang Weiyang <wangweiyang2@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 9e552295
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment