Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2026-31401

HID: bpf: prevent buffer overflow in hid_hw_request

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 8bd0488b5ea58655ad6fdcbe0408ef49b16882b1 to < d6efaa50af62fb0790dd1fd4e7e5506b46312510affected
  • 8bd0488b5ea58655ad6fdcbe0408ef49b16882b1 to < 73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1affected
  • 8bd0488b5ea58655ad6fdcbe0408ef49b16882b1 to < eb57dae20fdf6f3069cdc07821fa3bb46de381d7affected
  • 8bd0488b5ea58655ad6fdcbe0408ef49b16882b1 to < 2b658c1c442ec1cd9eec5ead98d68662c40fe645affected

Linux Linux

Default version status: affected

  • 6.11affected
  • 0 to < 6.11unaffected
  • 6.12.78 to ≤ 6.12.*unaffected
  • 6.18.20 to ≤ 6.18.*unaffected
  • 6.19.10 to ≤ 6.19.*unaffected
  • 7.0 to ≤ *unaffected

References