AZL-116983: CVE-2026-139245 affecting package kernel 6.6.161.1-1
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 the bcmasp_xmit() error cleanup loop, call dma_unmap_single() for each previously mapped buffer before calling bcmasp_clean_txcb().
Event History
Frequently Asked Questions
What conditions are required to trigger the DMA mapping leak?
Transmission through the bcmasp driver must involve an skb with fragments, and DMA mapping must fail after the head or at least one earlier fragment has already been mapped. The failure must occur on a fragment with index greater than zero.
What is leaked when the error path is taken?
DMA mappings for the packet head and any fragments mapped before the failed fragment are not unmapped. The existing cleanup routine clears their control-block fields without releasing those DMA mappings.
How can I determine whether my system is exposed to this condition?
Check whether the system uses the Linux kernel bcmasp network driver and whether it can transmit fragmented skbs. The issue is relevant specifically when DMA mapping failures occur during that driver's transmit processing.