VDB

CVE-2025-21676

CVE-2025-21676 PUBLISHED CVSS 7.5 HIGH

net: fec: handle page_pool_dev_alloc_pages error

Reported by linux · Published January 31, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux6.12.11, 6.6.74

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
LinuxLinux95698ff6177b5f1f13f251da60e7348413046ae4, 95698ff6177b5f1f13f251da60e7348413046ae4, 95698ff6177b5f1f13f251da60e7348413046ae4
LinuxLinux6.1, 0, 6.1.167
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0)3.1.7, 3.1.5, 3.1.6
linuxlinux_kernel6.1, 6.1, 6.1
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0)3.1.6, 3.1.7, 3.1.5
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.6, 3.1.7, 3.1.5
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0)3.1.6, 3.1.5, 3.1.7
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)3.1.6, 3.1.5, 3.1.7
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)3.1.7, 3.1.6, 3.1.5
LinuxLinux6.13, 95698ff6177b5f1f13f251da60e7348413046ae4, 6.1
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.7, 3.1.5, 3.1.6
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.6, 3.1.5, 3.1.7

Timeline

  • Jan 30, 2025 CVE Published
  • Feb 1, 2025 EPSS Score (30 in total, the first dated here)
  • Feb 23, 2025 Coalition ESS Score (16 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • Dec 22, 2025 Security Advisory (72 in total, the first dated here)
  • Apr 29, 2026 Distribution Patch (66 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-21676
vulnetix vdb fixes CVE-2025-21676

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-21676/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›