В ядре Linux была устранена следующая уязвимость: net: stmmac: clear stale buf->page после рециркуляции на skb build failure In stmmac_rx(), когда napi_build_skb() терпит неудачу, страница дескриптора возвращается обратно в пул страниц с page_pool_recycle_direct(), но buf->page остается, указывая на переработанную страницу, в отличие от любого другого сайта потребления в функции, которая очищает стрелку. С устаревшим указателем stmmac_rx_refill() пропускает выделение замены и программирует уже переработанную страницу обратно в дескриптор RX. Очистите buf->page на пути отказа napi_build_skb (), чтобы поддерживать жизненный цикл буфера в соответствии с другими сайтами потребления.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net: stmmac: clear stale buf->page after recycling on skb build failure In stmmac_rx(), when napi_build_skb() fails the descriptor page is recycled back to the page pool with page_pool_recycle_direct(), but buf->page is left pointing at the recycled page, unlike every other consumption site in the function which clears the pointer after handing the page away. With the stale pointer stmmac_rx_refill() skips the replacement allocation and programs the already-recycled page back into the RX descriptor. Clear buf->page on the napi_build_skb() failure path to keep the buffer lifecycle consistent with the other consumption sites.