CVE-2026-139538

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

Published Nov 30, 2026 CVSS 3.1 · 4.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is a logic error in the Linux kernel’s ARM SMMUv3 IOMMU subsystem. When a stream ID duplicates one already owned by a master, arm_smmu_insert_master() skips inserting the stream and leaves the corresponding tree node uninitialized. Subsequent cleanup routines, including arm_smmu_remove_master() and the error‑rollback loop, unconditionally call rb_erase() on every stream node index. If rb_erase() receives a never‑inserted node, it treats the node as the root and clears the tree root pointer, silently emptying the entire SID tree. This corruption disrupts DMA lookups for every master on the affected SMMU, effectively denying legitimate DMA traffic and constituting a denial‑of‑service to the system.

Affected Systems

The flaw impacts all Linux kernel builds that include the unpatched ARM SMMUv3 implementation. The referenced commit introduces the fix, so any kernel compiled from sources prior to that commit may be vulnerable. The advisory does not list a specific distribution or kernel‑version range, so the statement that every pre‑patch kernel is affected is an inference drawn from the absence of explicit version boundaries.

Risk and Exploitability

EPSS for this CVE is reported as not available, and the CVE is not listed in the CISA KEV catalog. No publicly disclosed exploit or proof‑of‑concept has been provided. The potential for denial of service exists because the corrupted IOMMU mapping can disrupt DMA operations for all masters; however, the realistic attack vector appears to require privileged or kernel‑level access to trigger the stream insertion or removal logic. Thus, while the impact is severe, the likelihood of exploitation at this time is considered uncertain based on the available data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that contains commit 2888520bdcbe0599cfc77b2fad8dc6c95505a3cb or later commits that implement the fix.
  • Update the Linux kernel to the latest release from your distribution, ensuring the SMMUv3 code incorporates the patch.
  • Reboot the system after applying the kernel update so that the patched code becomes active.

Generated by OpenCVE AI on December 1, 2026 at 13:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-665
CWE-703
Type Values Removed Values Added
Weaknesses CWE-908
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-665
CWE-703
Type Values Removed Values Added
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.
Title iommu/arm-smmu-v3: Don't rb_erase() a never-inserted stream node
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-908

    Use of Uninitialized Resource

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:35 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:35 PM