CVE-2026-72352

HID: bpf: Fix hid_bpf_get_data() range check

Published Aug 15, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The flaw in the Linux kernel stems from an unsigned integer overflow (CWE‑190) in the HID‑BPF helper function hid_bpf_get_data(). When an attacker supplies an offset and size that, when summed, wrap around the unsigned boundary, the function mistakenly considers the requested range to be within the allocated buffer. Consequently it returns a pointer that points outside the legitimate bounds, resulting in an out‑of‑bounds read (CWE‑787) that exposes arbitrary kernel memory to the attacker. While this does not directly provide code execution, the ability to read kernel memory can facilitate further attacks such as bypassing kernel address space layout randomization or accelerating other exploits.

Affected Systems

All Linux kernel installations that have not incorporated the commit that introduced the range‑check fix (commit hashes c2d044049, 61a959b82, ca373549, or f81bc5a709) are potentially vulnerable. The affected vendor is Linux; specific version details are not given in the CVE record, so any kernel build lacking the patch is at risk.

Risk and Exploitability

The CVSS score of 7.8 indicates a high severity, and the EPSS score of less than 1% suggests a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector is a malicious HID device or crafted USB input that can invoke hid_bpf_get_data() with an oversized request, requiring that the kernel module or driver exposing the helper is present. While exploitation requires interacting with HID‑BPF functionality, the resulting kernel memory exposure can be critical if combined with other weaknesses. Overall, the risk is moderate to high for environments that allow untrusted HID devices or that rely on kernel modules with HID‑BPF access.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version that contains the commit fixing the range check in hid_bpf_get_data() (e.g., the patch referenced in the CVE references).
  • If an immediate kernel upgrade is not possible, disable or restrict the use of HID‑BPF functionality on untrusted or external devices, or unload the kernel module that registers HID‑BPF contexts until a patch is available.
  • Conduct an audit of connected USB devices and monitor for abnormal HID‑BPF calls, and apply stricter access controls to prevent malicious device manipulation.

Generated by OpenCVE AI on August 22, 2026 at 05:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8887-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8889-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8888-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8887-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8917-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8918-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9003-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9024-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9026-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9040-1 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9043-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9192-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-190
Type Values Removed Values Added
Weaknesses CWE-119
CWE-190
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-119
CWE-190
Type Values Removed Values Added
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.
Title HID: bpf: Fix hid_bpf_get_data() range check
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 21, 2026, 12:44 PM
Reserved
Aug 9, 2026, 3:40 AM
Status
Received
Published
Aug 15, 2026, 6:22 AM
Modified
Oct 21, 2026, 1:19 PM
Severity
Moderate
Public date
Aug 15, 2026, 12:00 AM