CVE-2026-31401Incorrect Calculation of Buffer Size in Linux

Severity
4.4MEDIUM
No vector
EPSS
0.0%
top 93.81%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedApr 3

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 Packages3 packages

Debianlinux/linux_kernel< 6.19.10-1
CVEListV5linux/linux8bd0488b5ea58655ad6fdcbe0408ef49b16882b1d6efaa50af62fb0790dd1fd4e7e5506b46312510+4
debiandebian/linux< linux 6.19.10-1 (forky)

🔴Vulnerability Details

2
OSV
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 i2026-04-03
GHSA
GHSA-whg2-hqg5-6ph3: In the Linux kernel, the following vulnerability has been resolved: HID: bpf: prevent buffer overflow in hid_hw_request right now the returned value2026-04-03

📋Vendor Advisories

2
Red Hat
kernel: HID: bpf: prevent buffer overflow in hid_hw_request2026-04-03
Debian
CVE-2026-31401: linux - In the Linux kernel, the following vulnerability has been resolved: HID: bpf: p...2026

🕵️Threat Intelligence

1
Wiz
CVE-2026-31401 Impact, Exploitability, and Mitigation Steps | Wiz

💬Community

1
Bugzilla
CVE-2026-31401 kernel: HID: bpf: prevent buffer overflow in hid_hw_request2026-04-03
CVE-2026-31401 — Incorrect Calculation of Buffer Size | cvebase