Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2026-72352

HID: bpf: Fix hid_bpf_get_data() range check

Description

In the Linux kernel, the following vulnerability has been resolved: HID: bpf: Fix hid_bpf_get_data() range check hid_bpf_get_data() returns a pointer into the HID-BPF context data when the caller-provided offset and size fit inside ctx->allocated_size. The current check adds rdwr_buf_size and offset before comparing the result against ctx->allocated_size. Since both values are unsigned, a very large size can wrap the sum below ctx->allocated_size and make the helper return a pointer even though the requested range is not contained in the backing buffer. Use check_add_overflow() to reject wrapped range ends before comparing the requested range end against ctx->allocated_size.

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

  • 658ee5a64fcfbbf758447fa3af425729eaabb0dc to < f72176bde0cc0e709e41ab170c71e8f229232af6affected
  • 658ee5a64fcfbbf758447fa3af425729eaabb0dc to < ca373549140dfb386aa2de38364b58441b1f4885affected
  • 658ee5a64fcfbbf758447fa3af425729eaabb0dc to < 61a959b82f1aecd6d2d35c208013dd077cac9d10affected
  • 658ee5a64fcfbbf758447fa3af425729eaabb0dc to < f81bc5a709dcbaf2a3bbef4ca7167f93900cc39faffected
  • 658ee5a64fcfbbf758447fa3af425729eaabb0dc to < 2d044049421dd48212b28646a850749d4a2d57faaffected

Linux Linux

Default version status: affected

  • 6.3affected
  • 0 to < 6.3unaffected
  • 6.6.160 to ≤ 6.6.*unaffected
  • 6.12.97 to ≤ 6.12.*unaffected
  • 6.18.40 to ≤ 6.18.*unaffected
  • 7.1.5 to ≤ 7.1.*unaffected
  • 7.2 to ≤ *unaffected

References