]> git.itanic.dy.fi Git - linux-stable/commit
usbip: fix vudc_rx: harden CMD_SUBMIT path to handle malicious input
authorShuah Khan <shuahkh@osg.samsung.com>
Sat, 23 Dec 2017 02:23:46 +0000 (19:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Jan 2018 08:45:26 +0000 (09:45 +0100)
commite56d7cd5f31ef90b1c4ecb9a0f771bad46938a01
treeec6b32fed41e8fa74f3585d0fe0d0fd4077a8229
parent34e5d097bc36f9f62db3b08b570abcd91800d00d
usbip: fix vudc_rx: harden CMD_SUBMIT path to handle malicious input

commit b78d830f0049ef1966dc1e0ebd1ec2a594e2cf25 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.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/vudc_rx.c