Kernel crash via unchecked HID-BPF return length
Published Apr 3, 2026 · Updated Apr 3, 2026
Out-of-bounds write in Linux Kernel allows local users with HID-BPF loading rights to crash the running kernel through a crafted program. hid_bpf_hw_request accepts the arbitrary positive length returned by dispatch_hid_bpf_raw_requests and passes it to memcpy without limiting it to the caller buffer. Loading the required HID-BPF program needs special local permissions; successful triggering overwrites kernel memory and can interrupt the host by crashing the running kernel.
Summary
What happened
Out-of-bounds write in Linux Kernel allows local users with HID-BPF loading rights to crash the running kernel through a crafted program. hid_bpf_hw_request accepts the arbitrary positive length returned by dispatch_hid_bpf_raw_requests and passes it to memcpy without limiting it to the caller buffer. Loading the required HID-BPF program needs special local permissions; successful triggering overwrites kernel memory and can interrupt the host by crashing the running kernel.
The record
- CVE
- CVE-2026-31401
- Published
- Apr 3, 2026
- Updated
- Apr 3, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux Kernel
- Classifications
- CWE-787, T1499.004
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Apr 3, 2026CVE publishedPublication date reported by the CVE source.
- Apr 3, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=6.11
- Affected versionversion=8bd0488b5ea58655ad6fdcbe0408ef49b16882b1 <2b658c1c442ec1cd9eec5ead98d68662c40fe645
- Affected versionversion=8bd0488b5ea58655ad6fdcbe0408ef49b16882b1 <73c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1
- Affected versionversion=8bd0488b5ea58655ad6fdcbe0408ef49b16882b1 <d6efaa50af62fb0790dd1fd4e7e5506b46312510
- Affected versionversion=8bd0488b5ea58655ad6fdcbe0408ef49b16882b1 <eb57dae20fdf6f3069cdc07821fa3bb46de381d7
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo