# CVE-2025-38129: page\_pool: Fix use-after-free in page\_pool\_recycle\_in\_ring

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-07-03T08:35:33.728Z
- **Modified:** 2026-08-05T11:59:48.021Z

## Who should check

- Anyone running Linux \>= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, \< c2c906142293931e33ef4be79ebc36c25c4e21dd; \>= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, \< d69f28ef7cdafdcf37ee310f38b1399e7d05f9a8; \>= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, \< 1a8c0b61d4cb55c5440583ec9e7f86a730369e32; \>= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, \< 4914c0a166540e534a0c1d43affd329d95fb56fd; \>= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, \< e869a85acc2e60dc554579b910826a4919d8cd98; \>= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, \< 4ab8c0f8905c9c4d05e7f437e65a9a365573ff02; \>= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, \< 271683bb2cf32e5126c592b5d5e6a756fa374fd9
- Anyone running Linux 4.18

## Description

In the Linux kernel, the following vulnerability has been resolved:

page\_pool: Fix use-after-free in page\_pool\_recycle\_in\_ring

syzbot reported a uaf in page\_pool\_recycle\_in\_ring:

BUG: KASAN: slab-use-after-free in lock\_release+0x151/0xa30 kernel/locking/lockdep.c:5862
Read of size 8 at addr ffff8880286045a0 by task syz.0.284/6943

CPU: 0 UID: 0 PID: 6943 Comm: syz.0.284 Not tainted 6.13.0-rc3-syzkaller-gdfa94ce54f41 \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
 \<TASK\>
 \_\_dump\_stack lib/dump\_stack.c:94 \[inline\]
 dump\_stack\_lvl+0x241/0x360 lib/dump\_stack.c:120
 print\_address\_description mm/kasan/report.c:378 \[inline\]
 print\_report+0x169/0x550 mm/kasan/report.c:489
 kasan\_report+0x143/0x180 mm/kasan/report.c:602
 lock\_release+0x151/0xa30 kernel/locking/lockdep.c:5862
 \_\_raw\_spin\_unlock\_bh include/linux/spinlock\_api\_smp.h:165 \[inline\]
 \_raw\_spin\_unlock\_bh+0x1b/0x40 kernel/locking/spinlock.c:210
 spin\_unlock\_bh include/linux/spinlock.h:396 \[inline\]
 ptr\_ring\_produce\_bh include/linux/ptr\_ring.h:164 \[inline\]
 page\_pool\_recycle\_in\_ring net/core/page\_pool.c:707 \[inline\]
 page\_pool\_put\_unrefed\_netmem+0x748/0xb00 net/core/page\_pool.c:826
 page\_pool\_put\_netmem include/net/page\_pool/helpers.h:323 \[inline\]
 page\_pool\_put\_full\_netmem include/net/page\_pool/helpers.h:353 \[inline\]
 napi\_pp\_put\_page+0x149/0x2b0 net/core/skbuff.c:1036
 skb\_pp\_recycle net/core/skbuff.c:1047 \[inline\]
 skb\_free\_head net/core/skbuff.c:1094 \[inline\]
 skb\_release\_data+0x6c4/0x8a0 net/core/skbuff.c:1125
 skb\_release\_all net/core/skbuff.c:1190 \[inline\]
 \_\_kfree\_skb net/core/skbuff.c:1204 \[inline\]
 sk\_skb\_reason\_drop+0x1c9/0x380 net/core/skbuff.c:1242
 kfree\_skb\_reason include/linux/skbuff.h:1263 \[inline\]
 \_\_skb\_queue\_purge\_reason include/linux/skbuff.h:3343 \[inline\]

root cause is:

page\_pool\_recycle\_in\_ring
  ptr\_ring\_produce
    spin\_lock(&r-\>producer\_lock);
    WRITE\_ONCE(r-\>queue\[r-\>producer++\], ptr)
      //recycle last page to pool
				page\_pool\_release
				  page\_pool\_scrub
				    page\_pool\_empty\_ring
				      ptr\_ring\_consume
				      page\_pool\_return\_page  //release all page
				  \_\_page\_pool\_destroy
				     free\_percpu(pool-\>recycle\_stats);
				     free(pool) //free

     spin\_unlock(&r-\>producer\_lock); //pool-\>ring uaf read
  recycle\_stat\_inc(pool, ring);

