9.8
CRITICAL CVSS 3.1
CVE-2025-39948
ice: fix Rx page leak on multi-buffer frames
Description

In the Linux kernel, the following vulnerability has been resolved: ice: fix Rx page leak on multi-buffer frames The ice_put_rx_mbuf() function handles calling ice_put_rx_buf() for each buffer in the current frame. This function was introduced as part of handling multi-buffer XDP support in the ice driver. It works by iterating over the buffers from first_desc up to 1 plus the total number of fragments in the frame, cached from before the XDP program was executed. If the hardware posts a descriptor with a size of 0, the logic used in ice_put_rx_mbuf() breaks. Such descriptors get skipped and don't get added as fragments in ice_add_xdp_frag. Since the buffer isn't counted as a fragment, we do not iterate over it in ice_put_rx_mbuf(), and thus we don't call ice_put_rx_buf(). Because we don't call ice_put_rx_buf(), we don't attempt to re-use the page or free it. This leaves a stale page in the ring, as we don't increment next_to_alloc. The ice_reuse_rx_page() assumes that the next_to_alloc has been incremented properly, and that it always points to a buffer with a NULL page. Since this function doesn't check, it will happily recycle a page over the top of the next_to_alloc buffer, losing track of the old page. Note that this leak only occurs for multi-buffer frames. The ice_put_rx_mbuf() function always handles at least one buffer, so a single-buffer frame will always get handled correctly. It is not clear precisely why the hardware hands us descriptors with a size of 0 sometimes, but it happens somewhat regularly with "jumbo frames" used by 9K MTU. To fix ice_put_rx_mbuf(), we need to make sure to call ice_put_rx_buf() on all buffers between first_desc and next_to_clean. Borrow the logic of a similar function in i40e used for this same purpose. Use the same logic also in ice_get_pgcnts(). Instead of iterating over just the number of fragments, use a loop which iterates until the current index reaches to the next_to_clean element just past the current frame. Unlike i40e, the ice_put_rx_mbuf() function does call ice_put_rx_buf() on the last buffer of the frame indicating the end of packet. For non-linear (multi-buffer) frames, we need to take care when adjusting the pagecnt_bias. An XDP program might release fragments from the tail of the frame, in which case that fragment page is already released. Only update the pagecnt_bias for the first descriptor and fragments still remaining post-XDP program. Take care to only access the shared info for fragmented buffers, as this avoids a significant cache miss. The xdp_xmit value only needs to be updated if an XDP program is run, and only once per packet. Drop the xdp_xmit pointer argument from ice_put_rx_mbuf(). Instead, set xdp_xmit in the ice_clean_rx_irq() function directly. This avoids needing to pass the argument and avoids an extra bit-wise OR for each buffer in the frame. Move the increment of the ntc local variable to ensure its updated *before* all calls to ice_get_pgcnts() or ice_put_rx_mbuf(), as the loop logic requires the index of the element just after the current frame. Now that we use an index pointer in the ring to identify the packet, we no longer need to track or cache the number of fragments in the rx_ring.

INFO

Published Date :

Oct. 4, 2025, 8:15 a.m.

Last Modified :

Oct. 21, 2026, 1:18 p.m.

Remotely Exploit :

Yes !

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2025-39948 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
CVSS 3.1 CRITICAL 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
Fix Rx page leak in the ice driver by correcting buffer handling for multi-buffer frames.
  • Update the ice driver to correctly handle buffers in multi-buffer frames.
  • Ensure all buffers are processed by ice_put_rx_buf.
  • Adjust pagecnt_bias updates for fragmented buffers.
  • Modify the ring index pointer logic.
References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-39948 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-39948 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-39948 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-39948 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Oct. 21, 2026

    Action Type Old Value New Value
    Added Affected Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2025/39xxx/CVE-2025-39948.json">CVE-2025-39948</a>
    Added Reference https://git.kernel.org/stable/c/80555adb5c892f0e21d243ae96ed997ee520aea9
    Added Reference https://git.kernel.org/stable/c/84bf1ac85af84d354c7a2fdbdc0d4efc8aaec34b
    Added Reference https://git.kernel.org/stable/c/8729dc4eeb502145418db5f2ca2192fd26f3efda
    Added Reference https://git.kernel.org/stable/c/fcb5718ebfe7fd64144e3399280440cce361a3ae
    Removed Reference https://git.kernel.org/stable/c/80555adb5c892f0e21d243ae96ed997ee520aea9
    Removed Reference https://git.kernel.org/stable/c/84bf1ac85af84d354c7a2fdbdc0d4efc8aaec34b
    Removed Reference https://git.kernel.org/stable/c/fcb5718ebfe7fd64144e3399280440cce361a3ae
    Removed Reference Type https://git.kernel.org/stable/c/80555adb5c892f0e21d243ae96ed997ee520aea9 Types: Patch
    Removed Reference Type https://git.kernel.org/stable/c/84bf1ac85af84d354c7a2fdbdc0d4efc8aaec34b Types: Patch
    Removed Reference Type https://git.kernel.org/stable/c/fcb5718ebfe7fd64144e3399280440cce361a3ae Types: Patch
  • CVE Translated by [email protected]

    Oct. 19, 2026

    Action Type Old Value New Value
    Added Translation Title: Linux, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ice: corrige la fuga de página Rx en tramas de múltiples búferes La función ice_put_rx_mbuf() se encarga de llamar a ice_put_rx_buf() para cada búfer en la trama actual. Esta función fue introducida como parte del manejo del soporte XDP de múltiples búferes en el controlador ice. Funciona iterando sobre los búferes desde first_desc hasta 1 más el número total de fragmentos en la trama, almacenados en caché desde antes de que se ejecutara el programa XDP. Si el hardware publica un descriptor con un tamaño de 0, la lógica utilizada en ice_put_rx_mbuf() falla. Dichos descriptores se omiten y no se añaden como fragmentos en ice_add_xdp_frag. Dado que el búfer no se cuenta como un fragmento, no iteramos sobre él en ice_put_rx_mbuf(), y, por lo tanto, no llamamos a ice_put_rx_buf(). Debido a que no llamamos a ice_put_rx_buf(), no intentamos reutilizar la página ni liberarla. Esto deja una página obsoleta en el anillo, ya que no incrementamos next_to_alloc. La función ice_reuse_rx_page() asume que next_to_alloc se ha incrementado correctamente y que siempre apunta a un búfer con una página NULL. Dado que esta función no verifica, reciclará felizmente una página sobre el búfer next_to_alloc, perdiendo el rastro de la página antigua. Tenga en cuenta que esta fuga solo ocurre para tramas de múltiples búferes. La función ice_put_rx_mbuf() siempre maneja al menos un búfer, por lo que una trama de un solo búfer siempre se manejará correctamente. No está claro con precisión por qué el hardware nos entrega descriptores con un tamaño de 0 a veces, pero ocurre con cierta regularidad con 'tramas jumbo' utilizadas por MTU de 9K. Para corregir ice_put_rx_mbuf(), necesitamos asegurarnos de llamar a ice_put_rx_buf() en todos los búferes entre first_desc y next_to_clean. Tomar prestada la lógica de una función similar en i40e utilizada para este mismo propósito. Usar la misma lógica también en ice_get_pgcnts(). En lugar de iterar solo sobre el número de fragmentos, usar un bucle que itere hasta que el índice actual alcance el elemento next_to_clean justo después de la trama actual. A diferencia de i40e, la función ice_put_rx_mbuf() sí llama a ice_put_rx_buf() en el último búfer de la trama indicando el final del paquete. Para tramas no lineales (de múltiples búferes), debemos tener cuidado al ajustar el pagecnt_bias. Un programa XDP podría liberar fragmentos de la cola de la trama, en cuyo caso esa página de fragmento ya está liberada. Solo actualizar el pagecnt_bias para el primer descriptor y los fragmentos que aún quedan después del programa XDP. Tenga cuidado de acceder solo a la información compartida para búferes fragmentados, ya que esto evita una falla de caché significativa. El valor xdp_xmit solo necesita ser actualizado si se ejecuta un programa XDP, y solo una vez por paquete. Eliminar el argumento de puntero xdp_xmit de ice_put_rx_mbuf(). En su lugar, establecer xdp_xmit directamente en la función ice_clean_rx_irq(). Esto evita la necesidad de pasar el argumento y evita un OR bit a bit adicional para cada búfer en la trama. Mover el incremento de la variable local ntc para asegurar que se actualice *antes* de todas las llamadas a ice_get_pgcnts() o ice_put_rx_mbuf(), ya que la lógica del bucle requiere el índice del elemento justo después de la trama actual. Ahora que usamos un puntero de índice en el anillo para identificar el paquete, ya no necesitamos rastrear o almacenar en caché el número de fragmentos en el rx_ring.
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jul. 30, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '311813ed013c016d4b0b0985a9ee41f778489077', 'lessThan': '80555adb5c892f0e21d243ae96ed997ee520aea9', 'versionType': 'git'}, {'status': 'affected', 'version': '743bbd93cf29f653fae0e1416a31f03231689911', 'lessThan': 'fcb5718ebfe7fd64144e3399280440cce361a3ae', 'versionType': 'git'}, {'status': 'affected', 'version': '743bbd93cf29f653fae0e1416a31f03231689911', 'lessThan': '84bf1ac85af84d354c7a2fdbdc0d4efc8aaec34b', 'versionType': 'git'}, {'status': 'affected', 'version': 'ac1728cf370bec2e74fe6a2adf05b4629980d2b3', 'versionType': 'git'}, {'status': 'affected', 'version': 'd445b59d30415bb56f4803f622d566bca06e0abc', 'versionType': 'git'}, {'status': 'affected', 'version': '6.12.14', 'lessThan': '6.12.49', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.6.78', 'lessThan': '6.7', 'versionType': 'semver'}, {'status': 'affected', 'version': '6.13.3', 'lessThan': '6.14', 'versionType': 'semver'}], 'programFiles': ['drivers/net/ethernet/intel/ice/ice_txrx.c', 'drivers/net/ethernet/intel/ice/ice_txrx.h'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.14'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.14', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.12.49', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.16.9', 'versionType': 'semver', 'lessThanOrEqual': '6.16.*'}, {'status': 'unaffected', 'version': '6.17', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/net/ethernet/intel/ice/ice_txrx.c', 'drivers/net/ethernet/intel/ice/ice_txrx.h'], 'defaultStatus': 'affected'}]
  • Modified Analysis by [email protected]

    Mar. 25, 2026

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Jan. 27, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
    Added CWE CWE-401
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.14:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.14:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.14:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.14:rc6:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.14:rc7:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.14:-:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.17:rc6:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.12.14 up to (excluding) 6.12.49 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13.3 up to (excluding) 6.14 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.14.1 up to (excluding) 6.16.9 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.6.78 up to (excluding) 6.7
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/80555adb5c892f0e21d243ae96ed997ee520aea9 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/84bf1ac85af84d354c7a2fdbdc0d4efc8aaec34b Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/fcb5718ebfe7fd64144e3399280440cce361a3ae Types: Patch
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Oct. 04, 2025

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: ice: fix Rx page leak on multi-buffer frames The ice_put_rx_mbuf() function handles calling ice_put_rx_buf() for each buffer in the current frame. This function was introduced as part of handling multi-buffer XDP support in the ice driver. It works by iterating over the buffers from first_desc up to 1 plus the total number of fragments in the frame, cached from before the XDP program was executed. If the hardware posts a descriptor with a size of 0, the logic used in ice_put_rx_mbuf() breaks. Such descriptors get skipped and don't get added as fragments in ice_add_xdp_frag. Since the buffer isn't counted as a fragment, we do not iterate over it in ice_put_rx_mbuf(), and thus we don't call ice_put_rx_buf(). Because we don't call ice_put_rx_buf(), we don't attempt to re-use the page or free it. This leaves a stale page in the ring, as we don't increment next_to_alloc. The ice_reuse_rx_page() assumes that the next_to_alloc has been incremented properly, and that it always points to a buffer with a NULL page. Since this function doesn't check, it will happily recycle a page over the top of the next_to_alloc buffer, losing track of the old page. Note that this leak only occurs for multi-buffer frames. The ice_put_rx_mbuf() function always handles at least one buffer, so a single-buffer frame will always get handled correctly. It is not clear precisely why the hardware hands us descriptors with a size of 0 sometimes, but it happens somewhat regularly with "jumbo frames" used by 9K MTU. To fix ice_put_rx_mbuf(), we need to make sure to call ice_put_rx_buf() on all buffers between first_desc and next_to_clean. Borrow the logic of a similar function in i40e used for this same purpose. Use the same logic also in ice_get_pgcnts(). Instead of iterating over just the number of fragments, use a loop which iterates until the current index reaches to the next_to_clean element just past the current frame. Unlike i40e, the ice_put_rx_mbuf() function does call ice_put_rx_buf() on the last buffer of the frame indicating the end of packet. For non-linear (multi-buffer) frames, we need to take care when adjusting the pagecnt_bias. An XDP program might release fragments from the tail of the frame, in which case that fragment page is already released. Only update the pagecnt_bias for the first descriptor and fragments still remaining post-XDP program. Take care to only access the shared info for fragmented buffers, as this avoids a significant cache miss. The xdp_xmit value only needs to be updated if an XDP program is run, and only once per packet. Drop the xdp_xmit pointer argument from ice_put_rx_mbuf(). Instead, set xdp_xmit in the ice_clean_rx_irq() function directly. This avoids needing to pass the argument and avoids an extra bit-wise OR for each buffer in the frame. Move the increment of the ntc local variable to ensure its updated *before* all calls to ice_get_pgcnts() or ice_put_rx_mbuf(), as the loop logic requires the index of the element just after the current frame. Now that we use an index pointer in the ring to identify the packet, we no longer need to track or cache the number of fragments in the rx_ring.
    Added Reference https://git.kernel.org/stable/c/80555adb5c892f0e21d243ae96ed997ee520aea9
    Added Reference https://git.kernel.org/stable/c/84bf1ac85af84d354c7a2fdbdc0d4efc8aaec34b
    Added Reference https://git.kernel.org/stable/c/fcb5718ebfe7fd64144e3399280440cce361a3ae
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.