В ядре Linux устранена следующая уязвимость:
sock: повторить проверку защиты psock и ULP
Зафиксируйте 8a59f9d1e3d4 («sock: введите sk->sk_prot->psock_update_sk_prot()»)
проверка inet_csk_has_ulp(sk) перемещена из sk_psock_init() в
новая функция tcp_bpf_update_proto(). Я предполагаю, что это
было сделано для того, чтобы можно было создавать psocks для сокетов, отличных от Inet. К сожалению, путь уничтожения psock включает в себя ULP.
раскрутка, поэтому нам нужно завершить работу самой sk_psock_init().
В противном случае, если ULP уже присутствует, мы заметим это позже:
и вызовите tcp_update_ulp() с sk_proto ULP.
само по себе, что, скорее всего, приведет к зацикливанию ULP.
его обратные вызовы.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: sock: redo the psock vs ULP protection check Commit 8a59f9d1e3d4 ("sock: Introduce sk->sk_prot->psock_update_sk_prot()") has moved the inet_csk_has_ulp(sk) check from sk_psock_init() to the new tcp_bpf_update_proto() function. I'm guessing that this was done to allow creating psocks for non-inet sockets. Unfortunately the destruction path for psock includes the ULP unwind, so we need to fail the sk_psock_init() itself. Otherwise if ULP is already present we'll notice that later, and call tcp_update_ulp() with the sk_proto of the ULP itself, which will most likely result in the ULP looping its callbacks.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.13
|
5.15.51
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
5.18.8
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:5.19:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:5.19:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:5.19:rc3:*:*:*:*:*:*
|
— | — |