9.8critical
net: ti: icssg-prueth: fix missing data copy and wrong recycle in ZC RX dispatch
- Severity
- 9.8critical CVSS:3.1 by Linux
- Exploit likelihood
- 0.32% (higher than 26% 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 missing data copy and wrong recycle in ZC RX dispatch emac_dispatch_skb_zc() allocates a new skb via napi_alloc_skb() but never copies the packet data from the XDP buffer into it. The skb is passed up the stack containing uninitialized heap memory instead of the actual received packet, leaking kernel heap contents to userspace. Copy the received packet data from the XDP buffer into the skb using skb_copy_to_linear_data(). Additionally, remove the skb_mark_for_recycle() call since the skb is backed by the NAPI page frag allocator, not page_pool. Marking a non-page_pool skb for recycle causes the free path to return pages to a page_pool that does not own them, corrupting page_pool state. The non-ZC path (emac_rx_packet) does not have these issues because it uses napi_build_skb() to wrap the existing page_pool page directly, requiring no copy, and correctly marks for recycle since the page comes from page_pool_dev_alloc_pages().
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 7a64bb388df3cf091afdd047c701039a13acd3b4 before a968438d4fc17ee1dcdc3cfa490dcb5e7709cf76, from 7a64bb388df3cf091afdd047c701039a13acd3b4 before 5597dd284ff8c556c0b00f6a34473677426e3f81, 6.19 Not affected: before 6.19, from 6.19.12 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 6.19 before 6.19.12, 7.0 | NVD |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: net: ti: icssg-prueth: fix missing data copy and wrong recycle in ZC RX dispatch emac_dispatch_skb_zc() allocates a new skb via napi_alloc_skb() but never copies the packet data from the XDP buffer into it. The skb is passed up the stack containing uninitialized heap memory instead of the actual received packet, leaking kernel heap contents to userspace. Copy the received packet data from the XDP buffer into the skb using skb_copy_to_linear_data(). Additionally, remove the skb_mark_for_recycle() call since the skb is backed by the NAPI page frag allocator, not page_pool. Marking a non-page_pool skb for recycle causes the free path to return pages to a page_pool that does not own them, corrupting page_pool state. The non-ZC path (emac_rx_packet) does not have these issues because it uses napi_build_skb() to wrap the existing page_pool page directly, requiring no copy, and correctly marks for recycle since the page comes from page_pool_dev_alloc_pages().
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net: ti: icssg-prueth: corrección de copia de datos faltante y reciclaje incorrecto en el despacho ZC RX emac_dispatch_skb_zc() asigna un nuevo skb a través de napi_alloc_skb() pero nunca copia los datos del paquete desde el búfer XDP en él. El skb se pasa hacia arriba en la pila conteniendo memoria de pila no inicializada en lugar del paquete recibido real, filtrando contenidos de la pila del kernel al espacio de usuario. Copie los datos del paquete recibido desde el búfer XDP en el skb usando skb_copy_to_linear_data(). Además, elimine la llamada a skb_mark_for_recycle() ya que el skb está respaldado por el asignador de fragmentos de página NAPI, no por page_pool. Marcar un skb que no es de page_pool para reciclaje hace que la ruta de liberación devuelva páginas a un page_pool que no las posee, corrompiendo el estado de page_pool. La ruta no ZC (emac_rx_packet) no tiene estos problemas porque usa napi_build_skb() para envolver directamente la página page_pool existente, sin requerir copia, y marca correctamente para reciclaje ya que la página proviene de page_pool_dev_alloc_pages().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43039 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2026-43039 changed 2026-11-11 | Public domain |