Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
USB: wusbcore: fix NULL-deref at probe
commit 03ace94 upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer or accessing memory beyond the endpoint array should a malicious device lack the expected endpoints. This specifically fixes the NULL-pointer dereference when probing HWA HC devices. Fixes: df36542 ("wusb: add the Wire Adapter (WA) core") Cc: Inaky Perez-Gonzalez <[email protected]> Cc: David Vrabel <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Signed-off-by: Jiri Slaby <[email protected]>
- Loading branch information