# CVE-2025-21676: net: fec: handle page\_pool\_dev\_alloc\_pages error

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2025-01-31 · Modified: 2026-11-10
- Aliases: UBUNTU-CVE-2025-21676, DEBIAN-CVE-2025-21676
- Record: https://cvemate.com/vulnerability/CVE-2025-21676 · JSON: https://cvemate.com/vulnerability/CVE-2025-21676/json

## Description

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

net: fec: handle page_pool_dev_alloc_pages error

The fec_enet_update_cbd function calls page_pool_dev_alloc_pages but did
not handle the case when it returned NULL. There was a WARN_ON(!new_page)
but it would still proceed to use the NULL pointer and then crash.

This case does seem somewhat rare but when the system is under memory
pressure it can happen. One case where I can duplicate this with some
frequency is when writing over a smbd share to a SATA HDD attached to an
imx6q.

Setting /proc/sys/vm/min_free_kbytes to higher values also seems to solve
the problem for my test case. But it still seems wrong that the fec driver
ignores the memory allocation error and can crash.

This commit handles the allocation error by dropping the current packet.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.45%, percentile 40.805%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 109)

- debian linux (Debian): \< 6.1.170-1 \| \< 6.12.11-1
- ubuntu linux (Ubuntu): \< 6.8.0-62.65
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 6.8.0-1030.32
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1030.32~22.04.1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1030.35
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-6.11 (Ubuntu): \< 6.11.0-1013.13~24.04.1

## References (first 20 of 22)

- <https://git.kernel.org/stable/c/eacdcc14f3c8d4c1447565521e792ddb3a67e08d>
- <https://git.kernel.org/stable/c/8a0097db0544b658c159ac787319737712063a23>
- <https://git.kernel.org/stable/c/1425cb829556398f594658512d49292f988a2ab0>
- <https://git.kernel.org/stable/c/001ba0902046cb6c352494df610718c0763e77a5>
- <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- <https://ubuntu.com/security/CVE-2025-21676>
- <https://www.cve.org/CVERecord?id=CVE-2025-21676>
- <https://git.kernel.org/linus/001ba0902046cb6c352494df610718c0763e77a5>
- <https://ubuntu.com/security/notices/USN-7445-1>
- <https://ubuntu.com/security/notices/USN-7448-1>
- <https://ubuntu.com/security/notices/USN-7595-1>
- <https://ubuntu.com/security/notices/USN-7596-1>
- <https://ubuntu.com/security/notices/USN-7595-2>
- <https://ubuntu.com/security/notices/USN-7596-2>
- <https://ubuntu.com/security/notices/USN-7595-3>
- <https://ubuntu.com/security/notices/USN-7595-4>
- <https://ubuntu.com/security/notices/USN-7595-5>
- <https://ubuntu.com/security/notices/USN-7653-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-21676>

---

Data as of 2026-12-05T04:02:46.988Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
