В ядре Linux устранена следующая уязвимость:
sctp: отключить BH перед вызовом udp_tunnel_xmit_skb()
Ожидается, что udp_tunnel_xmit_skb()/udp_tunnel6_xmit_skb() будут работать с
БХ отключен. После фиксации 6f1a9140ecda («добавьте ограничение рекурсии xmit в
туннельные функции xmit"), по пути:
udp(6)_tunnel_xmit_skb() -> ip(6)tunnel_xmit()
dev_xmit_recursion_inc()/dec() должен оставаться сбалансированным на том же процессоре. Без local_bh_disable() контекст может перемещаться между процессорами, что может
разорвите пару приращения/убавления.
Это может привести к неправильному уровню рекурсии.
обнаружение и отбрасывание пакетов в ip(6)_tunnel_xmit() или
__dev_queue_xmit(). Исправьте это, отключив BH для путей xmit SCTP UDP IPv4 и IPv6. В моем тестировании после включения SCTP через UDP:
# ip net exec ha sysctl -w net.sctp.udp_port=9899
# ip net exec ha sysctl -w net.sctp.encap_port=9899
# ip net exec hb sysctl -w net.sctp.udp_port=9899
# ip net exec hb sysctl -w net.sctp.encap_port=9899
# ip net exec ha iperf3 -s
- без этого патча:
# ip net exec hb iperf3 -c 192.168.0.1 --sctp
[ 5] 0,00–10,00 с 37,2 МБ 31,2 Мбит/с отправитель
[ 5] 0,00-10,00 с 37,1 МБ 31,1 Мбит/с приемник
- с этим патчем:
# ip net exec hb iperf3 -c 192.168.0.1 --sctp
[ 5] 0,00–10,00 с 3,14 ГБ 2,69 Гбит/с отправитель
[ 5] 0,00-10,00 с 3,14 ГБ 2,69 Гбит/с приемник
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: sctp: disable BH before calling udp_tunnel_xmit_skb() udp_tunnel_xmit_skb() / udp_tunnel6_xmit_skb() are expected to run with BH disabled. After commit 6f1a9140ecda ("add xmit recursion limit to tunnel xmit functions"), on the path: udp(6)_tunnel_xmit_skb() -> ip(6)tunnel_xmit() dev_xmit_recursion_inc()/dec() must stay balanced on the same CPU. Without local_bh_disable(), the context may move between CPUs, which can break the inc/dec pairing. This may lead to incorrect recursion level detection and cause packets to be dropped in ip(6)_tunnel_xmit() or __dev_queue_xmit(). Fix it by disabling BH around both IPv4 and IPv6 SCTP UDP xmit paths. In my testing, after enabling the SCTP over UDP: # ip net exec ha sysctl -w net.sctp.udp_port=9899 # ip net exec ha sysctl -w net.sctp.encap_port=9899 # ip net exec hb sysctl -w net.sctp.udp_port=9899 # ip net exec hb sysctl -w net.sctp.encap_port=9899 # ip net exec ha iperf3 -s - without this patch: # ip net exec hb iperf3 -c 192.168.0.1 --sctp [ 5] 0.00-10.00 sec 37.2 MBytes 31.2 Mbits/sec sender [ 5] 0.00-10.00 sec 37.1 MBytes 31.1 Mbits/sec receiver - with this patch: # ip net exec hb iperf3 -c 192.168.0.1 --sctp [ 5] 0.00-10.00 sec 3.14 GBytes 2.69 Gbits/sec sender [ 5] 0.00-10.00 sec 3.14 GBytes 2.69 Gbits/sec receiver
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 3
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
6.12.95
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.37
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.10
|