CVE-2026-31401 — Incorrect Calculation of Buffer Size in Linux
Severity
4.4MEDIUM
No vectorEPSS
0.0%
top 93.81%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedApr 3
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 Packages3 packages
▶CVEListV5linux/linux8bd0488b5ea58655ad6fdcbe0408ef49b16882b1 — d6efaa50af62fb0790dd1fd4e7e5506b46312510+4
🔴Vulnerability Details
2OSV▶
CVE-2026-31401: In the Linux kernel, the following vulnerability has been resolved: HID: bpf: prevent buffer overflow in hid_hw_request right now the returned value i↗2026-04-03
GHSA▶
GHSA-whg2-hqg5-6ph3: In the Linux kernel, the following vulnerability has been resolved:
HID: bpf: prevent buffer overflow in hid_hw_request
right now the returned value↗2026-04-03