diff options
| author | 2026-09-24 22:29:12 +0800 | |
|---|---|---|
| committer | 2026-10-15 17:59:31 +0200 | |
| commit | d879e17a8b4c572c0b53b4e42a36849484e8f00c (patch) | |
| tree | dc84b0b93b6ea91966f27339e879184aa947c96c /scripts/Makefile.thinlto | |
| parent | HID: roccat: isku: reject short button reports (diff) | |
HID: roccat: koneplus: 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, for a
button report, read the complete struct koneplus_mouse_report_button. 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: 47dbdbffe15b ("HID: roccat: Add support for Roccat Kone[+] v2")
Cc: stable@vger.kernel.org
Signed-off-by: Jiale Yao <yaojiale02@163.com>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
