HID: sensor-hub: Fix out-of-bounds write in sensor_hub_get_feature (Linux Linux)

CVE-2026-89729
HIGH 8.8

At a glance

Source
NVD
EPSS
EPSS 0.36 % · percentile 29 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

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.

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 8.8CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 8.8CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected 5459ada2b3cd69e6bf1b0c034feb810975d0072b < 1c0463f0f028801a933f090cd2695f132635b374 ; affected 5459ada2b3cd69e6bf1b0c034feb810975d0072b < 4145aa149a32e4b35d5d47e380d0c6c438b4e6fe ; affected 5459ada2b3cd69e6bf1b0c034feb810975d0072b < 8bf8aaf2f74de64f801eb30bc38927dba1f8e40a ; affected 5459ada2b3cd69e6bf1b0c034feb810975d0072b < c5c60260a07e627084e792ea959ab468ccfa4d50 ; affected 5459ada2b3cd69e6bf1b0c034feb810975d0072b < fa95b14198b6c8ea721b4784f466d3c2c2bac83a ; affected 5459ada2b3cd69e6bf1b0c034feb810975d0072b < 9f43499ce6458a572b781f6bb46c464ab59fa825
Linux · Linuxaffected 4.9 ; unaffected 0 < 4.9 ; unaffected 5.10.270 ≤ 5.10.* ; unaffected 5.15.221 ≤ 5.15.* ; unaffected 6.1.188 ≤ 6.1.* ; unaffected 6.6.157 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD