{"id":"CVE-2026-139459","state":"PUBLISHED","title":"PCI/P2PDMA: Wait for RCU readers before freeing state","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI/P2PDMA: Wait for RCU readers before freeing state\n\npci_p2pmem_find_many() scans all PCI devices without locking or protection\nagainst driver unbind, including devices with poolless P2PDMA state.\npci_has_p2pmem() may observe pdev->p2pdma just before driver unbind clears\nit, while pci_p2pdma_release() skips the grace period when no pool is\npresent. This allows devres to free the object while it is still in use.\n\nClear the pointer with RCU_INIT_POINTER() and always wait for pre-existing\nRCU readers before returning. The same grace period continues to protect\ngen_pool users for pool-backed providers.","publishedAt":"2026-11-30T13:34:57.049Z","updatedAt":"2026-11-30T13:34:57.049Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"372d6d1b8ae3cdfe6b0638a0a848c6865ec94567","status":"affected","lessThan":"210b39b5963cab9b6d78f1311f999a8de508df60","versionType":"git"},{"version":"372d6d1b8ae3cdfe6b0638a0a848c6865ec94567","status":"affected","lessThan":"1b82c6657e957f598b6e19e045e0bbd5cb370083","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/p2pdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.19","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/p2pdma.c"]}],"references":["https://git.kernel.org/stable/c/210b39b5963cab9b6d78f1311f999a8de508df60","https://git.kernel.org/stable/c/1b82c6657e957f598b6e19e045e0bbd5cb370083"],"weaknesses":[],"ingestedAt":"2026-11-30T13:50:04.417Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139459.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139459","state":"PUBLISHED","datePublished":"2026-11-30T13:34:57.049Z","dateUpdated":"2026-11-30T13:34:57.049Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.935Z"},"containers":{"cna":{"title":"PCI/P2PDMA: Wait for RCU readers before freeing state","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI/P2PDMA: Wait for RCU readers before freeing state\n\npci_p2pmem_find_many() scans all PCI devices without locking or protection\nagainst driver unbind, including devices with poolless P2PDMA state.\npci_has_p2pmem() may observe pdev->p2pdma just before driver unbind clears\nit, while pci_p2pdma_release() skips the grace period when no pool is\npresent. This allows devres to free the object while it is still in use.\n\nClear the pointer with RCU_INIT_POINTER() and always wait for pre-existing\nRCU readers before returning. The same grace period continues to protect\ngen_pool users for pool-backed providers."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"372d6d1b8ae3cdfe6b0638a0a848c6865ec94567","status":"affected","lessThan":"210b39b5963cab9b6d78f1311f999a8de508df60","versionType":"git"},{"version":"372d6d1b8ae3cdfe6b0638a0a848c6865ec94567","status":"affected","lessThan":"1b82c6657e957f598b6e19e045e0bbd5cb370083","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/p2pdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.19","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/pci/p2pdma.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/210b39b5963cab9b6d78f1311f999a8de508df60"},{"url":"https://git.kernel.org/stable/c/1b82c6657e957f598b6e19e045e0bbd5cb370083"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:34:57.049Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.19","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}