Linux
HID: sensor-hub: Fix out-of-bounds write in sensor_hub_get_feature
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5459ada2b3cd69e6bf1b0c034feb810975d0072b, < 1c0463f0f028801a933f090cd2695f132635b374
- >= 5459ada2b3cd69e6bf1b0c034feb810975d0072b, < 4145aa149a32e4b35d5d47e380d0c6c438b4e6fe
- >= 5459ada2b3cd69e6bf1b0c034feb810975d0072b, < 8bf8aaf2f74de64f801eb30bc38927dba1f8e40a
- >= 5459ada2b3cd69e6bf1b0c034feb810975d0072b, < c5c60260a07e627084e792ea959ab468ccfa4d50
- >= 5459ada2b3cd69e6bf1b0c034feb810975d0072b, < fa95b14198b6c8ea721b4784f466d3c2c2bac83a
- >= 5459ada2b3cd69e6bf1b0c034feb810975d0072b, < 9f43499ce6458a572b781f6bb46c464ab59fa825
- >= 5459ada2b3cd69e6bf1b0c034feb810975d0072b, < bc3d72c44bff17688dc5f3e5132a53b51dae0f04
- >= 5459ada2b3cd69e6bf1b0c034feb810975d0072b, < c92693f3ed099401d0383ef35ca1fe1e6ba033de
Fixed in 1c0463f0f028801a933f090cd2695f132635b374, 4145aa149a32e4b35d5d47e380d0c6c438b4e6fe, 8bf8aaf2f74de64f801eb30bc38927dba1f8e40a, c5c60260a07e627084e792ea959ab468ccfa4d50, fa95b14198b6c8ea721b4784f466d3c2c2bac83a, 9f43499ce6458a572b781f6bb46c464ab59fa825, bc3d72c44bff17688dc5f3e5132a53b51dae0f04, c92693f3ed099401d0383ef35ca1fe1e6ba033de
- 4.9
Fixed in 0, 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.109, 6.18.50, 7.2.4, 7.3
Mitigation
Upgrade Linux to 1c0463f0f028801a933f090cd2695f132635b374 or 4145aa149a32e4b35d5d47e380d0c6c438b4e6fe or 8bf8aaf2f74de64f801eb30bc38927dba1f8e40a or c5c60260a07e627084e792ea959ab468ccfa4d50 or fa95b14198b6c8ea721b4784f466d3c2c2bac83a or 9f43499ce6458a572b781f6bb46c464ab59fa825 or bc3d72c44bff17688dc5f3e5132a53b51dae0f04 or c92693f3ed099401d0383ef35ca1fe1e6ba033de or later.
Upgrade Linux to 0 or 5.10.270 or 5.15.221 or 6.1.188 or 6.6.157 or 6.12.109 or 6.18.50 or 7.2.4 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.