ZeroHour

CVE-2026-89729

mass

Out-of-bounds kernel write in Linux HID sensor-hub feature report parsing

CVSS 3.1
8.8 high
EPSS
Published
()
Modified
AI analysis

The Linux kernel's HID sensor-hub driver contains an out-of-bounds write in sensor_hub_get_feature(): although the return value is clamped to the caller's buffer size, the copy loop writes field->report_size / 8 bytes for each report value regardless of the actual buffer. A malicious HID descriptor advertising an oversized feature field can therefore overflow the small stack buffers that IIO HID sensor callers typically supply (for example, a single 32-bit integer), corrupting kernel stack memory. Exploitation requires an attacker to supply a malicious HID descriptor, meaning a crafted or compromised physical HID device (such as a malicious USB sensor device) attached to the target system, after which the flaw yields kernel memory corruption with potential for privilege escalation (CVSS 8.8, high impact to confidentiality, integrity, and availability). All systems running kernel versions before the upstream fix, with the HID sensor-hub driver present and HID sensor consumers in use, are potentially affected; the issue is resolved by rejecting feature fields needing more than one 32-bit slot per value and clamping each copy to the remaining buffer. No public proof of concept is known and there is no evidence of in-the-wild exploitation.

What to do: Apply distribution kernel updates or stable backports containing the sensor-hub fix as soon as they are available. Because exploitation requires a malicious attached HID device, enforce physical access controls and USB device-allowlisting policies (e.g., via USBGuard) on sensitive Linux endpoints. On systems that do not use HID-based sensors, consider blacklisting the hid-sensor-hub module as a hardening measure, noting that this may disable ambient light sensors, accelerometers, or rotation detection on some laptops.

Affected
Linux kernel
Estimated exposure
massPotentially hundreds of millions of Linux devices (driver ships in mainline and major distribution kernels), but exploitable only where an attacker can attach… — The HID sensor-hub driver is part of the upstream kernel and is built into most distribution kernels (common on sensor-equipped laptops), so the vulnerable code is broadly deployed, though the adjacent/physical attack vector means no…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

In the Linux kernel, the following vulnerability has been resolved: HID: sensor-hub: Fix out-of-bounds write in sensor_hub_get_feature sensor_hub_get_feature() clamps its return value to the caller's buffer size, but the copy loop still copies field->report_size / 8 bytes for each report value. A malicious HID descriptor can advertise a large feature field size while an IIO caller supplies a small stack buffer, such as a single s32, causing an out-of-bounds write. HID core stores parsed report values in __s32 slots and clamps extracted values to 32 bits. Reject feature fields that require more than one slot per value, guard the total byte count calculation, and clamp each per-value copy to the remaining caller buffer.

Vector
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.