CVE-2026-99330: HID: mcp2200: validate READ_ALL response length
In the Linux kernel, the following vulnerability has been resolved:
HID: mcp2200: validate READALL response length
The HID core invokes rawevent callbacks before validating the report length. mcp2200rawevent() casts a READALL response to struct mcpreadallresp and reads fields through offset ten without checking that the response contains the structure.
A one-byte READALL response reproduced the issue under KASAN:
BUG: KASAN: slab-out-of-bounds in mcp2200rawevent+0x24b/0x3a0 Read of size 1 by task hidtrigger/89 Call Trace: mcp2200rawevent+0x24b/0x3a0 kasanreport+0x139/0x170
Reject an incomplete READALL response with a protocol error before reading its fields. The common completion path then wakes the command waiter with the error instead of leaving it to time out.
Commit 47669bec44fe ("HID: asus: refactor the two workqueues and init sequence") added the same kind of rawevent length validation to hid-asus.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.7 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2