В ядре Linux была устранена следующая уязвимость: HID: core: quiesce input in hid_hw_stop(), чтобы предотвратить вызов use-after-free Водительский зонд вызывает hid_device_io_start(), чтобы включить доставку ввода, затем терпит неудачу на более позднем этапе инициализации и отматывается через hid_hw_stop(). Расслабление освобождает struct hidraw через hidraw_disconnect(), в то время как отчеты HID в полете могут по-прежнему работать на другом CPU, снимая ссылку с освобожденного объекта через hidraw_report_event(). syzbot сообщает о результирующем use-after-free для драйвера corsair-psu HID. Edward Adam Davis опубликовал исправление для драйвера для corsair-psu, которое добавляет явный hid_device_io_stop() перед hid_hw_stop() в пути ошибки зонда («hwmon: prevent packets from going to driver for probe», 2026-04-28).
Аудит дерева показывает, что 15 драйверов вызывают hid_device_io_start(); 7 также называют hid_device_io_stop(), а 8 — нет: драйверы, вызывающие hid_device_io_start() без соответствия hid_device_io_stop() перед hid_hw_stop(): drivers/hwmon/corsair-psu.c (фикс, размещенный Edward) drivers/hwmon/corsair-cpro.c drivers/hwmon/nzxt-kraken3.c drivers/hwmon/nzxt-smart2.c drivers/hwmon/gigabyte_waterforce.c drivers/hid/hid-logitech-dj.c drivers/hid/hid-nintendo.c drivers/hid/hid-mcp2221.c Roughly, показывает половину всех абонентов API. Централизуйте quiesce в hid_hw_stop(), чтобы абонентам не приходилось запоминать соответствующую остановку: если драйвер оставил hdev->io_started верным при входе, вызовите hid_device_io_stop() перед hid_disconnect(). Для 7 драйверов, которые уже правильно вызывают hid_device_io_stop(), hdev->io_started является ложным при входе, защитное короткое замыкание и поведение не изменилось.
Нет исправлений: тег, потому что затронутые драйверы получили свои вызовы hid_device_io_start () независимо в течение многих лет; ошибка является общеклассовым злоупотреблением API, а не регрессией от одного фиксатора.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: HID: core: quiesce input in hid_hw_stop() to prevent use-after-free A driver's probe calls hid_device_io_start() to enable input delivery, then fails at a later initialization step and unwinds via hid_hw_stop(). The unwind frees struct hidraw via hidraw_disconnect() while in-flight HID reports may still be running on another CPU, dereferencing the freed object through hidraw_report_event(). syzbot reports the resulting use-after-free for the corsair-psu HID driver. Edward Adam Davis posted a per-driver fix for corsair-psu that adds an explicit hid_device_io_stop() before hid_hw_stop() in the probe error path ("hwmon: prevent packets from going to driver for probe", 2026-04-28). Auditing the tree shows 15 drivers call hid_device_io_start(); 7 also call hid_device_io_stop() and 8 do not: drivers calling hid_device_io_start() without a matching hid_device_io_stop() before hid_hw_stop(): drivers/hwmon/corsair-psu.c (fix posted by Edward) drivers/hwmon/corsair-cpro.c drivers/hwmon/nzxt-kraken3.c drivers/hwmon/nzxt-smart2.c drivers/hwmon/gigabyte_waterforce.c drivers/hid/hid-logitech-dj.c drivers/hid/hid-nintendo.c drivers/hid/hid-mcp2221.c Roughly half of all callers of the API are exposed. Centralize the quiesce in hid_hw_stop() so callers do not have to remember the matching stop: if a driver has left hdev->io_started true on entry, call hid_device_io_stop() before hid_disconnect(). For the 7 drivers that already call hid_device_io_stop() correctly, hdev->io_started is false on entry, the guard short-circuits, and behavior is unchanged. No Fixes: tag because the affected drivers gained their hid_device_io_start() calls independently over years; the bug is a class-wide API misuse rather than a regression from one commit.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 8
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
— |
5.10.270
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
— |
5.15.221
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
— |
6.1.188
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
— |
6.6.157
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
— |
6.12.110
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
— |
6.18.52
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
— |
7.2.6
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
— |
7.3-rc1
|