HID: roccat: bound device-supplied profile index
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 14bf62cde79423a02a590e02664ed29a36facec1 · < 635914c60da26a9892f27ffb5edcc922a10effab| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
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).
From the CVE record · Linux
The Linux kernel’s Roccat Kone HID driver does not check a device-supplied profile index before using it to read an array. A malicious USB device claiming the Roccat Kone ID can supply an out-of-range index during probe or a profile-switch event, causing an out-of-bounds read whose result is exposed through the actual_dpi sysfs attribute.
Engineers running Linux systems that may use the Roccat Kone HID driver should check their kernel; affected versions are not specified.