summaryrefslogtreecommitdiffstats
path: root/.gitattributes
diff options
context:
space:
mode:
authorAlan Stern <stern@rowland.harvard.edu>2017-10-18 18:49:38 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-18 19:11:52 +0200
commit1c0edc3633b56000e18d82fc241e3995ca18a69e (patch)
tree41304189ce140630212bfd7640d405579bf38943 /.gitattributes
parentMAINTAINERS: fix git tree url for musb module (diff)
downloadlinux-1c0edc3633b56000e18d82fc241e3995ca18a69e.tar.xz
linux-1c0edc3633b56000e18d82fc241e3995ca18a69e.zip
USB: core: fix out-of-bounds access bug in usb_get_bos_descriptor()
Andrey used the syzkaller fuzzer to find an out-of-bounds memory access in usb_get_bos_descriptor(). The code wasn't checking that the next usb_dev_cap_header structure could fit into the remaining buffer space. This patch fixes the error and also reduces the bNumDeviceCaps field in the header to match the actual number of capabilities found, in cases where there are fewer than expected. Reported-by: Andrey Konovalov <andreyknvl@google.com> Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Tested-by: Andrey Konovalov <andreyknvl@google.com> CC: <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions