CVE-2026-31401 HIGH

CVE-2026-31401: HID: bpf: prevent buffer overflow in hid_hw_request

Vendor Linux
Product Linux
Published April 3, 2026
Last update May 11, 2026

CVSS base score

7.8/10
Attack vector Local
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality High
Integrity High

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

April 3, 2026 CVE published
May 11, 2026 Record updated