diff options
| author | Michael Bommarito <michael.bommarito@gmail.com> | 2026-06-17 23:00:35 -0400 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-06-29 11:16:26 +0200 |
| commit | 43fae42628a8c10fa8981773d7ec9f1a367821a7 (patch) | |
| tree | 3660f963ada5c4ea46d10516e437f264ae16a1a5 /tools/perf/scripts/python | |
| parent | b7556c8e713c88596046a906c7c4385218d44736 (diff) | |
HID: roccat: bound device-supplied profile index
kone_keep_values_up_to_date() and kone_profile_activated() use an
8-bit, device-supplied profile value as an index into the 5-element
kone->profiles[] array without a range check. A malicious USB device
claiming the Roccat Kone id can send a switch-profile event (or a
startup_profile read at probe) with an out-of-range value and make the
driver read out of bounds; the result is exposed via the actual_dpi
sysfs attribute.
Reject out-of-range indices in both paths.
This was found with static analysis and confirmed with the KUnit test
added in the following patch (KASAN: slab-out-of-bounds).
Fixes: 14bf62cde7942 ("HID: add driver for Roccat Kone gaming mouse")
Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Michael Bommarito <michael.bommarito@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
