mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-18 19:12:56 +00:00
USB: iowarrior: fix NULL-deref at probe
commitb7321e81fcupstream. Make sure to check for the required interrupt-in endpoint to avoid dereferencing a NULL-pointer should a malicious device lack such an endpoint. Note that a fairly recent change purported to fix this issue, but added an insufficient test on the number of endpoints only, a test which can now be removed. Fixes:4ec0ef3a82("USB: iowarrior: fix oops with malicious USB descriptors") Fixes:946b960d13("USB: add driver for iowarrior devices.") Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
parent
174e03cdb2
commit
d2d603cf8f
1 changed files with 7 additions and 6 deletions
Loading…
Add table
Add a link
Reference in a new issue