CVE-2026-143198: net: ena: Keep the RX buffer mapped if skb allocation fails
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 reuse path, allocate the skb before touching rx_info; if allocation fails, leave the RX buffer mapped and unchanged for refill.
Event History
Frequently Asked Questions
Which systems are most likely to encounter this issue?
The issue was observed on arm64 EC2 hosts using the ENA device, 64K pages, and SMMUv3 in strict mode, on a 6.18-based kernel. It is triggered in the reported case immediately after a global out-of-memory condition.
What must happen for the invalid DMA access to occur?
An RX buffer must be processed when napi_build_skb() fails to allocate an skb. The driver can then return the buffer request to its free list while retaining state that makes the buffer appear DMA-mapped, causing its old DMA address to be posted again.
How can administrators identify an affected system?
Look for SMMU F_TRANSLATION write faults attributed to the ENA device after an OOM event. The reported symptoms also include warnings from iommu_dma_unmap_phys in a call path through dma_unmap_page_attrs, ena_io_poll, and ena_clean_rx_irq.