AZL-118316: CVE-2026-143198 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
net: ena: Keep the RX buffer mapped if skb allocation fails
We are seeing the following issue in production on arm64 EC2 hosts (m8g.metal-24xl, 64K pages, SMMUv3 in strict mode, 6.18 based kernel). Right after a global OOM, the SMMU reports FTRANSLATION write faults from the ENA device, followed by a burst of:
WARNING: CPU: 48 PID: 1656834 at drivers/iommu/dma-iommu.c:1242 iommudmaunmapphys+0xf4/0x108 Call trace: iommudmaunmapphys+0xf4/0x108 (P) dmaunmapphys+0x194/0x2a8 dmaunmappageattrs+0x1c/0x38 enaiopoll+0x7bc/0x1790 [ena] napipoll+0x54/0x220 netrxaction+0x250/0x520
enarxskb() unmaps the RX buffer, or takes an extra page reference to reuse it, before napibuildskb() allocates the skb. If the allocation fails, it returns NULL with rxinfo->page still set. enacleanrxirq() then puts the reqid back on the free list, and enaallocrxbuffer() treats the buffer as still mapped and posts its old DMA address to the device again.
With the IOMMU in strict mode, the device then writes to an unmapped IOVA, and the next completion of that buffer unmaps it a second time. If the IOVA was handed to a new mapping in between, the device can write into that buffer instead. On the reuse path, the extra page reference is never dropped.
Allocate the skb before touching rxinfo, so that a failed allocation leaves the buffer mapped and unchanged for the refill.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the ENA RX path, if skb allocation fails, keep the RX buffer mapped and unchanged for refill; do not unmap it or drop its extra page reference.
Event History
Frequently Asked Questions
Which systems are most likely to encounter this issue?
The reported production scenario is on arm64 EC2 hosts using the ENA network device, 64K pages, and an SMMUv3 IOMMU in strict mode. The failure was observed after a global out-of-memory condition.
What conditions trigger the faulty device DMA mapping?
An RX buffer must be processed when napi_build_skb() cannot allocate an skb. The driver can then repost the buffer's old DMA address even though it has been unmapped, allowing the ENA device to write to an unmapped IOVA.
How can administrators recognize that this has occurred?
Reported indicators include SMMU F_TRANSLATION write faults from the ENA device followed by iommu_dma_unmap_phys warnings in the kernel log. The call trace includes ena_io_poll, dma_unmap_page_attrs, and ena_clean_rx_irq activity.