# CVE-2025-71313: PCI: endpoint: Add missing NULL check for alloc_workqueue()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-06-03T15:49:38.450Z
- Modified: 2026-10-30T13:18:27.477Z
- Weaknesses: CWE-476
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 8b821cf761503b80d0bd052f932adfe1bc1a0088 before 62b9e706d226329d1374c0c1b80222e75ae9d8cd; from 8b821cf761503b80d0bd052f932adfe1bc1a0088 before 11e78304b0113d3a122dc2c37426adc34c809645; from 8b821cf761503b80d0bd052f932adfe1bc1a0088 before 829ccfb22950c430f2bf5b40465510c210afb4d5; from 8b821cf761503b80d0bd052f932adfe1bc1a0088 before 2f62f8be57882c26f8bede0cab293d013964208f; from 8b821cf761503b80d0bd052f932adfe1bc1a0088 before 314eab6740bcda504ef978be599f805de05ce6de; from 8b821cf761503b80d0bd052f932adfe1bc1a0088 before 03f336a869b3a3f119d3ae52ac9723739c7fb7b6; 5.12 (not affected: before 5.12; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.114 up to 6.12.*; from 6.18.57 up to 6.18.*; from 6.19.4 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 5.12 before 6.19.4

## References

- <https://git.kernel.org/stable/c/62b9e706d226329d1374c0c1b80222e75ae9d8cd>
- <https://git.kernel.org/stable/c/11e78304b0113d3a122dc2c37426adc34c809645>
- <https://git.kernel.org/stable/c/829ccfb22950c430f2bf5b40465510c210afb4d5>
- <https://git.kernel.org/stable/c/2f62f8be57882c26f8bede0cab293d013964208f>
- <https://git.kernel.org/stable/c/314eab6740bcda504ef978be599f805de05ce6de> (patch)
- <https://git.kernel.org/stable/c/03f336a869b3a3f119d3ae52ac9723739c7fb7b6> (patch)

## Sources

- CVE List: [CVE-2025-71313](https://www.cve.org/CVERecord?id=CVE-2025-71313), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2025-71313](https://nvd.nist.gov/vuln/detail/CVE-2025-71313), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2025-71313 · Whole record: https://cve.day/CVE-2025-71313.json · Rebuilt by cve.day 2026-11-25T22:59:12.267Z
