---
id: CVE-2025-71313
title: |-
  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
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 lea…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-476
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 5.12, < 6.19.4'
patched:
  - linux_kernel 6.19.4
published: '2026-06-03'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T11:17:17.340'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-71313'
references:
  - url: 'https://git.kernel.org/stable/c/03f336a869b3a3f119d3ae52ac9723739c7fb7b6'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/2f62f8be57882c26f8bede0cab293d013964208f'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/314eab6740bcda504ef978be599f805de05ce6de'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
tags:
  - nvd
  - cve.org
epss: 0.00107
epssPercentile: 0.01097
ingestedAt: '2026-10-15T11:00:41.715Z'
---

## Overview

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.

## Affected

- `linux_kernel >= 5.12, < 6.19.4`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.19.4`
