CVE-2026-139245: net: bcmasp: unmap previous DMA mappings on TX map failure
In the Linux kernel, the following vulnerability has been resolved:
net: bcmasp: unmap previous DMA mappings on TX map failure
When mapping an skb with fragments for transmission in bcmaspxmit(), if mapping fails on fragment i > 0, the error handler calls bcmaspcleantxcb() for previous iterations j < i. However, bcmaspcleantxcb() only zeroes the control block fields without unmapping the DMA buffers, leaking the DMA mappings allocated for the head and earlier fragments.
Call dmaunmapsingle() before calling bcmaspcleantxcb() in the error cleanup loop.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In bcmasp_xmit()'s error cleanup loop, call dma_unmap_single() for previously mapped DMA buffers before calling bcmasp_clean_txcb().