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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:35:41.244Z
- **Modified:** 2026-11-30T14:19:30.600Z

## Who should check

- Anyone running Linux \>= 98e634aa4b5d8a2766789785d4d1bcbefab0bc5c, \< 535bcf5895519650b4fee9d01ed42fda81f3dd0f; \>= b00d24997a11c10d3e420614f0873b83ce358a34, \< 7bd2c17d756a97c8fd590460382eac97bd74ccc9; \>= b00d24997a11c10d3e420614f0873b83ce358a34, \< 57729bca305c529a2a8dd08e1733002bb6daab9b; \>= b00d24997a11c10d3e420614f0873b83ce358a34, \< 2888520bdcbe0599cfc77b2fad8dc6c95505a3cb; 655e607898f8cdfdb29fd2a6e618d11de99ec17a; 8316820e4082052666872398a31c91668d1f8461; 4306dbd7676e41032813620e49cd821a25559852; 47a17be21a625f6c67a8a486867ffcc7eefecc97; \>= 6.12.28, \< 6.12.120; \>= 5.15.182, \< 5.16; …
- Anyone running Linux 6.15

## 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.

## Affected and fixed versions

- Linux: \>= 98e634aa4b5d8a2766789785d4d1bcbefab0bc5c, \< 535bcf5895519650b4fee9d01ed42fda81f3dd0f; \>= b00d24997a11c10d3e420614f0873b83ce358a34, \< 7bd2c17d756a97c8fd590460382eac97bd74ccc9; \>= b00d24997a11c10d3e420614f0873b83ce358a34, \< 57729bca305c529a2a8dd08e1733002bb6daab9b; \>= b00d24997a11c10d3e420614f0873b83ce358a34, \< 2888520bdcbe0599cfc77b2fad8dc6c95505a3cb; 655e607898f8cdfdb29fd2a6e618d11de99ec17a; 8316820e4082052666872398a31c91668d1f8461; 4306dbd7676e41032813620e49cd821a25559852; 47a17be21a625f6c67a8a486867ffcc7eefecc97; \>= 6.12.28, \< 6.12.120; \>= 5.15.182, \< 5.16; … (cvelist)
- Linux: 6.15 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139538. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139538.md
Affected: Linux >= 98e634aa4b5d8a2766789785d4d1bcbefab0bc5c, < 535bcf5895519650b4fee9d01ed42fda81f3dd0f; >= b00d24997a11c10d3e420614f0873b83ce358a34, < 7bd2c17d756a97c8fd590460382eac97bd74ccc9; >= b00d24997a11c10d3e420614f0873b83ce358a34, < 57729bca305c529a2a8dd08e1733002bb6daab9b; >= b00d24997a11c10d3e42061…
Fixed in: Linux 535bcf5895519650b4fee9d01ed42fda81f3dd0f, Linux 7bd2c17d756a97c8fd590460382eac97bd74ccc9, Linux 57729bca305c529a2a8dd08e1733002bb6daab9b, Linux 2888520bdcbe0599cfc77b2fad8dc6c95505a3cb, Linux 6.12.120, Linux 5.16

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-139538 being exploited?

There is no confirmed exploitation: CVE-2026-139538 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139538?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139538?

Linux \>= 98e634aa4b5d8a2766789785d4d1bcbefab0bc5c, \< 535bcf5895519650b4fee9d01ed42fda81f3dd0f; \>= b00d24997a11c10d3e420614f0873b83ce358a34, \< 7bd2c17d756a97c8fd590460382eac97bd74ccc9; \>= b00d24997a11c10d3e420614f0873b83ce358a34, \< 57729bca305c529a2a8dd08e1733002bb6daab9b; \>= b00d24997a11c10d3e420614f0873b83ce358a34, \< 2888520bdcbe0599cfc77b2fad8dc6c95505a3cb; 655e607898f8cdfdb29fd2a6e618d11de99ec17a; 8316820e4082052666872398a31c91668d1f8461; 4306dbd7676e41032813620e49cd821a25559852; 47a17be21a625f6c67a8a486867ffcc7eefecc97; \>= 6.12.28, \< 6.12.120; \>= 5.15.182, \< 5.16; …; Linux 6.15.

### Is there a fix for CVE-2026-139538?

Yes. Fixed in Linux 535bcf5895519650b4fee9d01ed42fda81f3dd0f, Linux 7bd2c17d756a97c8fd590460382eac97bd74ccc9, Linux 57729bca305c529a2a8dd08e1733002bb6daab9b, Linux 2888520bdcbe0599cfc77b2fad8dc6c95505a3cb, Linux 6.12.120, Linux 5.16. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-139538?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/535bcf5895519650b4fee9d01ed42fda81f3dd0f>
- other: <https://git.kernel.org/stable/c/7bd2c17d756a97c8fd590460382eac97bd74ccc9>
- other: <https://git.kernel.org/stable/c/57729bca305c529a2a8dd08e1733002bb6daab9b>
- other: <https://git.kernel.org/stable/c/2888520bdcbe0599cfc77b2fad8dc6c95505a3cb>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139538>

HTML: <https://flawdb.com/CVE-2026-139538> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139538>
