CVEvulnerability

CVE-2026-31401

7.8 HIGH Published 2026-04-03 Modified 2026-10-19 Official page ↗
Status
Modified
Published
2026-04-03
Last modified
2026-10-19
Assigner
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS 3.1 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)
7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-120, CWE-787

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 configurations

• linux linux kernel (>= 6.11 < 6.12.78) • linux linux kernel (>= 6.13 < 6.18.20) • linux linux kernel (>= 6.19 < 6.19.10) • linux linux kernel 7.0

Related

Weakness · CWE (2)

  • CWE-120 Buffer Copy without Checking Size of Input weakness
  • CWE-787 Out-of-bounds Write weakness

References