diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-10-24 02:46:00 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-10-28 01:14:41 +0300 |
commit | a50829479f58416a013a4ccca791336af3c584c7 (patch) | |
tree | 74da0be0913dcd747df260a8432f2d8d8c708607 /drivers/input/mouse | |
parent | 57a95b41869b8f0d1949c24df2a9dac1ca7082ee (diff) | |
download | linux-a50829479f58416a013a4ccca791336af3c584c7.tar.xz |
Input: gtco - fix potential out-of-bound access
parse_hid_report_descriptor() has a while (i < length) loop, which
only guarantees that there's at least 1 byte in the buffer, but the
loop body can read multiple bytes which causes out-of-bounds access.
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Reviewed-by: Andrey Konovalov <andreyknvl@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse')
0 files changed, 0 insertions, 0 deletions