CVE-2026-139538: iommu/arm-smmu-v3: Don't rb_erase() a never-inserted stream node

Published Nov 30, 2026
·
Updated

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

iommu/arm-smmu-v3: Don't rberase() a never-inserted stream node

armsmmuinsertmaster() skips inserting a stream whose StreamID duplicates one the same master already owns (bridged PCI devices can present duplicate IDs), leaving that master->streams[i].node zeroed and unlinked from the smmu->streams rb-tree.

Both the insert error-rollback loop and armsmmuremovemaster() then call rberase() on every master->streams[i].node unconditionally. rberase() on a zeroed node sees a NULL parent, treats the node as the tree root and sets root->rbnode = NULL, silently emptying the whole SID tree and breaking SID lookups (and DMA) for every other master on the SMMU.

Mark each node with RBCLEARNODE() after sortnonatomic() reorders the array, since sorting relocates the entries and would leave the earlier self-referential RBCLEARNODE() pointer stale. An un-inserted node then stays RBEMPTYNODE() and is skipped in both erase loops; inserted nodes are linked by rbfindadd() and erased as before.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In arm-smmu-v3, call RB_CLEAR_NODE() on each stream node after sort_nonatomic() reorders the streams array, so uninserted nodes are skipped by the erase loops.

Event History

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

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using the Linux kernel arm-smmu-v3 driver are affected when a single master presents duplicate StreamIDs, a condition that can occur with bridged PCI devices. The issue concerns the SMMU stream-ID tree shared by masters on that SMMU.

2

What is the practical impact when the condition is triggered?

Cleanup of an uninserted duplicate stream node can silently clear the entire SID tree. This breaks SID lookups and DMA for every other master using the same SMMU.

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