CVE-2025-71313·Kernel vulnerability
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.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.19.4
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.12% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 5.12
Until: 6.19.4
Fixed in: 6.19.4
How to fix this CVE
Update your Linux kernel to version 6.19.4 or later to patch a NULL pointer dereference vulnerability in the PCI endpoint driver's workqueue initialization. Systems running kernel versions 5.12 through 6.19.3 should prioritize this update to prevent potential denial-of-service conditions when the PCI NTB endpoint controller is initialized.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with `uname -r` — if it shows version 5.12 through 6.19.3, you are vulnerable
- Step 2: Verify if PCI NTB (Non-Transparent Bridge) endpoint support is compiled into your kernel by running `grep -i CONFIG_PCI_ENDPOINT_NTB /boot/config-$(uname -r)` — if it returns 'y', the vulnerable code path is present
- Step 3: Monitor kernel logs for memory allocation failures using `dmesg | grep -i 'alloc_workqueue\|workqueue\|NULL' | tail -20` to detect any workqueue initialization errors
- Step 4: After patching, verify the new kernel version with `uname -r` and confirm it is 6.19.4 or later
FAQ
What is CVE-2025-71313?
This vulnerability exists in the Linux kernel's PCI endpoint NTB driver where the code fails to validate that memory allocation for a workqueue succeeded, potentially leading to a NULL pointer dereference when the driver attempts to queue work on the uninitialized pointer.
Is CVE-2025-71313 being actively exploited?
No, there are no known active exploits or public proof-of-concept code available for CVE-2025-71313, and it is not currently listed in the CISA KEV catalog.
What versions of Kernel are affected by CVE-2025-71313?
Linux kernel versions 5.12 through 6.19.3 are vulnerable. The fix was merged in kernel 6.19.4.
How do I check if my server is vulnerable to CVE-2025-71313?
Run `uname -r` to get your kernel version. If it reports a version between 5.12 and 6.19.3 (inclusive), and you have PCI NTB endpoint support enabled (check with `grep CONFIG_PCI_ENDPOINT_NTB /boot/config-$(uname -r)`), your system is vulnerable.
Does Defensia detect CVE-2025-71313?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2025-71313 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/03f336a869b3a3f119d3ae52ac9723739c7fb7b6
- https://git.kernel.org/stable/c/11e78304b0113d3a122dc2c37426adc34c809645
- https://git.kernel.org/stable/c/2f62f8be57882c26f8bede0cab293d013964208f
- https://git.kernel.org/stable/c/314eab6740bcda504ef978be599f805de05ce6de
- https://git.kernel.org/stable/c/62b9e706d226329d1374c0c1b80222e75ae9d8cd
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-71313. Free for 1 server.
Get started free