В ядре Linux устранена следующая уязвимость: net: dsa: sja1105: flower: reject cross-chip redirect dsa_port_from_netdev() может возвращать допустимый порт с другого чипа коммутатора. Программирование индекса порта другого чипа в локальном оборудовании вызывает перенаправление на неправильный порт или доступ out-of-bounds, если индекс превышает количество портов локального чипа. Примените минимальное исправление, которое добавляет проверку, чтобы поймать этот случай и настроить сообщение extack.
Когда cls->common.skip_sw не установлен, операция может вместо этого перенаправить на порт вверх по течению и позволить программному обеспечению или коммутатору(ам) вверх по течению обрабатывать вперед, но это не рассматривается здесь.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net: dsa: sja1105: flower: reject cross-chip redirect dsa_port_from_netdev() may return a valid port from a different switch chip. Programming another chip's port index into the local hardware causes redirection to the wrong port, or an out-of-bounds access if the index exceeds the local chip's port count. Apply a minimal fix that adds a check to catch this case and adjusts the extack message. When cls->common.skip_sw is not set, the operation could instead redirect to the upstream port and let the software or upstream switch(es) handle the forward, but that is not addressed here.