CVE-2025-71313 PCI: endpoint: Add missing NULL check for alloc_workqueue()
A missing NULL check in the Linux kernel PCI endpoint driver can cause a crash via NULL pointer dereference during initialization.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-71313?
CVE-2025-71313 is a medium-severity vulnerability in Linux kernel, published on 3 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-476
Which versions are affected by CVE-2025-71313?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-71313?
Apply the vendor's patch.
Is CVE-2025-71313 being exploited?
There is no known exploitation of CVE-2025-71313 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-89352, BELL-CVE-2025-71313, DEBIAN-CVE-2025-71313, GHSA-q63g-px5v-r7jv, ROOT-OS-DEBIAN-12-CVE-2025-71313, ROOT-OS-DEBIAN-13-CVE-2025-71313 and 3 more.