CVE-2026-31401
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2026-31401 is a buffer overflow vulnerability in the Linux kernel's HID-BPF subsystem, specifically within the hid_hw_request function. The flaw arises because the return value from dispatch_hid_bpf_raw_requests() is treated as always valid without bounds checking, allowing an arbitrarily large value to cause an out-of-bounds write. It affects Linux kernel versions 6.11 through 6.12.x (before 6.12.78), 6.13 through 6.18.x (before 6.18.20), 6.19.x (before 6.19.10), and 7.0 release candidates (rc1–rc4). Disclosed on April 3, 2026, it carries a CVSS v3.1 base score of 7.8 (High) (GitHub Advisory).

Technical details

The root cause is classified as CWE-787 (Out-of-bounds Write). When the HID-BPF subsystem processes hardware requests via hid_hw_request, it calls dispatch_hid_bpf_raw_requests(), which invokes user-controlled struct_ops callbacks. The return value of this call is used without validation, meaning a malicious or buggy BPF program can return an arbitrarily large integer that is subsequently used in a buffer operation, causing a write beyond the intended buffer boundary. Exploitation requires local access with low privileges (e.g., the ability to load BPF programs), and no user interaction is needed (GitHub Advisory).

Impact

Successful exploitation allows a low-privileged local attacker to achieve high impact across all three security dimensions: unauthorized memory reads (confidentiality), arbitrary memory writes (integrity), and kernel crashes (availability). The out-of-bounds write could be leveraged for local privilege escalation, potentially granting an attacker full kernel-level control of the affected system. Lateral movement within a compromised host or container escape scenarios are plausible follow-on consequences (GitHub Advisory).

Mitigation and workarounds

Upgrade the Linux kernel to a patched version: 6.12.78 or later for the 6.11–6.12 branch, 6.18.20 or later for the 6.13–6.18 branch, 6.19.10 or later for the 6.19 branch, or 7.0-rc5 or later for the 7.0 release candidate series. Patches are available in the upstream kernel stable tree (GitHub Advisory). As a temporary workaround on systems that cannot be immediately updated, restrict or disable access to HID-BPF functionality by limiting BPF program loading privileges (e.g., setting kernel.unprivileged_bpf_disabled=1 via sysctl). Amazon Linux 2023 users should apply ALAS2023-2026-1594.

Community reactions

The vulnerability was announced via the Linux kernel CVE mailing list shortly after disclosure and picked up by automated CVE tracking services including VulDB, CVEFeed, and Bluesky CVE bots. The Yocto Project security mailing list also discussed the issue in the context of embedded Linux distributions. No notable independent researcher commentary or significant media coverage has been identified beyond routine CVE aggregation.

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-64557NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoNoJul 29, 2026
CVE-2026-64556NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-devel
NoNoJul 29, 2026
CVE-2026-64555NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-fde-6.14
NoNoJul 27, 2026
CVE-2026-64554NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.14
NoYesJul 27, 2026
CVE-2026-64553NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesJul 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management