Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa3cd2ff authored by Mathias Payer's avatar Mathias Payer Committed by Krishnamurthy K R
Browse files

USB: check usb_get_extra_descriptor for proper size



When reading an extra descriptor, we need to properly check the minimum
and maximum size allowed, to prevent from invalid data being sent by a
device.

Change-Id: I9457c9c373dde0d6323177a8dc0d82e42d5861d6
Reported-by: default avatarHui Peng <benquike@gmail.com>
Reported-by: default avatarMathias Payer <mathias.payer@nebelwelt.net>
Co-developed-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarHui Peng <benquike@gmail.com>
Signed-off-by: default avatarMathias Payer <mathias.payer@nebelwelt.net>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Cc: stable <stable@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Git-commit: 704620afc70cf47abb9d6a1a57f3825d2bca49cf
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarKrishnamurthy K R <kkr@codeaurora.org>
parent 8dfafa5b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment