# CVE-2025-39948: ice: fix Rx page leak on multi-buffer frames

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.57% (percentile 41, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-10-04T07:31:09.403Z
- **Modified:** 2026-10-21T13:18:17.630Z

## Who should check

- Anyone running Linux \>= ac1728cf370bec2e74fe6a2adf05b4629980d2b3, \< 8729dc4eeb502145418db5f2ca2192fd26f3efda; \>= 311813ed013c016d4b0b0985a9ee41f778489077, \< 80555adb5c892f0e21d243ae96ed997ee520aea9; \>= 743bbd93cf29f653fae0e1416a31f03231689911, \< fcb5718ebfe7fd64144e3399280440cce361a3ae; \>= 743bbd93cf29f653fae0e1416a31f03231689911, \< 84bf1ac85af84d354c7a2fdbdc0d4efc8aaec34b; d445b59d30415bb56f4803f622d566bca06e0abc; \>= 6.6.78, \< 6.6.160; \>= 6.12.14, \< 6.12.49; \>= 6.13.3, \< 6.14
- Anyone running Linux 6.14

## 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.

## Affected and fixed versions

- Linux: \>= ac1728cf370bec2e74fe6a2adf05b4629980d2b3, \< 8729dc4eeb502145418db5f2ca2192fd26f3efda; \>= 311813ed013c016d4b0b0985a9ee41f778489077, \< 80555adb5c892f0e21d243ae96ed997ee520aea9; \>= 743bbd93cf29f653fae0e1416a31f03231689911, \< fcb5718ebfe7fd64144e3399280440cce361a3ae; \>= 743bbd93cf29f653fae0e1416a31f03231689911, \< 84bf1ac85af84d354c7a2fdbdc0d4efc8aaec34b; d445b59d30415bb56f4803f622d566bca06e0abc; \>= 6.6.78, \< 6.6.160; \>= 6.12.14, \< 6.12.49; \>= 6.13.3, \< 6.14 (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

- Upgrade Linux to 6.14 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-39948. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39948.md
Affected: Linux >= ac1728cf370bec2e74fe6a2adf05b4629980d2b3, < 8729dc4eeb502145418db5f2ca2192fd26f3efda; >= 311813ed013c016d4b0b0985a9ee41f778489077, < 80555adb5c892f0e21d243ae96ed997ee520aea9; >= 743bbd93cf29f653fae0e1416a31f03231689911, < fcb5718ebfe7fd64144e3399280440cce361a3ae; >= 743bbd93cf29f653fae0e14…
Fixed in: Linux 8729dc4eeb502145418db5f2ca2192fd26f3efda, Linux 80555adb5c892f0e21d243ae96ed997ee520aea9, Linux 84bf1ac85af84d354c7a2fdbdc0d4efc8aaec34b, Linux 6.6.160, Linux 6.12.49, Linux 6.14

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-39948 being exploited?

There is no confirmed exploitation: CVE-2025-39948 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.57% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-39948?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-39948?

Linux \>= ac1728cf370bec2e74fe6a2adf05b4629980d2b3, \< 8729dc4eeb502145418db5f2ca2192fd26f3efda; \>= 311813ed013c016d4b0b0985a9ee41f778489077, \< 80555adb5c892f0e21d243ae96ed997ee520aea9; \>= 743bbd93cf29f653fae0e1416a31f03231689911, \< fcb5718ebfe7fd64144e3399280440cce361a3ae; \>= 743bbd93cf29f653fae0e1416a31f03231689911, \< 84bf1ac85af84d354c7a2fdbdc0d4efc8aaec34b; d445b59d30415bb56f4803f622d566bca06e0abc; \>= 6.6.78, \< 6.6.160; \>= 6.12.14, \< 6.12.49; \>= 6.13.3, \< 6.14; Linux 6.14.

### Is there a fix for CVE-2025-39948?

Yes. Fixed in Linux 8729dc4eeb502145418db5f2ca2192fd26f3efda, Linux 80555adb5c892f0e21d243ae96ed997ee520aea9, Linux 84bf1ac85af84d354c7a2fdbdc0d4efc8aaec34b, Linux 6.6.160, Linux 6.12.49, Linux 6.14. Upgrade Linux to 6.14 or later.

### How do I check if I'm affected by CVE-2025-39948?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/80555adb5c892f0e21d243ae96ed997ee520aea9>
- patch: <https://git.kernel.org/stable/c/fcb5718ebfe7fd64144e3399280440cce361a3ae>
- patch: <https://git.kernel.org/stable/c/84bf1ac85af84d354c7a2fdbdc0d4efc8aaec34b>
- other: <https://git.kernel.org/stable/c/8729dc4eeb502145418db5f2ca2192fd26f3efda>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-39948>

HTML: <https://flawdb.com/CVE-2025-39948> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-39948>
