PT-2026-163140

CVE-2026-139099

·

Published

2026-11-30

·

Updated

2026-11-30

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

In the Linux kernel, the following vulnerability has been resolved:
net: bgmac: fix TX DMA unmapping and slot cleanup
When mapping a fragment fails, bgmac dma tx add() unwinds with the wrong slots. It passes the failed fragment's slot->dma addr, which holds the mapping error, to dma unmap single() for the head. The fragment loop indexes from ring->end instead of ring->end + 1, so it unmaps the head a second time as a page and leaves the last mapped fragment mapped. None of the affected slots get their dma addr cleared either, which includes the head slot when mapping the head fails.
bgmac dma tx ring free() unmaps every slot with a non-zero dma addr, so tearing down the ring unmaps these addresses again. It also frees the skbs of pending TX slots but leaves slot->skb and slot->dma addr set. The slots survive a down/up cycle, and bgmac dma tx add() only sets slot->skb on the last slot of a packet. If a slot with a stale pointer is later used for the head or a fragment of a scatter/gather packet, bgmac dma tx free() frees the old skb a second time when that slot completes.
bgmac dma tx ring free() also picks dma unmap single() or dma unmap page() by looking at slot->skb, which is set on the last slot of a packet, while the head was mapped with dma map single() and the fragments with skb frag dma map().
In the error path, unmap the head and each mapped fragment from their own slots, and clear dma addr on every slot the failed packet touched. In bgmac dma tx ring free(), choose the unmap function by the SOF flag of the descriptor like bgmac dma tx free() does, unmap every slot before freeing any skb, since a packet can wrap around the end of the ring with its skb on the last slot, and clear both fields.
This was found through code inspection by an LLM while hitting other bugs on an Asus RT-N16. It did not hit these ones specifically.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