All reports
Low

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

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-71313

Probability of exploitation in the next 30 days: 0.16%

FIRST EPSS · 2026-11-18

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.

A flaw was found in the Linux kernel's PCI endpoint driver. A missing NULL check for the alloc_workqueue() function can lead to a NULL pointer dereference if memory allocation fails. This vulnerability, specifically within the epf_ntb_epc_init() function, allows a local attacker to cause a system crash, resulting in a Denial of Service (DoS).