page\_pool can be free while page pool recycle the last page in ring.
Add producer-lock barrier to page\_pool\_release to prevent the page
pool from being free before all pages have been recycled.

recycle\_stat\_inc() is empty when CONFIG\_PAGE\_POOL\_STATS is not
enabled, which will trigger Wempty-body build warning. Add definition
for pool stat macro to fix warning.

## Affected and fixed versions

- Linux: \>= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, \< c2c906142293931e33ef4be79ebc36c25c4e21dd; \>= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, \< d69f28ef7cdafdcf37ee310f38b1399e7d05f9a8; \>= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, \< 1a8c0b61d4cb55c5440583ec9e7f86a730369e32; \>= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, \< 4914c0a166540e534a0c1d43affd329d95fb56fd; \>= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, \< e869a85acc2e60dc554579b910826a4919d8cd98; \>= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, \< 4ab8c0f8905c9c4d05e7f437e65a9a365573ff02; \>= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, \< 271683bb2cf32e5126c592b5d5e6a756fa374fd9 (cvelist)
- Linux: 4.18 (cvelist)

## Mitigation

- Upgrade Linux to 271683bb2cf32e5126c592b5d5e6a756fa374fd9 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-38129. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38129.md
Affected: Linux >= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, < c2c906142293931e33ef4be79ebc36c25c4e21dd; >= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, < d69f28ef7cdafdcf37ee310f38b1399e7d05f9a8; >= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, < 1a8c0b61d4cb55c5440583ec9e7f86a730369e32; >= ff7d6b27f894f1469dc51cc…
Fixed in: Linux 1a8c0b61d4cb55c5440583ec9e7f86a730369e32, Linux 4914c0a166540e534a0c1d43affd329d95fb56fd, Linux 4ab8c0f8905c9c4d05e7f437e65a9a365573ff02, Linux 271683bb2cf32e5126c592b5d5e6a756fa374fd9

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-38129 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, \< c2c906142293931e33ef4be79ebc36c25c4e21dd; \>= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, \< d69f28ef7cdafdcf37ee310f38b1399e7d05f9a8; \>= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, \< 1a8c0b61d4cb55c5440583ec9e7f86a730369e32; \>= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, \< 4914c0a166540e534a0c1d43affd329d95fb56fd; \>= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, \< e869a85acc2e60dc554579b910826a4919d8cd98; \>= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, \< 4ab8c0f8905c9c4d05e7f437e65a9a365573ff02; \>= ff7d6b27f894f1469dc51ccb828b7363ccd9799f, \< 271683bb2cf32e5126c592b5d5e6a756fa374fd9; Linux 4.18.

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

Yes. Fixed in Linux 1a8c0b61d4cb55c5440583ec9e7f86a730369e32, Linux 4914c0a166540e534a0c1d43affd329d95fb56fd, Linux 4ab8c0f8905c9c4d05e7f437e65a9a365573ff02, Linux 271683bb2cf32e5126c592b5d5e6a756fa374fd9. Upgrade Linux to 271683bb2cf32e5126c592b5d5e6a756fa374fd9 or later.

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

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/e869a85acc2e60dc554579b910826a4919d8cd98>
- patch: <https://git.kernel.org/stable/c/4ab8c0f8905c9c4d05e7f437e65a9a365573ff02>
- patch: <https://git.kernel.org/stable/c/271683bb2cf32e5126c592b5d5e6a756fa374fd9>
- other: <https://git.kernel.org/stable/c/c2c906142293931e33ef4be79ebc36c25c4e21dd>
- other: <https://git.kernel.org/stable/c/d69f28ef7cdafdcf37ee310f38b1399e7d05f9a8>
- other: <https://git.kernel.org/stable/c/1a8c0b61d4cb55c5440583ec9e7f86a730369e32>
- other: <https://git.kernel.org/stable/c/4914c0a166540e534a0c1d43affd329d95fb56fd>

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

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