В ядре Linux устранена следующая уязвимость:
net/sched: act_mirred: исправить неправильное устройство для проверки mac_header_xmit в tcf_blockcast_redir
В tcf_blockcast_redir() при переборе портов блока для перенаправления
пакеты на несколько устройств, запрашивается флаг mac_header_xmit
с неправильного устройства. Цикл отправляет dev_prev, но запрашивает
dev_is_mac_header_xmit(dev) — СЛЕДУЮЩЕЕ устройство в
итерация, а не та, на которую отправляется. Это приводит к тому, что tcf_mirred_to_dev() принимает неверные решения о
следует ли вставлять или вытягивать заголовок MAC.
Когда блок содержит
смешанные типы устройств (например, Ethernet-вет и туннельное устройство),
промежуточные устройства получают неправильный флаг mac_header_xmit, что приводит к
повреждение заголовка skb. В худшем случае skb_push_rcsum с
неправильный mac_len может привести к исчерпанию запаса и панике. Последнее устройство в цикле обрабатывается правильно (строки 365–366 используют
dev_is_mac_header_xmit(dev_prev)), подтверждаю, что это копипаста
надзор за промежуточными устройствами.
Исправьте это, используя dev_prev вместо dev для запроса mac_header_xmit.
соответствует устройству, на которое фактически отправляется сообщение.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net/sched: act_mirred: fix wrong device for mac_header_xmit check in tcf_blockcast_redir In tcf_blockcast_redir(), when iterating block ports to redirect packets to multiple devices, the mac_header_xmit flag is queried from the wrong device. The loop sends to dev_prev but queries dev_is_mac_header_xmit(dev) — which is the NEXT device in the iteration, not the one being sent to. This causes tcf_mirred_to_dev() to make incorrect decisions about whether to push or pull the MAC header. When the block contains mixed device types (e.g., an ethernet veth and a tunnel device), intermediate devices get the wrong mac_header_xmit flag, leading to skb header corruption. In the worst case, skb_push_rcsum with an incorrect mac_len can exhaust headroom and panic. The last device in the loop is handled correctly (line 365-366 uses dev_is_mac_header_xmit(dev_prev)), confirming this is a copy-paste oversight for the intermediate devices. Fix by using dev_prev instead of dev for the mac_header_xmit query, consistent with the device actually being sent to.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 3
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.8
|
6.12.91
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.33
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.10
|