{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "8b821cf761503b80d0bd052f932adfe1bc1a0088"
            },
            {
              "fixed": "314eab6740bcda504ef978be599f805de05ce6de"
            },
            {
              "fixed": "03f336a869b3a3f119d3ae52ac9723739c7fb7b6"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.12.0"
            },
            {
              "fixed": "6.19.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71313.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nPCI: endpoint: Add missing NULL check for alloc_workqueue()\n\nalloc_workqueue() can return NULL on memory allocation failure. Without\nproper error checking, this may lead to a NULL pointer dereference when\nqueue_work() is later called with the NULL workqueue pointer in\nepf_ntb_epc_init().\n\nAdd a NULL check immediately after alloc_workqueue() and return -ENOMEM on\nfailure to prevent the driver from loading with an invalid workqueue\npointer.",
  "id": "CVE-2025-71313",
  "modified": "2026-07-08T05:38:49.345192856Z",
  "published": "2026-06-03T15:49:38.450Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/03f336a869b3a3f119d3ae52ac9723739c7fb7b6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/314eab6740bcda504ef978be599f805de05ce6de"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71313.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-71313"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.5",
  "summary": "PCI: endpoint: Add missing NULL check for alloc_workqueue()"
}