diff options
author | Alan Stern <[email protected]> | 2019-10-03 14:53:59 -0400 |
---|---|---|
committer | Benjamin Tissoires <[email protected]> | 2019-10-03 15:36:40 -0400 |
commit | d9d4b1e46d9543a82c23f6df03f4ad697dab361b (patch) | |
tree | 5a405a2f78b1029f4cc6d6ee743f0bec31319b42 /tools/perf/scripts/python/stackcollapse.py | |
parent | fe2199cfd1516e90e03c033c52c9a28da09d9986 (diff) |
HID: Fix assumption that devices have inputs
The syzbot fuzzer found a slab-out-of-bounds write bug in the hid-gaff
driver. The problem is caused by the driver's assumption that the
device must have an input report. While this will be true for all
normal HID input devices, a suitably malicious device can violate the
assumption.
The same assumption is present in over a dozen other HID drivers.
This patch fixes them by checking that the list of hid_inputs for the
hid_device is nonempty before allowing it to be used.
Reported-and-tested-by: [email protected]
Signed-off-by: Alan Stern <[email protected]>
CC: <[email protected]>
Signed-off-by: Benjamin Tissoires <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions