# CVE-2024-26953: net: esp: fix bad handling of pages from page\_pool

> 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.94% (percentile 59, 2026-11-26)
- **Published:** 2024-05-01T05:18:43.199Z
- **Modified:** 2026-10-30T13:17:24.180Z

## Who should check

- Anyone running Linux \>= 6a5bcd84e886a9a91982e515c539529c28acdcc2, \< 21b989b62456a0e1eae9f464a5ca360a608625d1; \>= 6a5bcd84e886a9a91982e515c539529c28acdcc2, \< 8291b4eac429c480386669444c6377573f5d8664; \>= 6a5bcd84e886a9a91982e515c539529c28acdcc2, \< 1abb20a5f4b02fb3020f88456fc1e6069b3cdc45; \>= 6a5bcd84e886a9a91982e515c539529c28acdcc2, \< f278ff9db67264715d0d50e3e75044f8b78990f4; \>= 6a5bcd84e886a9a91982e515c539529c28acdcc2, \< c3198822c6cb9fb588e446540485669cc81c5d34
- Anyone running Linux 5.14

## Description

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

net: esp: fix bad handling of pages from page\_pool

When the skb is reorganized during esp\_output (!esp-\>inline), the pages
coming from the original skb fragments are supposed to be released back
to the system through put\_page. But if the skb fragment pages are
originating from a page\_pool, calling put\_page on them will trigger a
page\_pool leak which will eventually result in a crash.

This leak can be easily observed when using CONFIG\_DEBUG\_VM and doing
ipsec + gre (non offloaded) forwarding:

  BUG: Bad page state in process ksoftirqd/16  pfn:1451b6
  page:00000000de2b8d32 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1451b6000 pfn:0x1451b6
  flags: 0x200000000000000(node=0\|zone=2)
  page\_type: 0xffffffff()
  raw: 0200000000000000 dead000000000040 ffff88810d23c000 0000000000000000
  raw: 00000001451b6000 0000000000000001 00000000ffffffff 0000000000000000
  page dumped because: page\_pool leak
  Modules linked in: ip\_gre gre mlx5\_ib mlx5\_core xt\_conntrack xt\_MASQUERADE nf\_conntrack\_netlink nfnetlink iptable\_nat nf\_nat xt\_addrtype br\_netfilter rpcrdma rdma\_ucm ib\_iser libiscsi scsi\_transport\_iscsi ib\_umad rdma\_cm ib\_ipoib iw\_cm ib\_cm ib\_uverbs ib\_core overlay zram zsmalloc fuse \[last unloaded: mlx5\_core\]
  CPU: 16 PID: 96 Comm: ksoftirqd/16 Not tainted 6.8.0-rc4+ \#22
  Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014
  Call Trace:
   \<TASK\>
   dump\_stack\_lvl+0x36/0x50
   bad\_page+0x70/0xf0
   free\_unref\_page\_prepare+0x27a/0x460
   free\_unref\_page+0x38/0x120
   esp\_ssg\_unref.isra.0+0x15f/0x200
   esp\_output\_tail+0x66d/0x780
   esp\_xmit+0x2c5/0x360
   validate\_xmit\_xfrm+0x313/0x370
   ? validate\_xmit\_skb+0x1d/0x330
   validate\_xmit\_skb\_list+0x4c/0x70
   sch\_direct\_xmit+0x23e/0x350
   \_\_dev\_queue\_xmit+0x337/0xba0
   ? nf\_hook\_slow+0x3f/0xd0
   ip\_finish\_output2+0x25e/0x580
   iptunnel\_xmit+0x19b/0x240
   ip\_tunnel\_xmit+0x5fb/0xb60
   ipgre\_xmit+0x14d/0x280 \[ip\_gre\]
   dev\_hard\_start\_xmit+0xc3/0x1c0
   \_\_dev\_queue\_xmit+0x208/0xba0
   ? nf\_hook\_slow+0x3f/0xd0
   ip\_finish\_output2+0x1ca/0x580
   ip\_sublist\_rcv\_finish+0x32/0x40
   ip\_sublist\_rcv+0x1b2/0x1f0
   ? ip\_rcv\_finish\_core.constprop.0+0x460/0x460
   ip\_list\_rcv+0x103/0x130
   \_\_netif\_receive\_skb\_list\_core+0x181/0x1e0
   netif\_receive\_skb\_list\_internal+0x1b3/0x2c0
   napi\_gro\_receive+0xc8/0x200
   gro\_cell\_poll+0x52/0x90
   \_\_napi\_poll+0x25/0x1a0
   net\_rx\_action+0x28e/0x300
   \_\_do\_softirq+0xc3/0x276
   ? sort\_range+0x20/0x20
   run\_ksoftirqd+0x1e/0x30
   smpboot\_thread\_fn+0xa6/0x130
   kthread+0xcd/0x100
   ? kthread\_complete\_and\_exit+0x20/0x20
   ret\_from\_fork+0x31/0x50
   ? kthread\_complete\_and\_exit+0x20/0x20
   ret\_from\_fork\_asm+0x11/0x20
   \</TASK\>

The suggested fix is to introduce a new wrapper (skb\_page\_unref) that
covers page refcounting for page\_pool pages as well.

## Affected and fixed versions

- Linux: \>= 6a5bcd84e886a9a91982e515c539529c28acdcc2, \< 21b989b62456a0e1eae9f464a5ca360a608625d1; \>= 6a5bcd84e886a9a91982e515c539529c28acdcc2, \< 8291b4eac429c480386669444c6377573f5d8664; \>= 6a5bcd84e886a9a91982e515c539529c28acdcc2, \< 1abb20a5f4b02fb3020f88456fc1e6069b3cdc45; \>= 6a5bcd84e886a9a91982e515c539529c28acdcc2, \< f278ff9db67264715d0d50e3e75044f8b78990f4; \>= 6a5bcd84e886a9a91982e515c539529c28acdcc2, \< c3198822c6cb9fb588e446540485669cc81c5d34 (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-26953.md
Affected: Linux >= 6a5bcd84e886a9a91982e515c539529c28acdcc2, < 21b989b62456a0e1eae9f464a5ca360a608625d1; >= 6a5bcd84e886a9a91982e515c539529c28acdcc2, < 8291b4eac429c480386669444c6377573f5d8664; >= 6a5bcd84e886a9a91982e515c539529c28acdcc2, < 1abb20a5f4b02fb3020f88456fc1e6069b3cdc45; >= 6a5bcd84e886a9a91982e51…
Fixed in: Linux 21b989b62456a0e1eae9f464a5ca360a608625d1, Linux 8291b4eac429c480386669444c6377573f5d8664, Linux 1abb20a5f4b02fb3020f88456fc1e6069b3cdc45

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-2024-26953 being exploited?

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

### How serious is CVE-2024-26953?

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

### Which versions are affected by CVE-2024-26953?

Linux \>= 6a5bcd84e886a9a91982e515c539529c28acdcc2, \< 21b989b62456a0e1eae9f464a5ca360a608625d1; \>= 6a5bcd84e886a9a91982e515c539529c28acdcc2, \< 8291b4eac429c480386669444c6377573f5d8664; \>= 6a5bcd84e886a9a91982e515c539529c28acdcc2, \< 1abb20a5f4b02fb3020f88456fc1e6069b3cdc45; \>= 6a5bcd84e886a9a91982e515c539529c28acdcc2, \< f278ff9db67264715d0d50e3e75044f8b78990f4; \>= 6a5bcd84e886a9a91982e515c539529c28acdcc2, \< c3198822c6cb9fb588e446540485669cc81c5d34; Linux 5.14.

### Is there a fix for CVE-2024-26953?

Yes. Fixed in Linux 21b989b62456a0e1eae9f464a5ca360a608625d1, Linux 8291b4eac429c480386669444c6377573f5d8664, Linux 1abb20a5f4b02fb3020f88456fc1e6069b3cdc45. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-26953?

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/8291b4eac429c480386669444c6377573f5d8664>
- patch: <https://git.kernel.org/stable/c/1abb20a5f4b02fb3020f88456fc1e6069b3cdc45>
- patch: <https://git.kernel.org/stable/c/f278ff9db67264715d0d50e3e75044f8b78990f4>
- patch: <https://git.kernel.org/stable/c/c3198822c6cb9fb588e446540485669cc81c5d34>
- other: <https://git.kernel.org/stable/c/21b989b62456a0e1eae9f464a5ca360a608625d1>

## 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-2024-26953>

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