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.
Published: 2026-08-15
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

No advisories yet.

History

Wed, 19 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-787
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 17 Aug 2026 17:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-190

Mon, 17 Aug 2026 09:45:00 +0000

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

Mon, 17 Aug 2026 06:00:00 +0000

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'}


Sat, 15 Aug 2026 11:15:00 +0000

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

Sat, 15 Aug 2026 06:00:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:43:09.954Z

Reserved: 2026-08-09T03:40:39.921Z

Link: CVE-2026-72352

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:22:08.633

Modified: 2026-08-17T06:18:39.290

Link: CVE-2026-72352

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-72352 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T05:30:17Z

Weaknesses