{"id":"CVE-2026-139538","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:19:30.600","lastModified":"2026-11-30T14:19:30.600","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\niommu/arm-smmu-v3: Don't rb_erase() a never-inserted stream node\n\narm_smmu_insert_master() skips inserting a stream whose StreamID duplicates\none the same master already owns (bridged PCI devices can present duplicate\nIDs), leaving that master->streams[i].node zeroed and unlinked from the\nsmmu->streams rb-tree.\n\nBoth the insert error-rollback loop and arm_smmu_remove_master() then call\nrb_erase() on every master->streams[i].node unconditionally. rb_erase() on\na zeroed node sees a NULL parent, treats the node as the tree root and sets\nroot->rb_node = NULL, silently emptying the whole SID tree and breaking SID\nlookups (and DMA) for every other master on the SMMU.\n\nMark each node with RB_CLEAR_NODE() after sort_nonatomic() reorders the\narray, since sorting relocates the entries and would leave the earlier\nself-referential RB_CLEAR_NODE() pointer stale. An un-inserted node then\nstays RB_EMPTY_NODE() and is skipped in both erase loops; inserted nodes\nare linked by rb_find_add() and erased as before."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"98e634aa4b5d8a2766789785d4d1bcbefab0bc5c","lessThan":"535bcf5895519650b4fee9d01ed42fda81f3dd0f","versionType":"git","status":"affected"},{"version":"b00d24997a11c10d3e420614f0873b83ce358a34","lessThan":"7bd2c17d756a97c8fd590460382eac97bd74ccc9","versionType":"git","status":"affected"},{"version":"b00d24997a11c10d3e420614f0873b83ce358a34","lessThan":"57729bca305c529a2a8dd08e1733002bb6daab9b","versionType":"git","status":"affected"},{"version":"b00d24997a11c10d3e420614f0873b83ce358a34","lessThan":"2888520bdcbe0599cfc77b2fad8dc6c95505a3cb","versionType":"git","status":"affected"},{"version":"655e607898f8cdfdb29fd2a6e618d11de99ec17a","versionType":"git","status":"affected"},{"version":"8316820e4082052666872398a31c91668d1f8461","versionType":"git","status":"affected"},{"version":"4306dbd7676e41032813620e49cd821a25559852","versionType":"git","status":"affected"},{"version":"47a17be21a625f6c67a8a486867ffcc7eefecc97","versionType":"git","status":"affected"},{"version":"6.12.28","lessThan":"6.12.120","versionType":"semver","status":"affected"},{"version":"5.15.182","lessThan":"5.16","versionType":"semver","status":"affected"},{"version":"6.1.138","lessThan":"6.2","versionType":"semver","status":"affected"},{"version":"6.6.90","lessThan":"6.7","versionType":"semver","status":"affected"},{"version":"6.14.6","lessThan":"6.15","versionType":"semver","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"6.15","status":"affected"},{"version":"0","lessThan":"6.15","versionType":"semver","status":"unaffected"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/2888520bdcbe0599cfc77b2fad8dc6c95505a3cb","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/535bcf5895519650b4fee9d01ed42fda81f3dd0f","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/57729bca305c529a2a8dd08e1733002bb6daab9b","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/7bd2c17d756a97c8fd590460382eac97bd74ccc9","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}