{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-139460 in the wild and no public exploit code.","exposure":"","fix":"Upgrade to a fixed version.","what":"CVE-2026-139460 is a vulnerability in Linux, published on 30 Nov 2026."},"fix_prompt":"Check this codebase for CVE-2026-139460 and fix it if it is affected.\n\nWhat it is: CVE-2026-139460 is a vulnerability in Linux, published on 30 Nov 2026. \nExploitation: There is no known exploitation of CVE-2026-139460 in the wild and no public exploit code.\n\nAffected product: Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-139460/ (Markdown: https://insights.sbomify.com/CVE-2026-139460/index.md)","id":"CVE-2026-139460","markdown":"https://insights.sbomify.com/CVE-2026-139460/index.md","name":"CVE-2026-139460","record":{"aliases":["AZL-117157","BELL-CVE-2026-139460","DEBIAN-CVE-2026-139460","GHSA-x3m7-5g97-5667","UBUNTU-CVE-2026-139460"],"analysis":null,"analysis_generated_by":null,"assigner":"Linux","component":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI/P2PDMA: Do not tear down the allocate attribute on registration failure\n\npci_p2pdma_add_resource() installs pci_p2pdma_unmap_mappings() as a devres\naction with the devres allocated p2p_pgmap as its data, and only then adds\nthe range to the pool:\n\n  error = devm_add_action_or_reset(\u0026pdev-\u003edev, pci_p2pdma_unmap_mappings,\n                                   p2p_pgmap);\n  if (error)\n          goto pages_free;\n\n  p2pdma = rcu_dereference_protected(pdev-\u003ep2pdma, 1);\n  error = gen_pool_add_owner(p2pdma-\u003epool, ...);\n  if (error)\n          goto pages_free;\n\nThe action removes the allocate attribute for the whole device, which tears\ndown existing userspace mappings of every BAR already registered on it.\nBoth failures here get that wrong, in opposite ways.\n\ndevm_add_action_or_reset() runs the action when it cannot allocate its\ndevres node, so an -ENOMEM while registering a second BAR unmaps the first\none. Use devm_add_action() and let the error path unwind only what this\ncall created.\n\ngen_pool_add_owner() allocates a chunk and can also fail with -ENOMEM.\nThere the action is registered, and the error path frees p2p_pgmap with\ndevm_kfree() while leaving the action pointing at it. On unbind devres\nruns the action and pci_p2pdma_unmap_mappings() dereferences\np2p_pgmap-\u003emem-\u003eowner-\u003ekobj, which is freed memory. Give that failure its\nown label and drop the action with devm_remove_action(), which removes it\nwithout running it.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"PCI/P2PDMA: Do not tear down the allocate attribute on registration failure","id":"CVE-2026-139460","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":null,"year":"2026"},"main_cpe":null,"main_fixed":[],"main_package":null,"n_packages":0,"n_references":4,"n_vendor_status":0,"next":{"headline":"dma-direct: Restore arch_dma_alloc() for the DMA_ATTR_NO_KERNEL_MAPPING case","id":"CVE-2026-139461"},"nickname":null,"packages":[],"prev":{"headline":"PCI/P2PDMA: Wait for RCU readers before freeing state","id":"CVE-2026-139459"},"products":["Linux"],"published":"2026-11-30","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","text_fixes":[],"updated":"2026-11-30","vendor_status":[],"vendors":["Linux"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-139460/"}