CVE-2025-71313
JSON

5.5medium

PCI: endpoint: Add missing NULL check for alloc_workqueue()

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.16% (higher than 4% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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.*
CVE List
linux linux_kernelfrom 5.12 before 6.19.4NVD

Classification

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: PCI: endpoint: Añadir comprobación de NULL faltante para alloc_workqueue() alloc_workqueue() puede devolver NULL en caso de fallo de asignación de memoria. Sin una comprobación 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(). Añadir una comprobación de NULL inmediatamente después de alloc_workqueue() y devolver -ENOMEM en caso de fallo para evitar que el controlador se cargue con un puntero de workqueue inválido.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-71313 changed 2026-10-30CVE Terms of Use
NVDCVE-2025-71313 changed 2026-10-30Public domain