В ядре Linux устранена следующая уязвимость:
crypto: ccp — исправление использования после освобождения на пути к ошибке
В пути ошибки sev_tsm_init_locked() код разыменовывает 't'
после того, как он был освобожден с помощью kfree(). Оператор pr_err() пытается
для доступа к t->tio_en и t->tio_init_done после того, как память была
выпущен. Переместите вызов pr_err() перед kfree(t), чтобы получить доступ к полям, пока
память еще действительна.
Об этой проблеме сообщил статический анализатор Smatch.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: crypto: ccp - Fix use-after-free on error path In the error path of sev_tsm_init_locked(), the code dereferences 't' after it has been freed with kfree(). The pr_err() statement attempts to access t->tio_en and t->tio_init_done after the memory has been released. Move the pr_err() call before kfree(t) to access the fields while the memory is still valid. This issue reported by Smatch static analyser