summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorPietro Borrello <borrello@diag.uniroma1.it>2023-02-12 00:01:44 +0000
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>2023-02-16 12:00:26 +0100
commitb94335f899542a0da5fafc38af8edcaf90195843 (patch)
tree603add86d7a26759bb899d978e7bd2606758ff26 /tools/perf/scripts/python/export-to-postgresql.py
parent76ca8da989c7d97a7f76c75d475fe95a584439d7 (diff)
hid: bigben_probe(): validate report count
bigben_probe() does not validate that the output report has the needed report values in the first field. A malicious device registering a report with one field and a single value causes an head OOB write in bigben_worker() when accessing report_field->value[1] to report_field->value[7]. Use hid_validate_values() which takes care of all the needed checks. Fixes: 256a90ed9e46 ("HID: hid-bigbenff: driver for BigBen Interactive PS3OFMINIPAD gamepad") Signed-off-by: Pietro Borrello <borrello@diag.uniroma1.it> Link: https://lore.kernel.org/r/20230211-bigben-oob-v1-1-d2849688594c@diag.uniroma1.it Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions