Katalog CVE

CVE-2025-21915

WysokieCVSS 7.0
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Prawdopodobieństwo exploitacji (EPSS)

Niskie ryzyko
0.19%

Percentyl 9 - wyżej niż 9% wszystkich znanych CVE

Streszczenie

W jądrze Linux w sterowniku CDX (drivers/cdx/cdx.c) funkcja driver_override_show() odczytuje pole driver_override bez blokady, podczas gdy driver_override_store() może je modyfikować, zwalniając starą wartość. Może to prowadzić do użycia po zwolnieniu (UAF) i potencjalnego wycieku adresów jądra.

Ocena ryzyka

Lokalny użytkownik może odczytać adres jądra przez sysfs, co ułatwia ataki typu ASLR bypass. Ponadto może dojść do awarii systemu w wyniku dostępu do zwolnionej pamięci.

Rekomendacja

Zastosuj łatkę jądra Linux, która dodaje blokadę device_lock() w funkcji driver_override_show(), aby zapewnić bezpieczny dostęp współbieżny.

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: cdx: Fix possible UAF error in driver_override_show() Fixed a possible UAF problem in driver_override_show() in drivers/cdx/cdx.c This function driver_override_show() is part of DEVICE_ATTR_RW, which includes both driver_override_show() and driver_override_store(). These functions can be executed concurrently in sysfs. The driver_override_store() function uses driver_set_override() to update the driver_override value, and driver_set_override() internally locks the device (device_lock(dev)). If driver_override_show() reads cdx_dev->driver_override without locking, it could potentially access a freed pointer if driver_override_store() frees the string concurrently. This could lead to printing a kernel address, which is a security risk since DEVICE_ATTR can be read by all users. Additionally, a similar pattern is used in drivers/amba/bus.c, as well as many other bus drivers, where device_lock() is taken in the show function, and it has been working without issues. This potential bug was detected by our experimental static analysis tool, which analyzes locking APIs and paired functions to identify data races and atomicity violations.

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