CVE-2026-139804: HID: roccat: pyra: reject short button reports
In the Linux kernel, the following vulnerability has been resolved:
HID: roccat: pyra: 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 pyramouseeventbutton 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Validate that a button report contains enough data before calling either helper that reads it.