CVE-2026-31401
Analyzed Analyzed - Analysis Complete

Buffer Overflow in Linux Kernel HID-BPF Could Cause Memory Corruption

Vulnerability report for CVE-2026-31401, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-04-03

Last updated on: 2026-05-20

Assigner: kernel.org

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-04-03
Last Modified
2026-05-20
Generated
2026-07-06
AI Q&A
2026-04-03
EPSS Evaluated
2026-07-05
NVD
EUVD

Affected Vendors & Products

Showing 7 associated CPEs
Vendor Product Version / Range
linux linux_kernel 7.0
linux linux_kernel 7.0
linux linux_kernel 7.0
linux linux_kernel 7.0
linux linux_kernel From 6.13 (inc) to 6.18.20 (exc)
linux linux_kernel From 6.19 (inc) to 6.19.10 (exc)
linux linux_kernel From 6.11 (inc) to 6.12.78 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-787 The product writes data past the end, or before the beginning, of the intended buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in the Linux kernel's HID subsystem related to BPF (Berkeley Packet Filter). Specifically, it involves a buffer overflow in the function hid_hw_request. The issue arises because the return value from dispatch_hid_bpf_raw_requests(), which calls struct_ops, can be arbitrarily large and is currently assumed to always be valid. This lack of validation can lead to a buffer overflow.

Impact Analysis

The buffer overflow vulnerability in the Linux kernel's HID subsystem could potentially allow an attacker to execute arbitrary code, cause a denial of service, or corrupt memory. This could compromise system stability and security, potentially allowing unauthorized access or control over the affected system.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-31401. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart