CVE-2026-31401

published 3 Apr 2026 · updated 19 Oct 2026

HID: bpf: prevent buffer overflow in hid_hw_request

7.8HighCVSS 7.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 2b658c1c442ec1cd9eec5ead98d68662c40fe645, Kernel 73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1, Kernel d6efaa50af62fb0790dd1fd4e7e5506b46312510 and 1 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.11, >=8bd0488b5ea58655ad6fdcbe0408ef49b16882b1 <2b658c1c442ec1cd9eec5ead98d68662c40fe645, >=8bd0488b5ea58655ad6fdcbe0408ef49b16882b1 <73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1, >=8bd0488b5ea58655ad6fdcbe0408ef49b16882b1 <d6efaa50af62fb0790dd1fd4e7e5506b46312510, >=8bd0488b5ea58655ad6fdcbe0408ef49b16882b1 <eb57dae20fdf6f3069cdc07821fa3bb46de381d72b658c1c442ec1cd9eec5ead98d68662c40fe645, 73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1, d6efaa50af62fb0790dd1fd4e7e5506b46312510, eb57dae20fdf6f3069cdc07821fa3bb46de381d7

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-31401 severity on Zeptric[![CVE-2026-31401](https://zeptric.io/badge/cve/CVE-2026-31401.svg)](https://zeptric.io/cve/CVE-2026-31401)