7.5high
net: ti: icssg-prueth: Fix memory leak in XDP_DROP for non-zero-copy mode
- Severity
- 7.5high CVSS:3.1 by Linux
- Exploit likelihood
- 0.40% (higher than 36% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 7a64bb388df3cf091afdd047c701039a13acd3b4 before d16d57dedcb69c1a1257e0638f8698ce1f0ccbe5, from 7a64bb388df3cf091afdd047c701039a13acd3b4 before 719d3e71691db7c4f1658ba5a6d1472928121594, 6.19 Not affected: before 6.19, from 6.19.10 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 6.19 before 6.19.10, 7.0 | NVD |
Classification
What each source says
CVE List
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().
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net: ti: icssg-prueth: Corrección de fuga de memoria en XDP_DROP para el modo sin copia cero El reciclaje de páginas fue eliminado de la ruta XDP_DROP en emac_run_xdp() para evitar conflictos con el modo de copia cero de AF_XDP, que usa xsk_buff_free() en su lugar. Sin embargo, esto causa una fuga de memoria al ejecutar programas XDP que descartan paquetes en modo sin copia cero (modo de pool de páginas estándar). Las páginas nunca son devueltas al pool de páginas, lo que lleva a condiciones de OOM. Esto se soluciona manejando la limpieza en la función llamadora, emac_rx_packet(). Cuando emac_run_xdp() devuelve ICSSG_XDP_CONSUMED para XDP_DROP, la función llamadora ahora recicla la página de vuelta al pool de páginas. La ruta de copia cero, emac_rx_packet_zc(), ya maneja la limpieza correctamente con xsk_buff_free().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-23453 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2026-23453 changed 2026-07-24 | Public domain |