commit | 22ec1004728548598f4f5b4a079a7873409eacfd | [log] [tgz] |
---|---|---|
author | Szymon Heidrich <szymon.heidrich@gmail.com> | Mon Jan 24 12:14:00 2022 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Feb 16 12:54:28 2022 +0100 |
tree | 92bd33d231467b4d9cd65679d29aa423673b01a5 | |
parent | 351159167cd8593311482148f64ca14715984544 [diff] |
USB: gadget: validate interface OS descriptor requests commit 75e5b4849b81e19e9efe1654b30d7f3151c33c2c 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: Szymon Heidrich <szymon.heidrich@gmail.com> Cc: stable@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>