Ad

CVE-2026-99446

NONE EPSS 0.22%
Обновлено 23 ноября 2026
Linux
Параметр Значение
Поставщик Linux
Публичный эксплойт Нет

В ядре Linux была устранена следующая уязвимость: phy: core: Fix race-condition between _of_phy_get() and try_module_get() Sashiko спросил во время обзора патча, есть ли у существующего шаблона использования условие гонки; в частности, в of_phy_get() возможно ли между возвращением из _of_phy_get() и запуском try_module_get(), что модуль может быть несвязанным, ведущим к use-after-free. Глядя на код, кажется, что это так, нет никакой связи между phy и модулем в примитивной синхронизации. Использование phy_provider_mutex в phy_get () обеспечит связь между возвращаемым указателем phy и module_get (), натыкающимся на количество ссылок на модуль.

Изменить phy_get(), of_phy_get() и devm_of_phy_get_by_index(), чтобы исправить один и тот же шаблон использования. phy_provider_unregister() должен взять phy_provider_mutex, поэтому внесение поправок в phy_get()/of_phy_get() гарантирует, что тот же мьютекс не существует use-after-free.

Показать оригинальное описание (EN)

In the Linux kernel, the following vulnerability has been resolved: phy: core: Fix race-condition between _of_phy_get() and try_module_get() Sashiko asked during a patch review if the existing usage pattern had a race condition; specifically in of_phy_get() if it was possible between returning from _of_phy_get() and running try_module_get() that a module might be unbound leading to use-after-free. Looking at the code this appears to be so, there is no linkage between the phy and module under a synchronisation primitive. Using the phy_provider_mutex in phy_get() will ensure there is a link between the returned phy pointer and the module_get() bumping the module reference count. Amend phy_get(), of_phy_get() and devm_of_phy_get_by_index() to fix the same usage pattern. phy_provider_unregister() must take the phy_provider_mutex so amending phy_get()/of_phy_get() to take that same mutex guarantees there is no use-after-free.