CVE-2026-138944: media: venus: Fix iova allocation from restrict region
In the Linux kernel, the following vulnerability has been resolved:
media: venus: Fix iova allocation from restrict region
The VPU issues DMA through several SMMU streams, and the hardware does not give every stream the same addressable range. The non-pixel stream cannot address the low 600MB of IOVA space, while the pixel stream can address the full range: +-----------------------------------------------------------+ | non-pixel stream addressable range (600 MB - 3.5 GB) | | 0x25800000 - 0xe0000000 | +-----------------------------------------------------------+ | pixel stream addressable range (0 - 3.5 GB) | | 0x00000000 - 0xe0000000 | +-----------------------------------------------------------+
A single "iommus" property on the video-codec node puts every stream in one IOMMU domain sharing one IOVA space, so nothing stops a non-pixel buffer from landing below 600MB. Once an allocation lands below that boundary the hardware faults, which shows up as unhandled SMMU page faults and spontaneous reboots. https://gitlab.freedesktop.org/drm/msm/-/workitems/100
Fix this by reserving the 0-600MB range, below the boundary the non-pixel stream cannot address, using dmaiovatryalloc() so the IOMMU-DMA core never hands that range out to a real DMA mapping. This reserves only IOVA space, it does not allocate any physical memory.
Since sub-nodes for non-pixel, pixel, and secure streams do not exist yet and only a single device is available, the restriction is applied to both non-pixel and pixel stream IDs.
[bod: took iovastate description from iris and applied to venus in core.h]
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Compensating control
Reserve IOVA space from 0x00000000 to 0x25800000 (600 MB) for the non-pixel stream, and use dma_iova_try_alloc() to allocate its IOVAs only from the addressable range 0x25800000–0xe0000000.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel Venus video codec VPU with multiple SMMU streams sharing a single IOMMU domain are exposed when non-pixel DMA buffers can be allocated in the low 0–600 MB IOVA range. The non-pixel stream cannot address that range, unlike the pixel stream.
What are the observable effects if the issue occurs?
A non-pixel buffer allocated below the 600 MB IOVA boundary causes a hardware fault. This can appear as unhandled SMMU page faults and spontaneous system reboots.
What does the fix change?
The fix reserves the low 0–600 MB IOVA region so allocations for the shared IOMMU domain do not place non-pixel buffers in an address range that stream cannot access. It uses dma_iova_try_alloc() to enforce this restriction.