CVE-2026-31401

high

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

https://git.kernel.org/stable/c/eb57dae20fdf6f3069cdc07821fa3bb46de381d7

https://git.kernel.org/stable/c/d6efaa50af62fb0790dd1fd4e7e5506b46312510

https://git.kernel.org/stable/c/73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1

https://git.kernel.org/stable/c/2b658c1c442ec1cd9eec5ead98d68662c40fe645

Details

Source: Mitre, NVD

Published: 2026-04-03

Updated: 2026-04-03

Risk Information

CVSS v2

Base Score: 7.2

Vector: CVSS2#AV:L/AC:L/Au:N/C:C/I:C/A:C

Severity: High

CVSS v3

Base Score: 7.8

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

Severity: High

EPSS

EPSS: 0.00018