В ядре Linux устранена следующая уязвимость:
mptcp: pm: ADD_ADDR rtx: бесплатный ск, если последний
Когда ADD_ADDR повторно передается, sk сохраняется в sk_reset_timer(),
и выпущен в конце. Если в этот момент это была последняя удерживаемая ссылка, sk будет
не освободиться. Тогда вместо __sock_put() следует вызывать sock_put().
Но этого недостаточно: если это последняя ссылка, sock_put() вызовет
sk_free(), который в конечном итоге вызовет sk_stop_timer_sync() на том же самом
таймер и бесконечное ожидание завершения. Поэтому необходимо отметить это
таймер выполняется в конце обработчика таймера, когда он еще не был
перенесено, чтобы не вызывать sk_stop_timer_sync() «само по себе».
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: mptcp: pm: ADD_ADDR rtx: free sk if last When an ADD_ADDR is retransmitted, the sk is held in sk_reset_timer(), and released at the end. If at that moment, it was the last reference being held, the sk would not be freed. sock_put() should then be called instead of __sock_put(). But that's not enough: if it is the last reference, sock_put() will call sk_free(), which will end up calling sk_stop_timer_sync() on the same timer, and waiting indefinitely to finish. So it is needed to mark that the timer is done at the end of the timer handler when it has not been rescheduled, not to call sk_stop_timer_sync() on "itself".
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 6
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.10
|
6.6.142
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.92
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.30
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.7
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
|
— | — |