В ядре Linux устранена следующая уязвимость: netfilter: nft_fwd_netdev: use recursion counter in neigh egress path nft_fwd_neigh может использоваться в цепочках выхода (NF_NETDEV_EGRESS). Когда правило пересылки нацелено на одно и то же устройство или два устройства, neigh_xmit () запускает dev_queue_xmit (), который повторно вводит nf_hook_egress (), вызывая бесконечную рекурсию и переполнение стека. Переместите nf_get_nf_dup_skb_recursion() и NF_RECURSION_LIMIT в общий заголовок nf_dup_netdev.h в качестве статической встроенной линии, чтобы nft_fwd_netdev мог напрямую использовать счетчик рекурсии без экспортированных накладных расходов.
Защитите neigh_xmit() с тем же пределом рекурсии, который уже используется в nf_do_netdev_egress(). [ Updated кэшировать указатель nf_get_nf_dup_skb_recursion. --pablo ]
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_fwd_netdev: use recursion counter in neigh egress path nft_fwd_neigh can be used in egress chains (NF_NETDEV_EGRESS). When the forwarding rule targets the same device or two devices forward to each other, neigh_xmit() triggers dev_queue_xmit() which re-enters nf_hook_egress(), causing infinite recursion and stack overflow. Move the nf_get_nf_dup_skb_recursion() accessor and NF_RECURSION_LIMIT to the shared header nf_dup_netdev.h as a static inline, so that nft_fwd_netdev can use the recursion counter directly without exported function call overhead. Guard neigh_xmit() with the same recursion limit already used in nf_do_netdev_egress(). [ Updated to cache the nf_get_nf_dup_skb_recursion pointer. --pablo ]
Уязвимые продукты 2
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.17
|
6.18.57
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.17
|
7.1
|