What’s Vulnerable › Vulnerabilities

CVE-2026-31401: HID: bpf: prevent buffer overflow in hid_hw_request

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

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

Get alerted when CVE-2026-31401 or the next vulnerability affects your stack