diff options
author | Xinyu Liu <katieeliu@tencent.com> | 2025-06-30 10:02:56 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-07-01 16:16:32 +0200 |
commit | cf16f408364efd8a68f39011a3b073c83a03612d (patch) | |
tree | e901a105dc0d5adb89bda5a3e722bc074db14c3c /scripts/gdb/linux/xarray.py | |
parent | 7481a97c5f49f10c7490bb990d0e863f23b9bb71 (diff) |
usb: core: config: Prevent OOB read in SS endpoint companion parsing
usb_parse_ss_endpoint_companion() checks descriptor type before length,
enabling a potentially odd read outside of the buffer size.
Fix this up by checking the size first before looking at any of the
fields in the descriptor.
Signed-off-by: Xinyu Liu <katieeliu@tencent.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions