What’s Vulnerable › Vulnerabilities
CVE-2026-31401: HID: bpf: prevent buffer overflow in hid_hw_request
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-04-03 · updated 2026-10-19
- Weakness: CWE-787
Description
In the Linux kernel, the following vulnerability has been resolved: HID: bpf: prevent buffer overflow in hid_hw_request right now the returned value is considered to be always valid. However, when playing with HID-BPF, the return value can be arbitrary big, because it's the return value of dispatch_hid_bpf_raw_requests(), which calls the struct_ops and we have no guarantees that the value makes sense.
Affected products
- Linux kernel: from 6.11 before 6.12.78; from 6.13 before 6.18.20; from 6.19 before 6.19.10; 7.0-rc1, 7.0-rc2, 7.0-rc3, 7.0-rc4 — fixed in 6.12.78, 6.18.20, 6.19.10
How to fix
Upgrade to a fixed version: Linux kernel 6.12.78, 6.18.20, 6.19.10. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/2b658c1c442ec1cd9eec5ead98d68662c40fe645
- https://git.kernel.org/stable/c/73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1
- https://git.kernel.org/stable/c/d6efaa50af62fb0790dd1fd4e7e5506b46312510
- https://git.kernel.org/stable/c/eb57dae20fdf6f3069cdc07821fa3bb46de381d7
Get alerted when CVE-2026-31401 or the next vulnerability affects your stack