Katalog CVE

CVE-2026-97582

Nieznane
Opublikowano: Przetłumaczono: NVD NIST

Streszczenie

W jądrze Linux w sterowniku hwmon gpio-fan występuje użycie po zwolnieniu (use-after-free) w pracy alarmowej. Kolejkowana praca alarmowa nie jest anulowana, a po odwiązaniu sterownika może wykonać się po zwolnieniu pamięci.

Ocena ryzyka

Użycie po zwolnieniu może prowadzić do awarii systemu lub potencjalnego wykonania dowolnego kodu.

Rekomendacja

Zastosuj poprawkę z jądra Linux, która używa devm_work_autocancel() i rejestruje ją przed przerwaniem, aby anulować pracę przed zwolnieniem zasobów.

Inne podatności w Linux kernel

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

In the Linux kernel, the following vulnerability has been resolved: hwmon: (gpio-fan) Fix use-after-free in alarm work fan_alarm_irq_handler() queues fan_data->alarm_work, but nothing cancels it. fan_alarm_notify() dereferences fan_data and its hwmon device. On unbind, devres frees the interrupt, which only waits for the handler itself, and then releases the hwmon device and fan_data, so a pending fan_alarm_notify() can run after those frees. Replace INIT_WORK() with devm_work_autocancel(), registered before devm_request_irq(). The devres cleanup then frees the interrupt first, so no new work can be queued, and cancels the work while fan_data and the hwmon device are still alive. This issue was found by an in-house static analysis tool.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS