В ядре Linux устранена следующая уязвимость:
net_sched: sch_sfq: исправлен потенциальный сбой при обработке gso_skb. SFQ предполагает, что всегда можно поставить в очередь хотя бы один пакет. Однако после виновного коммита sch->q.len может быть раздут пакетами.
в sch->gso_skb, и можно выполнить enqueue() для пустого qdisc SFQ
путем немедленного падения.
Исправьте sfq_drop() для правильной очистки q->tail в этой ситуации. IP Netns добавить фунт
IP-ссылка добавить тип dev в-lb veth имя узла in-lb netns lb
ethtool -K to-lb tso off # заставить qdisc запросить gso_skb
ip netns exec lb ethtool -K in-lb gro on # включить NAPI
IP-ссылка установить dev to-lb вверх
ip -netns lb link set dev in-lb up
IP-адрес добавить устройство в-lb 192.168.20.1/24
ip -netns lb addr add dev in-lb 192.168.20.2/24
tc qdisc заменить dev to-lb root sfq предел 100
ip netns exec lb netserver
нетперф -H 192.168.20.2 -l 100 &
нетперф -H 192.168.20.2 -l 100 &
нетперф -H 192.168.20.2 -l 100 &
нетперф -H 192.168.20.2 -l 100 &
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net_sched: sch_sfq: fix a potential crash on gso_skb handling SFQ has an assumption of always being able to queue at least one packet. However, after the blamed commit, sch->q.len can be inflated by packets in sch->gso_skb, and an enqueue() on an empty SFQ qdisc can be followed by an immediate drop. Fix sfq_drop() to properly clear q->tail in this situation. ip netns add lb ip link add dev to-lb type veth peer name in-lb netns lb ethtool -K to-lb tso off # force qdisc to requeue gso_skb ip netns exec lb ethtool -K in-lb gro on # enable NAPI ip link set dev to-lb up ip -netns lb link set dev in-lb up ip addr add dev to-lb 192.168.20.1/24 ip -netns lb addr add dev in-lb 192.168.20.2/24 tc qdisc replace dev to-lb root sfq limit 100 ip netns exec lb netserver netperf -H 192.168.20.2 -l 100 & netperf -H 192.168.20.2 -l 100 & netperf -H 192.168.20.2 -l 100 & netperf -H 192.168.20.2 -l 100 &
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 9
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
4.16
|
5.4.295
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.5
|
5.10.239
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.11
|
5.15.186
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.1.142
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.2
|
6.6.94
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.12.34
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.15.3
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*
|
— | — |
|
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
|
— | — |