CVE-2026-72352

HID: bpf: Fix hid_bpf_get_data() range check

State
Published
Severity
7.8 High
Published
Aug 15, 2026
Updated
Oct 21, 2026
Reserved
Aug 9, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 658ee5a64fcfbbf758447fa3af425729eaabb0dc to before f72176bde0cc0e709e41ab170c71e8f229232af6Affected
  • 658ee5a64fcfbbf758447fa3af425729eaabb0dc to before ca373549140dfb386aa2de38364b58441b1f4885Affected
  • 658ee5a64fcfbbf758447fa3af425729eaabb0dc to before 61a959b82f1aecd6d2d35c208013dd077cac9d10Affected
  • 658ee5a64fcfbbf758447fa3af425729eaabb0dc to before f81bc5a709dcbaf2a3bbef4ca7167f93900cc39fAffected
  • 658ee5a64fcfbbf758447fa3af425729eaabb0dc to before 2d044049421dd48212b28646a850749d4a2d57faAffected
LinuxLinux
  • 6.3Affected
  • before 6.3Not affected
  • 6.6.160 through 6.6.*Not affected
  • 6.12.97 through 6.12.*Not affected
  • 6.18.40 through 6.18.*Not affected
  • 7.1.5 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.