{
  "id": "CVE-2025-21676",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21676",
  "published_at": "2025-01-31T11:25:38.126Z",
  "title": "net: fec: handle page_pool_dev_alloc_pages error",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: fec: handle page_pool_dev_alloc_pages error\n\nThe fec_enet_update_cbd function calls page_pool_dev_alloc_pages but did\nnot handle the case when it returned NULL. There was a WARN_ON(!new_page)\nbut it would still proceed to use the NULL pointer and then crash.\n\nThis case does seem somewhat rare but when the system is under memory\npressure it can happen. One case where I can duplicate this with some\nfrequency is when writing over a smbd share to a SATA HDD attached to an\nimx6q.\n\nSetting /proc/sys/vm/min_free_kbytes to higher values also seems to solve\nthe problem for my test case. But it still seems wrong that the fec driver\nignores the memory allocation error and can crash.\n\nThis commit handles the allocation error by dropping the current packet.",
  "cwe": "CWE-476",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc7:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 5.5,
    "cna": 7.5,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 95698ff6177b5f1f13f251da60e7348413046ae4, \u003c eacdcc14f3c8d4c1447565521e792ddb3a67e08d",
          "\u003e= 95698ff6177b5f1f13f251da60e7348413046ae4, \u003c 8a0097db0544b658c159ac787319737712063a23",
          "\u003e= 95698ff6177b5f1f13f251da60e7348413046ae4, \u003c 1425cb829556398f594658512d49292f988a2ab0",
          "\u003e= 95698ff6177b5f1f13f251da60e7348413046ae4, \u003c 001ba0902046cb6c352494df610718c0763e77a5"
        ],
        "fixed_in": [
          "eacdcc14f3c8d4c1447565521e792ddb3a67e08d",
          "8a0097db0544b658c159ac787319737712063a23",
          "1425cb829556398f594658512d49292f988a2ab0",
          "001ba0902046cb6c352494df610718c0763e77a5"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.1"
        ],
        "fixed_in": [
          "0",
          "6.1.167",
          "6.6.74",
          "6.12.11",
          "6.13"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to eacdcc14f3c8d4c1447565521e792ddb3a67e08d or 8a0097db0544b658c159ac787319737712063a23 or 1425cb829556398f594658512d49292f988a2ab0 or 001ba0902046cb6c352494df610718c0763e77a5 or later.",
      "Upgrade Linux to 0 or 6.1.167 or 6.6.74 or 6.12.11 or 6.13 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
