# CVE-2026-72352: HID: bpf: Fix hid_bpf_get_data() range check

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-08-15T05:55:54.809Z
- Modified: 2026-10-21T13:19:35.593Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 658ee5a64fcfbbf758447fa3af425729eaabb0dc before f72176bde0cc0e709e41ab170c71e8f229232af6; from 658ee5a64fcfbbf758447fa3af425729eaabb0dc before ca373549140dfb386aa2de38364b58441b1f4885; from 658ee5a64fcfbbf758447fa3af425729eaabb0dc before 61a959b82f1aecd6d2d35c208013dd077cac9d10; from 658ee5a64fcfbbf758447fa3af425729eaabb0dc before f81bc5a709dcbaf2a3bbef4ca7167f93900cc39f; from 658ee5a64fcfbbf758447fa3af425729eaabb0dc before 2d044049421dd48212b28646a850749d4a2d57fa; 6.3 (not affected: before 6.3; from 6.6.160 up to 6.6.*; from 6.12.97 up to 6.12.*; from 6.18.40 up to 6.18.*; from 7.1.5 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/f72176bde0cc0e709e41ab170c71e8f229232af6>
- <https://git.kernel.org/stable/c/ca373549140dfb386aa2de38364b58441b1f4885>
- <https://git.kernel.org/stable/c/61a959b82f1aecd6d2d35c208013dd077cac9d10>
- <https://git.kernel.org/stable/c/f81bc5a709dcbaf2a3bbef4ca7167f93900cc39f>
- <https://git.kernel.org/stable/c/2d044049421dd48212b28646a850749d4a2d57fa>

## Sources

- CVE List: [CVE-2026-72352](https://www.cve.org/CVERecord?id=CVE-2026-72352), CVE Terms of Use, modified 2026-10-21
- NVD: [CVE-2026-72352](https://nvd.nist.gov/vuln/detail/CVE-2026-72352), Public domain, modified 2026-10-21

---

Page: https://cve.day/CVE-2026-72352 · Whole record: https://cve.day/CVE-2026-72352.json · Rebuilt by cve.day 2026-11-25T22:59:33.092Z
