Skip to content
Heist/ feed
High

net: fec: handle page_pool_dev_alloc_pages error

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2025-21676

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2025-21676

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "95698ff6177b5f1f13f251da60e7348413046ae4",
        "lessThan": "eacdcc14f3c8d4c1447565521e792ddb3a67e08d",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "95698ff6177b5f1f13f251da60e7348413046ae4",
        "lessThan": "8a0097db0544b658c159ac787319737712063a23",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "95698ff6177b5f1f13f251da60e7348413046ae4",
        "lessThan": "1425cb829556398f594658512d49292f988a2ab0",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "95698ff6177b5f1f13f251da60e7348413046ae4",
        "lessThan": "001ba0902046cb6c352494df610718c0763e77a5",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/net/ethernet/freescale/fec_main.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.1"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.1",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.1.167",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.74",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.11",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.13",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/net/ethernet/freescale/fec_main.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-21676

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#26903 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement