Nixpkgs security tracker

Try the new UI
Login with GitHub
⚠️ You are using a production deployment that is still only suitable for demo purposes. Any work done in this might be wiped later without notice.

Suggestion detail

Dismissed
(max. allowed matches exceeded)
created 1 week, 4 days ago Activity log
  • Created & dismissed (max. allowed matches exceeded) suggestion
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 products

Linux
  • <c92693f3ed099401d0383ef35ca1fe1e6ba033de
  • =<7.2.*
  • <bc3d72c44bff17688dc5f3e5132a53b51dae0f04
  • ==4.9
  • <9f43499ce6458a572b781f6bb46c464ab59fa825
  • =<6.18.*
  • <4.9
  • =<6.12.*
  • <fa95b14198b6c8ea721b4784f466d3c2c2bac83a
  • =<*