CVE-2026-31401

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

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*

History

24 Jul 2026, 22:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: HID: bpf: prevenir desbordamiento de búfer en hid_hw_request Actualmente, el valor devuelto se considera siempre válido. Sin embargo, al interactuar con HID-BPF, el valor de retorno puede ser arbitrariamente grande, porque es el valor de retorno de dispatch_hid_bpf_raw_requests(), que llama a las struct_ops y no tenemos garantías de que el valor tenga sentido.

20 May 2026, 12:19

Type Values Removed Values Added
First Time Linux linux Kernel
Linux
CPE cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
CWE CWE-787
References () https://git.kernel.org/stable/c/2b658c1c442ec1cd9eec5ead98d68662c40fe645 - () https://git.kernel.org/stable/c/2b658c1c442ec1cd9eec5ead98d68662c40fe645 - Patch
References () https://git.kernel.org/stable/c/73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1 - () https://git.kernel.org/stable/c/73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1 - Patch
References () https://git.kernel.org/stable/c/d6efaa50af62fb0790dd1fd4e7e5506b46312510 - () https://git.kernel.org/stable/c/d6efaa50af62fb0790dd1fd4e7e5506b46312510 - Patch
References () https://git.kernel.org/stable/c/eb57dae20fdf6f3069cdc07821fa3bb46de381d7 - () https://git.kernel.org/stable/c/eb57dae20fdf6f3069cdc07821fa3bb46de381d7 - Patch

27 Apr 2026, 14:16

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.8

03 Apr 2026, 16:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-04-03 16:16

Updated : 2026-07-24 22:10


NVD link : CVE-2026-31401

Mitre link : CVE-2026-31401

CVE.ORG link : CVE-2026-31401


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-787

Out-of-bounds Write