CVE-2026-31401
JSON

7.8high

HID: bpf: prevent buffer overflow in hid_hw_request

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.15% (higher than 4% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 8bd0488b5ea58655ad6fdcbe0408ef49b16882b1 before d6efaa50af62fb0790dd1fd4e7e5506b46312510, from 8bd0488b5ea58655ad6fdcbe0408ef49b16882b1 before 73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1, from 8bd0488b5ea58655ad6fdcbe0408ef49b16882b1 before eb57dae20fdf6f3069cdc07821fa3bb46de381d7, from 8bd0488b5ea58655ad6fdcbe0408ef49b16882b1 before 2b658c1c442ec1cd9eec5ead98d68662c40fe645, 6.11
Not affected: before 6.11, from 6.12.78 up to 6.12.*, from 6.18.20 up to 6.18.*, from 6.19.10 up to 6.19.*, from 7.0 up to *
CVE List
linux linux_kernelfrom 6.11 before 6.12.78, from 6.13 before 6.18.20, from 6.19 before 6.19.10, 7.0NVD

Classification

CWE-120CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (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.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-31401 changed 2026-10-19CVE Terms of Use
NVDCVE-2026-31401 changed 2026-10-19Public domain