]> git.baikalelectronics.ru Git - kernel.git/commit
staging: usbip: prevent possible buffer overflow reading port records
authorMark Asselstine <asselsm@gmail.com>
Thu, 13 Feb 2014 02:47:56 +0000 (21:47 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2014 17:32:40 +0000 (09:32 -0800)
commit013d6f9ce327352d9b056c28ea2a69eb6fd02d92
tree8bb4e67365bbd88e23442625458e3652770a7f65
parent6714cdceaf21263a6fdd7a6924eb610bc3fb5631
staging: usbip: prevent possible buffer overflow reading port records

To avoid buffer overflow while reading a corrupted or possibly
modified port file we validate the length of each part of the port
record to ensure it doesn't exceed the length of the destination
buffer.

https://bugzilla.kernel.org/show_bug.cgi?id=69931

Signed-off-by: Mark Asselstine <asselsm@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/usbip/userspace/libsrc/vhci_driver.c