diff options
| author | Jiale Yao <yaojiale02@163.com> | 2026-09-24 22:29:13 +0800 |
|---|---|---|
| committer | Benjamin Tissoires <bentiss@kernel.org> | 2026-10-15 17:59:31 +0200 |
| commit | 1590b7c9bea0abe7a5d25dbfe06287c48c238a6f (patch) | |
| tree | 99736b059fb35e9c3221913709ea76c0bf11eccc /tools/perf/scripts/python/stackcollapse.py | |
| parent | d879e17a8b4c572c0b53b4e42a36849484e8f00c (diff) | |
HID: roccat: konepure: reject short button reports
The raw event callback runs before HID core validates and zero-pads the
report. It reads the report number without checking the received length
and passes matching data to roccat_report_event(), which copies a complete
struct konepure_mouse_report_button. A truncated report can therefore
cause an out-of-bounds read and expose adjacent data through the Roccat
character device.
Require a complete button report before inspecting or forwarding it.
Commit 47669bec44fe ("HID: asus: refactor the two workqueues and init
sequence") added the same kind of raw-event length validation to hid-asus.
Fixes: 8936aa31cd5f ("HID: roccat: add support for Roccat Kone Pure gaming 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
