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.

SeverityHigh
CVSS7.8
Exploit probability—
ProductLinux Kernel
PublishedApr 3, 2026
First seenApr 3, 2026
Weakness typeCWE-120CWE-120

How to fix

Update
  • linux linux_kernel6.12.78, 6.18.20, 6.19.10 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernel6.11 ≤ v < 6.12.78, 6.13 ≤ v < 6.18.20, 6.19 ≤ v < 6.19.10, 7.06.12.78, 6.18.20, 6.19.10

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.