CVE-2026-139099

Not scored yetLast modified Nov 30, 2026

Description

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-13915.3The Vzaar Media Management plugin for WordPress is vulnerable to Reflected Cross-Site Scripting in all versions up to, and including, 1.2 duCVE-2026-139106.5Insufficient policy enforcement in WebXR in Google Chrome on Android prior to 150.0.7871.47 allowed a remote attacker to leak cross-origin dCVE-2026-139100In the Linux kernel, the following vulnerability has been resolved: gro: do not GRO GSO packets with inconsistent payload tcp_gro_receive(CVE-2026-139101In the Linux kernel, the following vulnerability has been resolved: eth: bnxt: hand XDP frags over to the copybreak skb With a multi-buffeCVE-2026-139102In the Linux kernel, the following vulnerability has been resolved: eth: bnxt: free XDP frags when xdp_do_redirect() fails When xdp_do_redCVE-2026-1391038.1In the Linux kernel, the following vulnerability has been resolved: eth: bnxt: don't leak buffers when XDP agg buffer allocation fails If CVE-2026-139104In the Linux kernel, the following vulnerability has been resolved: eth: bnxt: recycle agg buffers when Rx head buffer allocation fails bnCVE-2026-139105In the Linux kernel, the following vulnerability has been resolved: netdev-genl: ignore NETDEV_UNREGISTER rebroadcasts netdev_wait_allrefsCVE-2026-139106In the Linux kernel, the following vulnerability has been resolved: apparmor: check connect permission for SCTP SCTP can start an associatCVE-2026-139107In the Linux kernel, the following vulnerability has been resolved: apparmor: convert duplicated dfa transitions to match_char() For histoCVE-2026-1391087.8In the Linux kernel, the following vulnerability has been resolved: apparmor: fix table_size() integer overflow on 32 bit table_size() cheCVE-2026-139109In the Linux kernel, the following vulnerability has been resolved: apparmor: fix a leak on a rejected string table entry unpack_strs_tabl
CVE-2026-139099: Unscored | Vulnix