Commit 83b0a5fa authored by Szymon Heidrich's avatar Szymon Heidrich Committed by PavanKumar S.R
Browse files

USB: gadget: validate interface OS descriptor requests



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.

Change-Id: Ieda0428f07a6f848c46bde5c906c5c3a0a6d210e
Signed-off-by: default avatarSzymon Heidrich <szymon.heidrich@gmail.com>
Cc: stable@kernel.org
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: e5eb8d19
Git-repo: https://android.googlesource.com/kernel/common


Signed-off-by: default avatarPavanKumar S.R <quic_pavasr@quicinc.com>
parent 447fa26c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment