---
id: CVE-2026-72352
title: 'HID: bpf: Fix hid_bpf_get_data() range check'
summary: |-
  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…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cvssSource: cna
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 658ee5a64fcfbbf758447fa3af425729eaabb0dc <
    ca373549140dfb386aa2de38364b58441b1f4885
  - >-
    Linux >= 658ee5a64fcfbbf758447fa3af425729eaabb0dc <
    61a959b82f1aecd6d2d35c208013dd077cac9d10
  - >-
    Linux >= 658ee5a64fcfbbf758447fa3af425729eaabb0dc <
    f81bc5a709dcbaf2a3bbef4ca7167f93900cc39f
  - >-
    Linux >= 658ee5a64fcfbbf758447fa3af425729eaabb0dc <
    2d044049421dd48212b28646a850749d4a2d57fa
  - Linux 6.3
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-16T18:47:53.495070Z'
published: '2026-08-15'
updated: '2026-10-16'
sourceUpdated: '2026-10-16T18:55:20.122Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-72352'
references:
  - url: 'https://git.kernel.org/stable/c/ca373549140dfb386aa2de38364b58441b1f4885'
  - url: 'https://git.kernel.org/stable/c/61a959b82f1aecd6d2d35c208013dd077cac9d10'
  - url: 'https://git.kernel.org/stable/c/f81bc5a709dcbaf2a3bbef4ca7167f93900cc39f'
  - url: 'https://git.kernel.org/stable/c/2d044049421dd48212b28646a850749d4a2d57fa'
tags:
  - cve.org
epss: 0.00175
epssPercentile: 0.06551
ingestedAt: '2026-10-16T19:46:24.405Z'
---

## Overview

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

- `Linux >= 658ee5a64fcfbbf758447fa3af425729eaabb0dc < ca373549140dfb386aa2de38364b58441b1f4885`
- `Linux >= 658ee5a64fcfbbf758447fa3af425729eaabb0dc < 61a959b82f1aecd6d2d35c208013dd077cac9d10`
- `Linux >= 658ee5a64fcfbbf758447fa3af425729eaabb0dc < f81bc5a709dcbaf2a3bbef4ca7167f93900cc39f`
- `Linux >= 658ee5a64fcfbbf758447fa3af425729eaabb0dc < 2d044049421dd48212b28646a850749d4a2d57fa`
- `Linux 6.3`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
