Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 8b821cf761503b80d0bd052f932adfe1bc1a0088 before 11e78304b0113d3a122dc2c37426adc34c809645; affected 8b821cf761503b80d0bd052f932adfe1bc1a0088 before 829ccfb22950c430f2bf5b40465510c210afb4d5; affected 8b821cf761503b80d0bd052f932adfe1bc1a0088 before 2f62f8be57882c26f8bede0cab293d013964208f; affected 8b821cf761503b80d0bd052f932adfe1bc1a0088 before 314eab6740bcda504ef978be599f805de05ce6de; affected 8b821cf761503b80d0bd052f932adfe1bc1a0088 before 03f336a869b3a3f119d3ae52ac9723739c7fb7b6 |
| Linux / Linux | affected 5.12; unaffected 0 before 5.12; unaffected 6.6.160 through 6.6.*; unaffected 6.12.114 through 6.12.*; unaffected 6.18.57 through 6.18.*; unaffected 6.19.4 through 6.19.*; unaffected 7.0 through * |
CWE
No CWE identifiers supplied.
References
- 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
- https://git.kernel.org/stable/c/03f336a869b3a3f119d3ae52ac9723739c7fb7b6