Linux
net: ti: icssg-prueth: Fix memory leak in XDP_DROP for non-zero-copy mode
In the Linux kernel, the following vulnerability has been resolved: net: ti: icssg-prueth: Fix memory leak in XDP_DROP for non-zero-copy mode Page recycling was removed from the XDP_DROP path in emac_run_xdp() to avoid conflicts with AF_XDP zero-copy mode, which uses xsk_buff_free() instead. However, this causes a memory leak when running XDP programs that drop packets in non-zero-copy mode (standard page pool mode). The pages are never returned to the page pool, leading to OOM conditions. Fix this by handling cleanup in the caller, emac_rx_packet(). When emac_run_xdp() returns ICSSG_XDP_CONSUMED for XDP_DROP, the caller now recycles the page back to the page pool. The zero-copy path, emac_rx_packet_zc() already handles cleanup correctly with xsk_buff_free().
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 7a64bb388df3cf091afdd047c701039a13acd3b4, < d16d57dedcb69c1a1257e0638f8698ce1f0ccbe5
- >= 7a64bb388df3cf091afdd047c701039a13acd3b4, < 719d3e71691db7c4f1658ba5a6d1472928121594
Fixed in d16d57dedcb69c1a1257e0638f8698ce1f0ccbe5, 719d3e71691db7c4f1658ba5a6d1472928121594
- 6.19
Fixed in 0, 6.19.10, 7.0
Mitigation
Upgrade Linux to d16d57dedcb69c1a1257e0638f8698ce1f0ccbe5 or 719d3e71691db7c4f1658ba5a6d1472928121594 or later.
Upgrade Linux to 0 or 6.19.10 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.