Katalog CVE

CVE-2026-98397

Nieznane
Opublikowano: Przetłumaczono: NVD NIST

Streszczenie

W module platform/x86 x86-android-tablets jądra Linux funkcja gpio_secondary_fwnode_init() zwalnia referencję do urządzenia na końcu każdej iteracji, podczas gdy devm_add_action_or_reset() zapisuje wskaźnik bez zwiększania licznika referencji. Może to prowadzić do use-after-free podczas demontażu sterownika.

Ocena ryzyka

Use-after-free podczas demontażu sterownika może prowadzić do uszkodzenia pamięci jądra lub awarii systemu.

Rekomendacja

Zaktualizuj jądro Linux do wersji zawierającej poprawkę pobierającą jawną referencję przez get_device() i zwalniającą ją przez put_device() w gpio_secondary_unset().

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: platform/x86: x86-android-tablets: hold device reference for secondary fwnode teardown In gpio_secondary_fwnode_init(), acpi_bus_find_device_by_name() returns a device reference, but the local dev variable is declared with __free(put_device), dropping the reference at the end of each iteration. Meanwhile, devm_add_action_or_reset() saves the dev pointer for gpio_secondary_unset() without incrementing its reference count, which could lead to a use-after-free during driver teardown if the device is released in the interim. Acquire an explicit device reference with get_device() when registering the devres action, and drop it with put_device() inside gpio_secondary_unset().

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