CVE-2026-139459

PCI/P2PDMA: Wait for RCU readers before freeing state

Published Nov 30, 2026 CVSS 3.1 · 4.1 Medium EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

PCI/P2PDMA: Wait for RCU readers before freeing state

pci_p2pmem_find_many() scans all PCI devices without locking or protection
against driver unbind, including devices with poolless P2PDMA state.
pci_has_p2pmem() may observe pdev->p2pdma just before driver unbind clears
it, while pci_p2pdma_release() skips the grace period when no pool is
present. This allows devres to free the object while it is still in use.

Clear the pointer with RCU_INIT_POINTER() and always wait for pre-existing
RCU readers before returning. The same grace period continues to protect
gen_pool users for pool-backed providers.

Analysis

AI-generated

Technical impact

In the Linux kernel, the routine that scans PCI devices for P2P memory access does not protect against a driver being unbound during the scan. If the driver clears a device’s P2P state while another kernel component is still using that state, the memory holding that state is freed prematurely. This use‑after‑free can corrupt kernel memory or crash the system and is represented by CWE‑416.

Affected Systems

The issue impacts any Linux kernel built before the merge of the commit that introduced an RCU grace‑period before freeing the P2P state (commit 1b82c6657e957f598b6e19e045e0bbd5cb370083). No vendor‑specific version list is supplied, so every kernel version predating that change is potentially vulnerable.

Risk and Exploitability

Based on the description, it is inferred that the attack vector requires local privileged code or a race condition during driver unbinding. The EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog, so no widespread exploitation has been reported yet. Nevertheless, the lack of a CVSS score and the severe nature of a use‑after‑free mean that the risk remains potentially high for systems that run an affected kernel and have privileged users capable of loading or unloading PCI drivers.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest kernel update that includes the RCU‑grace‑period fix (e.g., the commit 1b82c6657e957f598b6e19e045e0bbd5cb370083).
  • If an immediate kernel upgrade is not possible, stop using PCI P2P DMA by adding the kernel command‑line option pci=no_p2p, or unbind all PCI drivers that use P2P memory before removing or rebinding devices.
  • If P2P capabilities remain required, modify or patch third‑party drivers to use RCU synchronization (equivalent to the RCU_INIT_POINTER change) before freeing the P2P state.

Generated by OpenCVE AI on December 1, 2026 at 06:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.1, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: PCI/P2PDMA: Wait for RCU readers before freeing state pci_p2pmem_find_many() scans all PCI devices without locking or protection against driver unbind, including devices with poolless P2PDMA state. pci_has_p2pmem() may observe pdev->p2pdma just before driver unbind clears it, while pci_p2pdma_release() skips the grace period when no pool is present. This allows devres to free the object while it is still in use. Clear the pointer with RCU_INIT_POINTER() and always wait for pre-existing RCU readers before returning. The same grace period continues to protect gen_pool users for pool-backed providers.
Title PCI/P2PDMA: Wait for RCU readers before freeing state
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:34 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:34 PM