В ядре Linux была устранена следующая уязвимость: net/packet: clear RX owner on VNET header error Commit 61fad6816fc1 («net/packet: tpacket_rcv: out a producer race condition») — добавлен rx_owner_map и заставил tpacket_rcv() заявлять о наличии кольцевого слота V1 или V2 перед преобразованием заголовка. Если преобразование терпит неудачу, путь падения покидает заявленный слот. С однокадровым кольцом TPACKET_V2 неподдерживаемый пакет UDP GSO оставляет единственный слот недоступным, поэтому кольцо также сбрасывает следующий действительный пакет.
Очистить бит владельца на этом пути ошибки. TPACKET_V3 уже очищает свое состояние блока здесь.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net/packet: clear RX owner on VNET header error Commit 61fad6816fc1 ("net/packet: tpacket_rcv: avoid a producer race condition") added rx_owner_map and made tpacket_rcv() claim a V1 or V2 ring slot before converting the virtio-net header. If the conversion fails, the drop path leaves the slot claimed. With a one-frame TPACKET_V2 ring, an unsupported UDP GSO packet leaves the only slot unavailable, so the ring also drops the next valid packet. Clear the ownership bit on this error path. TPACKET_V3 already clears its block state here.