In the Linux kernel, the following vulnerability has been resolved: HID: bpf: cast size to ssize_t when checking hid_bpf_hw_request As reported by… (CVE-2026-98860)
Description
A vulnerability in the Linux kernel related to the HID subsystem and BPF programs was resolved. The issue involved improper casting of a size variable to size_t when checking hardware request results, causing negative error codes to be misinterpreted as large positive values. This led to hardware errors being silently treated as successes, potentially causing BPF programs to operate on uninitialized or stale data. The fix involved casting the size variable to ssize_t to correctly handle negative error codes.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in the Linux kernel's HID subsystem affected the handling of hardware error codes in BPF programs. When a transport driver returned a negative error code (e.g., -EPIPE), the return value was implicitly promoted to an unsigned size_t type during comparison, causing the negative error to appear as a large positive number. This made the condition (ret > size) true, resulting in the error being treated as a success and the unmodified buffer being copied back. Consequently, BPF programs could process uninitialized or stale data. The issue was fixed by explicitly casting the size variable to ssize_t, ensuring that negative error codes are correctly recognized and handled.
Potential Impact
The vulnerability could cause BPF programs in the Linux kernel to operate on uninitialized or stale data due to hardware errors being misinterpreted as successful operations. This could lead to incorrect program behavior or data integrity issues within the kernel's HID subsystem. There is no indication of remote code execution or privilege escalation from the provided data.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to address this vulnerability by casting the size variable to ssize_t to properly handle negative error codes. Users should apply the official kernel updates that include this fix. No alternative mitigations are indicated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-243p-r44x-jh77
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98860"]
Threat ID: 6ad520a92cdf04f656993899
Added to database: 10/18/2026, 19:40:25 UTC
Last enriched: 10/18/2026, 22:16:41 UTC
Last updated: 10/18/2026, 22:16:41 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.