diff options
| author | Shuah Khan <shuahkh@osg.samsung.com> | 2017-12-07 14:16:48 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-31 12:06:12 +0100 |
| commit | b6f826ba10dce86f74efd3c0953cb9982a3c51e2 (patch) | |
| tree | 2a0ecbb1ce1108d74adf4b1ec270a5a42974c464 /drivers/usb/usbip/stub_dev.c | |
| parent | 80e733a9b37fb6b40351bf1924d5a90d89c375ae (diff) | |
usbip: fix stub_rx: harden CMD_SUBMIT path to handle malicious input
commit c6688ef9f29762e65bce325ef4acd6c675806366 upstream.
Harden CMD_SUBMIT path to handle malicious input that could trigger
large memory allocations. Add checks to validate transfer_buffer_length
and number_of_packets to protect against bad input requesting for
unbounded memory allocations. Validate early in get_pipe() and return
failure.
Reported-by: Secunia Research <vuln@secunia.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/usbip/stub_dev.c')
0 files changed, 0 insertions, 0 deletions
