CVE-2026-31401: Linux kernel · HID: bpf: prevent buffer overflow in hid_hw_request
Affects Linux kernelSource CVE Database V5
Not known to be exploited · CVSS 7.8 High · fixed in eb57dae20fdf6f3069cdc07821fa3bb46de381d7 : patch Linux kernel soon.
Data as of 26 Oct 2026, 10:24 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 2% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- CISA SSVC
- Exploitation
- No evidence of active exploitation and no public proof of concept
- Automatable
- Attackers cannot reliably automate steps 1–4 of the kill chain
- Technical impact
- Total control over the software or total information disclosure
CISA SSVC assessment, 2026-10-16.
- Patch
- Available – fixed in eb57dae20fdf6f3069cdc07821fa3bb46de381d7, d6efaa50af62fb0790dd1fd4e7e5506b46312510, 73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1 +1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 3 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade Linux kernel to eb57dae20fdf6f3069cdc07821fa3bb46de381d7, d6efaa50af62fb0790dd1fd4e7e5506b46312510, 73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1 or 2b658c1c442ec1cd9eec5ead98d68662c40fe645.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in– |
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.
References
- git.kernel.org/stable/c/d6efaa50af62fb0790dd1fd4e7e5506b46312510 (opens in a new tab)
- git.kernel.org/stable/c/73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1 (opens in a new tab)
- git.kernel.org/stable/c/eb57dae20fdf6f3069cdc07821fa3bb46de381d7 (opens in a new tab)
- git.kernel.org/stable/c/2b658c1c442ec1cd9eec5ead98d68662c40fe645 (opens in a new tab)