В ядре Linux была устранена следующая уязвимость: OPP: Fix cleanup ordering Commit 173e02d67494 ("OPP: Initialize scope-based pointers inline») добавлена инициализация для всех указателей. В некоторых случаях порядок был изменен так, что *opp_table был инициализирован после *opp. Это также изменяет порядок зарегистрированных функций очистки.
Когда происходит очистка, это может привести к ошибкам use-after-free, когда последняя ссылка выпущена, и функция выпуска _opp_kref_release пытается получить доступ к уже освобожденному opp->opp_table. Инициализируйте *opp_table перед *opp снова, чтобы исправить это и обеспечить правильный порядок очистки.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: OPP: Fix cleanup ordering Commit 173e02d67494 ("OPP: Initialize scope-based pointers inline") added initialization for all pointers. In some cases, the ordering was changed so that *opp_table was initialized after *opp. This also changes the order of the registered cleanup functions. When the cleanup happens, this can cause use-after-free errors when the last reference is released and the release function _opp_kref_release tries to access the already freed opp->opp_table. Initialize *opp_table before *opp again to fix this and ensure the correct cleanup order.