Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139460

published

PCI/P2PDMA: Do not tear down the allocate attribute on registration failure

Published
30 Nov 2026, 13:34:57 UTC
Updated
30 Nov 2026, 13:34:57 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux7e9c7ef83d785236f5a8c3761dd053fae9b92fb8 to < ea24957f8be21b0724fcb968b73860257b718b63 · 7e9c7ef83d785236f5a8c3761dd053fae9b92fb8 to < 4fea96c997265874cfa1788494f9ce2d413b6d92 · 7e9c7ef83d785236f5a8c3761dd053fae9b92fb8 to < 29a3a087228b372b9e7ebaf363550e4a1c95ba61 · 7e9c7ef83d785236f5a8c3761dd053fae9b92fb8 to < 7c4d6505a1f8a1ebe8019b7f988ed494b696653b · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.2 (affected) · 0 to < 6.2 (unaffected · semver) · 6.12.120 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux

Description

In the Linux kernel, the following vulnerability has been resolved: PCI/P2PDMA: Do not tear down the allocate attribute on registration failure pci_p2pdma_add_resource() installs pci_p2pdma_unmap_mappings() as a devres action with the devres allocated p2p_pgmap as its data, and only then adds the range to the pool: error = devm_add_action_or_reset(&pdev->dev, pci_p2pdma_unmap_mappings, p2p_pgmap); if (error) goto pages_free; p2pdma = rcu_dereference_protected(pdev->p2pdma, 1); error = gen_pool_add_owner(p2pdma->pool, ...); if (error) goto pages_free; The action removes the allocate attribute for the whole device, which tears down existing userspace mappings of every BAR already registered on it. Both failures here get that wrong, in opposite ways. devm_add_action_or_reset() runs the action when it cannot allocate its devres node, so an -ENOMEM while registering a second BAR unmaps the first one. Use devm_add_action() and let the error path unwind only what this call created. gen_pool_add_owner() allocates a chunk and can also fail with -ENOMEM. There the action is registered, and the error path frees p2p_pgmap with devm_kfree() while leaving the action pointing at it. On unbind devres runs the action and pci_p2pdma_unmap_mappings() dereferences p2p_pgmap->mem->owner->kobj, which is freed memory. Give that failure its own label and drop the action with devm_remove_action(), which removes it without running it.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 7e9c7ef83d785236f5a8c3761dd053fae9b92fb8 to < ea24957f8be21b0724fcb968b73860257b718b63 (affected · git)7e9c7ef83d785236f5a8c3761dd053fae9b92fb8 to < 4fea96c997265874cfa1788494f9ce2d413b6d92 (affected · git)7e9c7ef83d785236f5a8c3761dd053fae9b92fb8 to < 29a3a087228b372b9e7ebaf363550e4a1c95ba61 (affected · git)7e9c7ef83d785236f5a8c3761dd053fae9b92fb8 to < 7c4d6505a1f8a1ebe8019b7f988ed494b696653b (affected · git)Default: unaffected Linux · cna
Linux Linux 6.2 (affected)0 to < 6.2 (unaffected · semver)6.12.120 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

1

Linux · cna

PCI/P2PDMA: Do not tear down the allocate attribute on registration failure

Provenance

Schema
5.2
Searchable
yes
Content hash
9ed502580cc914c0b4bc9934458e2297729c774ea80a491a0e77cce250038c39
Ingested
30 Nov 2026, 13:42:23 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected