Description
In the Linux kernel, the following vulnerability has been resolved:

HID: bpf: prevent buffer overflow in hid_hw_request

right now the returned value is considered to be always valid. However,
when playing with HID-BPF, the return value can be arbitrary big,
because it's the return value of dispatch_hid_bpf_raw_requests(), which
calls the struct_ops and we have no guarantees that the value makes
sense.
Published: 2026-04-03
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Kernel buffer overflow
Action: Patch Upgrade
AI Analysis

Impact

The vulnerability is in the Linux HID-BPF subsystem where the return value from dispatch_hid_bpf_raw_requests is treated as a buffer size in hid_hw_request without validation. Because the value can be arbitrarily large, the kernel may attempt to copy more data than a buffer can hold, causing a buffer overflow and potential memory corruption.

Affected Systems

The flaw affects the Linux kernel itself. Any kernel release that contains the vulnerable HID-BPF code path and has not yet applied the patch is considered exposed. The CVE data does not provide a precise version range, so any kernel version from the beginning of the HID-BPF implementation up to the fix should be regarded as at risk.

Risk and Exploitability

The CVSS score of 7.8 indicates high severity. The EPSS score of less than 1 % points to a low probability of exploitation at this time, and the vulnerability is not listed in the CISA KEV catalog, showing no publicly known active exploits. The CVE record does not describe an attack vector or exploitation mechanism; the flaw appears to require that an attacker supplies a custom HID‑BPF program that is processed by the kernel, but this premise is not confirmed by the data.

Generated by OpenCVE AI on April 28, 2026 at 21:44 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that includes the HID-BPF fix.
  • If the patch cannot be applied immediately, disable HID‑BPF support or restrict access to the subsystem to prevent execution of untrusted BPF programs.
  • Monitor the system for abnormal HID traffic or kernel messages that could indicate an attempt to exploit the vulnerability.

Generated by OpenCVE AI on April 28, 2026 at 21:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 27 Apr 2026 14:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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

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, 04 Apr 2026 01:15:00 +0000

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

None

cvssV3_1

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

threat_severity

Moderate


Fri, 03 Apr 2026 16:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: HID: bpf: prevent buffer overflow in hid_hw_request right now the returned value is considered to be always valid. However, when playing with HID-BPF, the return value can be arbitrary big, because it's the return value of dispatch_hid_bpf_raw_requests(), which calls the struct_ops and we have no guarantees that the value makes sense.
Title HID: bpf: prevent buffer overflow in hid_hw_request
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-04-27T14:02:48.567Z

Reserved: 2026-03-09T15:48:24.086Z

Link: CVE-2026-31401

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-04-03T16:16:39.140

Modified: 2026-04-27T14:16:36.033

Link: CVE-2026-31401

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-04-03T00:00:00Z

Links: CVE-2026-31401 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-28T21:45:26Z

Weaknesses