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:Hui Peng <benquike@gmail.com> Reported-by:
Mathias Payer <mathias.payer@nebelwelt.net> Co-developed-by:
Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by:
Hui Peng <benquike@gmail.com> Signed-off-by:
Mathias Payer <mathias.payer@nebelwelt.net> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org> Cc: stable <stable@kernel.org> Signed-off-by:
Greg 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:
Krishnamurthy K R <kkr@codeaurora.org>
Loading
Please register or sign in to comment