CVE-2026-142789: HID: zydacron: validate key report length
In the Linux kernel, the following vulnerability has been resolved:
HID: zydacron: validate key report length
The HID core invokes rawevent callbacks before validating the report length. zcrawevent() verifies the report ID in byte zero and then reads the key code from byte one for report IDs 0x02 and 0x03 without checking that the second byte is present.
A one-byte report reproduced the issue under KASAN:
BUG: KASAN: slab-out-of-bounds in zcrawevent+0x54c/0x580 Read of size 1 by task hidtrigger/93 Call Trace: zcrawevent+0x54c/0x580 hidinputreport+0x2ef/0x3a0 injectstore+0x479/0x490 [faketrans]
Require both the report ID and key code before processing the report.
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 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - 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 - Compensating control
In the HID zydacron raw_event handler, validate that the key-code byte is present before reading it for report IDs 0x02 and 0x03; require both the report ID and key code before processing the report.