Vulnerability details
CVE-2026-31401
Linux Linux
HID: bpf: prevent buffer overflow in hid_hw_request
CVSS 3.1
7.8High
Official 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.
CVSS scores
| Score | Version | Source | Vector |
|---|---|---|---|
| 7.8High | 3.1 | CVEProject cvelistV5 (CNA) (Linux) | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
| Vendor | Product | Versions | Source |
|---|---|---|---|
| Linux | Linux | 6.11 | CVEProject cvelistV5 (CNA) |
| Linux | Linux | 8bd0488b5ea58655ad6fdcbe0408ef49b16882b1 ≤ v < d6efaa50af62fb0790dd1fd4e7e5506b46312510 | CVEProject cvelistV5 (CNA) |
| Linux | Linux | 8bd0488b5ea58655ad6fdcbe0408ef49b16882b1 ≤ v < 73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1 | CVEProject cvelistV5 (CNA) |
| Linux | Linux | 8bd0488b5ea58655ad6fdcbe0408ef49b16882b1 ≤ v < eb57dae20fdf6f3069cdc07821fa3bb46de381d7 | CVEProject cvelistV5 (CNA) |
| Linux | Linux | 8bd0488b5ea58655ad6fdcbe0408ef49b16882b1 ≤ v < 2b658c1c442ec1cd9eec5ead98d68662c40fe645 | CVEProject cvelistV5 (CNA) |
References and advisories
4
Kolun on Telegram @kolunsec
Exploited CVEs, key news and a daily digest
Alerts for this product's next CVEsFollow the product to get new vulnerabilities on Telegram.
Details
- Published
- 2026-04-03
- Last updated
- 2026-10-19
- State
- Published
- Assigner (CNA)
- Linux
Exploit prediction (EPSS)
0.13%
Probability of exploitation in 30 days
3.1%
Percentile (among all CVEs)
SSVC assessment (CISA)
- Automatable
- No
- Exploitation
- None
- Technical impact
- Total
Weaknesses (CWE)
- CWE-120Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')