{"id":"CVE-2025-71313","state":"PUBLISHED","title":"PCI: endpoint: Add missing NULL check for alloc_workqueue()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI: endpoint: Add missing NULL check for alloc_workqueue()\n\nalloc_workqueue() can return NULL on memory allocation failure. Without\nproper error checking, this may lead to a NULL pointer dereference when\nqueue_work() is later called with the NULL workqueue pointer in\nepf_ntb_epc_init().\n\nAdd a NULL check immediately after alloc_workqueue() and return -ENOMEM on\nfailure to prevent the driver from loading with an invalid workqueue\npointer.","publishedAt":"2026-06-03T15:49:38.450Z","updatedAt":"2026-10-30T12:23:37.692Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8b821cf761503b80d0bd052f932adfe1bc1a0088","status":"affected","lessThan":"62b9e706d226329d1374c0c1b80222e75ae9d8cd","versionType":"git"},{"version":"8b821cf761503b80d0bd052f932adfe1bc1a0088","status":"affected","lessThan":"11e78304b0113d3a122dc2c37426adc34c809645","versionType":"git"},{"version":"8b821cf761503b80d0bd052f932adfe1bc1a0088","status":"affected","lessThan":"829ccfb22950c430f2bf5b40465510c210afb4d5","versionType":"git"},{"version":"8b821cf761503b80d0bd052f932adfe1bc1a0088","status":"affected","lessThan":"2f62f8be57882c26f8bede0cab293d013964208f","versionType":"git"},{"version":"8b821cf761503b80d0bd052f932adfe1bc1a0088","status":"affected","lessThan":"314eab6740bcda504ef978be599f805de05ce6de","versionType":"git"},{"version":"8b821cf761503b80d0bd052f932adfe1bc1a0088","status":"affected","lessThan":"03f336a869b3a3f119d3ae52ac9723739c7fb7b6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/endpoint/functions/pci-epf-ntb.c","drivers/pci/endpoint/functions/pci-epf-vntb.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.12","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.114","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.57","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.4","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/endpoint/functions/pci-epf-ntb.c","drivers/pci/endpoint/functions/pci-epf-vntb.c"]}],"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","https://git.kernel.org/stable/c/03f336a869b3a3f119d3ae52ac9723739c7fb7b6"],"weaknesses":[],"ingestedAt":"2026-10-30T12:40:04.423Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/71xxx/CVE-2025-71313.json","commit":"db8103c5921aac81d5d90efcf3745980dafabf49","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-71313","state":"PUBLISHED","datePublished":"2026-06-03T15:49:38.450Z","dateUpdated":"2026-10-30T12:23:37.692Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-05-27T12:23:27.414Z"},"containers":{"cna":{"title":"PCI: endpoint: Add missing NULL check for alloc_workqueue()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI: endpoint: Add missing NULL check for alloc_workqueue()\n\nalloc_workqueue() can return NULL on memory allocation failure. Without\nproper error checking, this may lead to a NULL pointer dereference when\nqueue_work() is later called with the NULL workqueue pointer in\nepf_ntb_epc_init().\n\nAdd a NULL check immediately after alloc_workqueue() and return -ENOMEM on\nfailure to prevent the driver from loading with an invalid workqueue\npointer."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8b821cf761503b80d0bd052f932adfe1bc1a0088","status":"affected","lessThan":"62b9e706d226329d1374c0c1b80222e75ae9d8cd","versionType":"git"},{"version":"8b821cf761503b80d0bd052f932adfe1bc1a0088","status":"affected","lessThan":"11e78304b0113d3a122dc2c37426adc34c809645","versionType":"git"},{"version":"8b821cf761503b80d0bd052f932adfe1bc1a0088","status":"affected","lessThan":"829ccfb22950c430f2bf5b40465510c210afb4d5","versionType":"git"},{"version":"8b821cf761503b80d0bd052f932adfe1bc1a0088","status":"affected","lessThan":"2f62f8be57882c26f8bede0cab293d013964208f","versionType":"git"},{"version":"8b821cf761503b80d0bd052f932adfe1bc1a0088","status":"affected","lessThan":"314eab6740bcda504ef978be599f805de05ce6de","versionType":"git"},{"version":"8b821cf761503b80d0bd052f932adfe1bc1a0088","status":"affected","lessThan":"03f336a869b3a3f119d3ae52ac9723739c7fb7b6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/endpoint/functions/pci-epf-ntb.c","drivers/pci/endpoint/functions/pci-epf-vntb.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.12","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.114","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.57","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.4","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/endpoint/functions/pci-epf-ntb.c","drivers/pci/endpoint/functions/pci-epf-vntb.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/62b9e706d226329d1374c0c1b80222e75ae9d8cd"},{"url":"https://git.kernel.org/stable/c/11e78304b0113d3a122dc2c37426adc34c809645"},{"url":"https://git.kernel.org/stable/c/829ccfb22950c430f2bf5b40465510c210afb4d5"},{"url":"https://git.kernel.org/stable/c/2f62f8be57882c26f8bede0cab293d013964208f"},{"url":"https://git.kernel.org/stable/c/314eab6740bcda504ef978be599f805de05ce6de"},{"url":"https://git.kernel.org/stable/c/03f336a869b3a3f119d3ae52ac9723739c7fb7b6"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:23:37.692Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"6.12.114"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"6.18.57"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"6.19.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}