CVE-2026-139459: PCI/P2PDMA: Wait for RCU readers before freeing state

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

PCI/P2PDMA: Wait for RCU readers before freeing state

pcip2pmemfindmany() scans all PCI devices without locking or protection against driver unbind, including devices with poolless P2PDMA state. pcihasp2pmem() may observe pdev->p2pdma just before driver unbind clears it, while pcip2pdmarelease() 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 RCUINITPOINTER() and always wait for pre-existing RCU readers before returning. The same grace period continues to protect genpool users for pool-backed providers.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Clear the p2pdma pointer with RCU_INIT_POINTER() and always wait for pre-existing RCU readers before returning, including when no pool is present.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:34 PM
Data Sourced
via MITRE·01:34 PM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using Linux kernel PCI peer-to-peer DMA functionality are relevant, particularly where PCI devices can be scanned for P2PDMA providers while a provider driver is being unbound. Providers with poolless P2PDMA state are specifically implicated.

2

What condition triggers the unsafe access?

The race occurs when pci_p2pmem_find_many() or pci_has_p2pmem() observes a device's P2PDMA state just before driver unbind clears it. The release path can then allow devres to free that state while an existing reader still uses it.

3

What does the resolved change do to prevent the race?

It clears the P2PDMA pointer with RCU_INIT_POINTER() and waits for pre-existing RCU readers before the release path returns, including when no pool is present. The grace period also continues to protect gen_pool users for pool-backed providers.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203