iommu/arm-smmu-v3: Don't rb_erase() a never-inserted stream node
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
iommu/arm-smmu-v3: Don't rb_erase() a never-inserted stream node
arm_smmu_insert_master() 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 arm_smmu_remove_master() then call rb_erase() on every master->streams[i].node unconditionally. rb_erase() on a zeroed node sees a NULL parent, treats the node as the tree root and sets root->rb_node = NULL, silently emptying the whole SID tree and breaking SID lookups (and DMA) for every other master on the SMMU.
Mark each node with RB_CLEAR_NODE() after sort_nonatomic() reorders the array, since sorting relocates the entries and would leave the earlier self-referential RB_CLEAR_NODE() pointer stale. An un-inserted node then stays RB_EMPTY_NODE() and is skipped in both erase loops; inserted nodes are linked by rb_find_add() and erased as before.
| Product | Versions |
|---|---|
| Linux Linux | 98e634aa4b5d8a2766789785d4d1bcbefab0bc5c to before 535bcf5895519650b4fee9d01ed42fda81f3dd0f Affectedb00d24997a11c10d3e420614f0873b83ce358a34 to before 7bd2c17d756a97c8fd590460382eac97bd74ccc9 Affectedb00d24997a11c10d3e420614f0873b83ce358a34 to before 57729bca305c529a2a8dd08e1733002bb6daab9b Affectedb00d24997a11c10d3e420614f0873b83ce358a34 to before 2888520bdcbe0599cfc77b2fad8dc6c95505a3cb Affected655e607898f8cdfdb29fd2a6e618d11de99ec17a Affected8316820e4082052666872398a31c91668d1f8461 Affected4306dbd7676e41032813620e49cd821a25559852 Affected47a17be21a625f6c67a8a486867ffcc7eefecc97 Affected6.12.28 to before 6.12.120 Affected5.15.182 to before 5.16 Affected6.1.138 to before 6.2 Affected6.6.90 to before 6.7 Affected6.14.6 to before 6.15 Affected |
| Linux Linux | 6.15 Affectedbefore 6.15 Not Affected6.12.120 through 6.12.* Not Affected6.18.66 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.