CVE-2026-98860

HID: bpf: cast size to ssize_t when checking hid_bpf_hw_request

N/A
Published: October 18, 2026 at 03:51 PM UTC
Updated: October 19, 2026 at 10:19 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
N/A
Exploit prediction
EPSS 0.2%

Description

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 Sashiko: If a transport driver encounters a hardware error and returns a negative error code such as -EPIPE, ret is implicitly promoted to size_t when compared against size. This causes the negative error code to evaluate as a large positive number, making the (ret > size) condition true. This silently converts the hardware error into a success return value and copies the unmodified buffer back, which could leave BPF programs operating on uninitialized or stale data. Fix this by casting size into ssize_t to return the actual negative error code.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2b658c1c442ec1cd9eec5ead98d68662c40fe6456.12.786.18.206.19.107.073c5b5aea1c443239c8cb4191b4af7a4bd6fd7b1d6efaa50af62fb0790dd1fd4e7e5506b46312510eb57dae20fdf6f3069cdc07821fa3bb46de381d7
Vendor states this is fixed in 6.12.113 (unaffected)
Vendor states this is fixed in 6.18.56 (unaffected)
Vendor states this is fixed in 7.2.10 (unaffected)
Vendor states this is fixed in 7.3 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

Quick Info

StatusRECEIVED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card