В ядре Linux устранена следующая уязвимость: tcp: Fix potential UAF in reqsk_timer_handler(). Когда миграция сокетов TCP терпит неудачу в inet_ehash_insert() в reqsk_timer_handler(), мы переходим к no_ownership: метка и освобождаем новый reqsk немедленно с __reqsk_free(). Таким образом, мы должны остановить таймер нового reqsk, прежде чем перейти к метке, но таймер может быть пропущен, так как цитируемый коммит, в результате чего UAF.
Поскольку мы находимся в контексте таймера оригинального reqsk, мы можем смело вызывать timer_delete_sync () для нового reqsk. Давайте передадим false в __inet_csk_reqsk_queue_drop(), чтобы остановить таймер нового reqsk.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: tcp: Fix potential UAF in reqsk_timer_handler(). When TCP socket migration fails at inet_ehash_insert() in reqsk_timer_handler(), we jump to the no_ownership: label and free the new reqsk immediately with __reqsk_free(). Thus, we must stop the new reqsk's timer before jumping to the label, but the timer might be missed since the cited commit, resulting in UAF. As we are in the original reqsk's timer context, we can safely call timer_delete_sync() for the new reqsk. Let's pass false to __inet_csk_reqsk_queue_drop() to stop the new reqsk's timer.
Характеристики атаки
Последствия
Строка CVSS v3.1