Commit f1be0f06 authored by Szymon Heidrich's avatar Szymon Heidrich Committed by Zheng Zengkai
Browse files

USB: gadget: validate endpoint index for xilinx udc

mainline inclusion
from mainline-v5.17-rc4
commit 7f14c722
category: bugfix
bugzilla: 186427, https://gitee.com/src-openeuler/kernel/issues/I4ZQJN
CVE: CVE-2022-27223

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7f14c7227f342d9932f9b918893c8814f86d2a0d



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

Assure that host may not manipulate the index to point
past endpoint array.

Signed-off-by: default avatarSzymon Heidrich <szymon.heidrich@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarLijun Fang <fanglijun3@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: default avatarWeilong Chen <chenweilong@huawei.com>
parent c7a60df0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment