GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2025-71313 (GCVE-0-2025-71313)

Vulnerability from cvelistv5 – Published: 2026-06-03 15:49 – Updated: 2026-06-03 15:49
VLAI
Title
PCI: endpoint: Add missing NULL check for alloc_workqueue()
Summary
In the Linux kernel, the following vulnerability has been resolved: PCI: endpoint: Add missing NULL check for alloc_workqueue() alloc_workqueue() can return NULL on memory allocation failure. Without proper error checking, this may lead to a NULL pointer dereference when queue_work() is later called with the NULL workqueue pointer in epf_ntb_epc_init(). Add a NULL check immediately after alloc_workqueue() and return -ENOMEM on failure to prevent the driver from loading with an invalid workqueue pointer.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 8b821cf761503b80d0bd052f932adfe1bc1a0088 , < 314eab6740bcda504ef978be599f805de05ce6de (git)
Affected: 8b821cf761503b80d0bd052f932adfe1bc1a0088 , < 03f336a869b3a3f119d3ae52ac9723739c7fb7b6 (git)
guessed Create a notification for this product.
Linux Linux Affected: 5.12
Unaffected: 0 , < 5.12 (semver)
Unaffected: 6.19.4 , ≤ 6.19.* (semver)
Unaffected: 7.0 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/pci/endpoint/functions/pci-epf-ntb.c",
            "drivers/pci/endpoint/functions/pci-epf-vntb.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "314eab6740bcda504ef978be599f805de05ce6de",
              "status": "affected",
              "version": "8b821cf761503b80d0bd052f932adfe1bc1a0088",
              "versionType": "git"
            },
            {
              "lessThan": "03f336a869b3a3f119d3ae52ac9723739c7fb7b6",
              "status": "affected",
              "version": "8b821cf761503b80d0bd052f932adfe1bc1a0088",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/pci/endpoint/functions/pci-epf-ntb.c",
            "drivers/pci/endpoint/functions/pci-epf-vntb.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.12"
            },
            {
              "lessThan": "5.12",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.19.*",
              "status": "unaffected",
              "version": "6.19.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.0",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.19.4",
                  "versionStartIncluding": "5.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.0",
                  "versionStartIncluding": "5.12",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-06-03T15:49:38.450Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/314eab6740bcda504ef978be599f805de05ce6de"
        },
        {
          "url": "https://git.kernel.org/stable/c/03f336a869b3a3f119d3ae52ac9723739c7fb7b6"
        }
      ],
      "title": "PCI: endpoint: Add missing NULL check for alloc_workqueue()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-71313",
    "datePublished": "2026-06-03T15:49:38.450Z",
    "dateReserved": "2026-05-27T12:23:27.414Z",
    "dateUpdated": "2026-06-03T15:49:38.450Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2025-71313",
      "date": "2026-09-16",
      "epss": "0.00107",
      "percentile": "0.01312"
    },
    "microsoft_vex": {
      "current_release_date": "2026-08-12T23:56:13.000Z",
      "cve": "CVE-2025-71313",
      "id": "msrc_CVE-2025-71313",
      "initial_release_date": "2026-06-05T01:01:48.000Z",
      "product_status:known_affected": "5",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "PCI: endpoint: Add missing NULL check for alloc_workqueue()",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2025-71313.json",
      "version": "5"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2025-71313\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-06-03T18:16:19.130\",\"lastModified\":\"2026-07-22T19:10:00.120\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"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.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\\n\\nPCI: endpoint: A\u00f1adir comprobaci\u00f3n de NULL faltante para alloc_workqueue()\\n\\nalloc_workqueue() puede devolver NULL en caso de fallo de asignaci\u00f3n de memoria. Sin una comprobaci\u00f3n de errores adecuada, esto puede llevar a una desreferencia de puntero NULL cuando queue_work() es llamado posteriormente con el puntero de workqueue NULL en epf_ntb_epc_init().\\n\\nA\u00f1adir una comprobaci\u00f3n de NULL inmediatamente despu\u00e9s de alloc_workqueue() y devolver -ENOMEM en caso de fallo para evitar que el controlador se cargue con un puntero de workqueue inv\u00e1lido.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/pci/endpoint/functions/pci-epf-ntb.c\",\"drivers/pci/endpoint/functions/pci-epf-vntb.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"8b821cf761503b80d0bd052f932adfe1bc1a0088\",\"lessThan\":\"314eab6740bcda504ef978be599f805de05ce6de\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"8b821cf761503b80d0bd052f932adfe1bc1a0088\",\"lessThan\":\"03f336a869b3a3f119d3ae52ac9723739c7fb7b6\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/pci/endpoint/functions/pci-epf-ntb.c\",\"drivers/pci/endpoint/functions/pci-epf-vntb.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.12\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.12\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.19.4\",\"lessThanOrEqual\":\"6.19.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.0\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-476\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.12\",\"versionEndExcluding\":\"6.19.4\",\"matchCriteriaId\":\"43D7D5E9-6DEE-48CF-8EF9-4DF8896DC989\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/03f336a869b3a3f119d3ae52ac9723739c7fb7b6\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/314eab6740bcda504ef978be599f805de05ce6de\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-06-28T07:13:19+00:00",
      "cve": "CVE-2025-71313",
      "id": "CVE-2025-71313",
      "initial_release_date": "2025-01-01T00:00:00+00:00",
      "product_status:known_affected": "76",
      "product_status:known_not_affected": "198",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: PCI: endpoint: Add missing NULL check for alloc_workqueue()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-71313.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-08-28T16:47:00Z",
      "cve": "CVE-2025-71313",
      "id": "CVE-2025-71313",
      "initial_release_date": "2026-06-04T02:31:41Z",
      "product_status:known_affected": "212",
      "product_status:known_not_affected": "175",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2025-71313",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2025-71313.json",
      "version": "6"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…