Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
USB: iowarrior: fix NULL-deref at probe
commit b7321e8 upstream. 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: 4ec0ef3 ("USB: iowarrior: fix oops with malicious USB descriptors") Fixes: 946b960 ("USB: add driver for iowarrior devices.") Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
- Loading branch information