diff options
| author | Jiale Yao <yaojiale02@163.com> | 2026-09-24 22:29:14 +0800 |
|---|---|---|
| committer | Benjamin Tissoires <bentiss@kernel.org> | 2026-10-15 17:59:31 +0200 |
| commit | e95917a606f486e46f5136fc1b72190742a091d6 (patch) | |
| tree | 7b04548d1a545460e06d4cf9586f07c1821f51e2 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 1590b7c9bea0abe7a5d25dbfe06287c48c238a6f (diff) | |
HID: roccat: kovaplus: reject short button reports
The raw event callback runs before HID core validates and zero-pads the
report. It passes the buffer to helpers which inspect data[0] and read a
complete struct kovaplus_mouse_report_button for button reports. A
truncated report can therefore cause an out-of-bounds read.
Require enough data for the button report before calling either helper.
Commit 47669bec44fe ("HID: asus: refactor the two workqueues and init
sequence") added the same kind of raw-event length validation to hid-asus.
Fixes: 0e70f97f257e ("HID: roccat: Add support for Kova[+] mouse")
Cc: stable@vger.kernel.org
Signed-off-by: Jiale Yao <yaojiale02@163.com>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
