aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorJiale Yao <yaojiale02@163.com>2026-10-21 20:04:07 +0800
committerGuenter Roeck <linux@roeck-us.net>2026-11-02 07:00:04 -0800
commitcf8f81babd2e96087dedbb74985bc1781c98f73d (patch)
treec80487c8d048019e303bdbfda0bee7653375ad98 /scripts/Makefile.thinlto
parenthwmon: (corsair-cpro) Cache fan target only after a successful command (diff)
hwmon: (aquacomputer_d5next) reject short status reports
The HID raw_event callback runs before HID core validates the received report length. aqc_raw_event() reads device-specific status fields at fixed offsets, including multi-byte values, without first ensuring that the received buffer contains every field. A truncated report can therefore cause out-of-bounds reads and update hwmon state with unrelated data. The required length differs between supported devices and cannot be derived from the HID report descriptor. Define the minimum length needed by each asynchronous status format, select it while configuring the device, and reject reports that do not contain the last field accessed by that format. Keep the published length zero until probe configuration is complete, which also excludes legacy devices whose status is retrieved through feature reports. Suggested-by: Guenter Roeck <linux@roeck-us.net> Fixes: 0e35f63f7f4e ("hwmon: add driver for Aquacomputer D5 Next") Fixes: 19692f17cd13 ("hwmon: (aquacomputer_d5next) Add support for Aquacomputer Aquastream XT") Cc: stable@vger.kernel.org Signed-off-by: Jiale Yao <yaojiale02@163.com> Link: https://patch.msgid.link/20261021120408.48495-1-yaojiale02@163.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions