В ядре Linux была устранена следующая уязвимость: net: удалите WARN_ON_ONCE() из проверки dev_fill_forward_path() цикла ipip_fill_forward_path() и ip6_tnl_fill_forward_path() посмотрите маршрут к удаленной конечной точке туннеля и установите ctx->dev на свое устройство, которое является самим туннелем, когда этот маршрут решает обратно в туннель. dev_fill_forward_path() затем не продвигается и совершает поездку WARN_ON_ONCE(last_dev ctx->dev), как только поток пробивается. Эта петля маршрутизации - это конфигурация, которую может настроить любой пользователь CAP_NET_ADMIN, и ip_tunnel_xmit () и ip6_tnl_xmit () уже рассматривают ее как ошибку tx, поэтому удалите предупреждение и просто провалите проход, как это сделал commit 008e7a7c293b («net: удалить WARN_ON_ONCE при доступе к массиву прямого пути») для переполнения стека путей.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net: remove WARN_ON_ONCE() from the dev_fill_forward_path() loop check ipip_fill_forward_path() and ip6_tnl_fill_forward_path() look up the route to the tunnel's remote endpoint and set ctx->dev to its device, which is the tunnel itself when that route resolves back to the tunnel. dev_fill_forward_path() then makes no progress and trips WARN_ON_ONCE(last_dev == ctx->dev) as soon as a flowtable tries to offload a flow through the tunnel. That routing loop is a configuration any CAP_NET_ADMIN user can set up, and ip_tunnel_xmit() and ip6_tnl_xmit() already treat it as a tx error, so remove the warning and just fail the walk, as commit 008e7a7c293b ("net: remove WARN_ON_ONCE when accessing forward path array") did for the path stack overflow.