Katalog CVE

CVE-2026-97968

Nieznane
Opublikowano: Przetłumaczono: NVD NIST

Streszczenie

W jądrze Linux w sterowniku hwmon corsair-cpro debugfs wpisy były tworzone przed rejestracją urządzenia hwmon. Jeśli rejestracja się nie powiodła, wpisy pozostawały, a po zwolnieniu pamięci przez HID core odczyt jednego z nich prowadził do dereferencji zwolnionego wskaźnika. Poprawka przenosi tworzenie wpisów debugfs po rejestracji urządzenia hwmon.

Ocena ryzyka

Ryzyko obejmuje użycie po zwolnieniu (use-after-free), co może prowadzić do awarii systemu lub potencjalnie do eskalacji uprawnień w przypadku dostępu do debugfs.

Rekomendacja

Zastosuj aktualizację jądra Linux zawierającą tę poprawkę, aby uniknąć podatności na użycie po zwolnieniu.

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: (corsair-cpro) Create debugfs entries after hwmon registration ccp_debugfs_init() registers debugfs files whose private data is the devm allocated ccp. It runs before hwmon_device_register_with_info(), so when that registration fails, ccp_probe() returns with the files still in place. The HID core then frees ccp, and ccp_remove() is not called for a failed probe, so nothing removes them later either. Reading one of the files dereferences the freed pointer. Create the debugfs entries only after the hwmon device has been registered, so no failing path can leave them behind. The two version queries stay where they are. They send USB commands without holding ccp->mutex, which is only safe as long as nothing else can call send_usb_cmd(); once the hwmon device is registered its callbacks can do so concurrently. Only the debugfs creation moves, and it is told which queries succeeded.

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