CVE-2026-139546: iommu/arm-smmu-v3: Ensure L2 tables are visible before L1 ptrs
In the Linux kernel, the following vulnerability has been resolved:
iommu/arm-smmu-v3: Ensure L2 tables are visible before L1 ptrs
Commit 6fabce53f6b9 ("iommu/arm-smmu-v3: Add a missing dmawmb() for hitless STE update") adds a dmawmb() to armsmmuwriteentry() to make sure stream tables and context descriptors are observed first.
However, STE L1 table descriptors are configured directly via WRITEONCE(), where before that they were zeroed with memset() inside dmadirectalloc() then written to abort in via memset() also in armsmmuinitinitialstes() without a barrier in both cases which means that the SMMUv3 can observe the allocated table before the written descriptors causing it to fetch random data.
Similarly in armsmmuwritecdl1desc() where the L1 CD is written after dmaalloccoherent() with no barriers.
Add dmawmb() in both cases.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Add dma_wmb() barriers in both arm_smmu_init_initial_stes() and arm_smmu_write_cd_l1_desc() so the SMMUv3 observes the initialized table entries and context descriptors before fetching them.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel's Arm SMMU v3 IOMMU driver are exposed when they create or update stream-table or context-descriptor L1/L2 mappings. The issue concerns visibility of DMA-coherent table contents to the SMMUv3 hardware.
What could cause the failure?
The SMMUv3 may observe an L1 table descriptor before the corresponding newly allocated L2 table or context-descriptor table contents are visible. It can then fetch random data rather than the intended descriptors.
How is the issue fixed?
The fix adds dma_wmb() barriers before publishing the relevant L1 pointers, ensuring the table contents are visible to the SMMUv3 before hardware can follow those pointers.