Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-143198

net: ena: Keep the RX buffer mapped if skb allocation fails

Description

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 F_TRANSLATION write faults from the ENA device, followed by a burst of: WARNING: CPU: 48 PID: 1656834 at drivers/iommu/dma-iommu.c:1242 iommu_dma_unmap_phys+0xf4/0x108 Call trace: iommu_dma_unmap_phys+0xf4/0x108 (P) dma_unmap_phys+0x194/0x2a8 dma_unmap_page_attrs+0x1c/0x38 ena_io_poll+0x7bc/0x1790 [ena] __napi_poll+0x54/0x220 net_rx_action+0x250/0x520 ena_rx_skb() unmaps the RX buffer, or takes an extra page reference to reuse it, before napi_build_skb() allocates the skb. If the allocation fails, it returns NULL with rx_info->page still set. ena_clean_rx_irq() then puts the req_id back on the free list, and ena_alloc_rx_buffer() 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 rx_info, so that a failed allocation leaves the buffer mapped and unchanged for the refill.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 9e5269a915a8e3d6f4bae5641451737e9cca70c0 to < 38be80261cd5d277b8c4c59c9d5cda241dda13a9affected
  • 9e5269a915a8e3d6f4bae5641451737e9cca70c0 to < 8c7a0768a9465fe056e16ea36b76b7ef8b59ed84affected
  • 9e5269a915a8e3d6f4bae5641451737e9cca70c0 to < f5d148ebbd4f548760dde16d85b0634449f86abfaffected
  • 9e5269a915a8e3d6f4bae5641451737e9cca70c0 to < 2601df068c0d845ea22d1ca98863dc4ce94e0621affected
  • 9e5269a915a8e3d6f4bae5641451737e9cca70c0 to < 3e8e22a1007a6337ba2400b3ea87077947005c20affected

Linux Linux

Default version status: affected

  • 5.14affected
  • 0 to < 5.14unaffected
  • 5.15.227 to ≤ 5.15.*unaffected
  • 6.12.120 to ≤ 6.12.*unaffected
  • 6.18.66 to ≤ 6.18.*unaffected
  • 7.3.7 to ≤ 7.3.*unaffected
  • 7.4-rc3 to ≤ *unaffected

References