Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139099

published

net: bgmac: fix TX DMA unmapping and slot cleanup

Published
30 Nov 2026, 13:31:34 UTC
Updated
30 Nov 2026, 13:31:34 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux9cde94506eacfcda570b6c304b8deae1a7191ee2 to < 88979640f4155bf94ffdb71e202e6f2bbb77f5c6 · 9cde94506eacfcda570b6c304b8deae1a7191ee2 to < 0e5a0f01e9b6cc1866305972eec902dd5f82a0ad · 9cde94506eacfcda570b6c304b8deae1a7191ee2 to < 6538279222f65f05698fd7edf39b440ad2b5de35 · 9cde94506eacfcda570b6c304b8deae1a7191ee2 to < e86b4724bb4d0e133cab811635d937cafc9ae5b8 · 9cde94506eacfcda570b6c304b8deae1a7191ee2 to < 74c41171e6dbfe33487f2314b717905a617fafef · 9cde94506eacfcda570b6c304b8deae1a7191ee2 to < 1d25a2c0f491c410efc25d082a47b5e20eae91d0 · 9cde94506eacfcda570b6c304b8deae1a7191ee2 to < 4489cb65d52e488e60b88022b25122e887e24b6f · 9cde94506eacfcda570b6c304b8deae1a7191ee2 to < 4f45e97b3aac2282f2b436d97338c9c2c484d093 · Other versions: unaffected Affected Not stated Linux
Linux — Linux4.1 (affected) · 0 to < 4.1 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 9cde94506eacfcda570b6c304b8deae1a7191ee2 to < 88979640f4155bf94ffdb71e202e6f2bbb77f5c6 (affected · git)9cde94506eacfcda570b6c304b8deae1a7191ee2 to < 0e5a0f01e9b6cc1866305972eec902dd5f82a0ad (affected · git)9cde94506eacfcda570b6c304b8deae1a7191ee2 to < 6538279222f65f05698fd7edf39b440ad2b5de35 (affected · git)9cde94506eacfcda570b6c304b8deae1a7191ee2 to < e86b4724bb4d0e133cab811635d937cafc9ae5b8 (affected · git)9cde94506eacfcda570b6c304b8deae1a7191ee2 to < 74c41171e6dbfe33487f2314b717905a617fafef (affected · git)9cde94506eacfcda570b6c304b8deae1a7191ee2 to < 1d25a2c0f491c410efc25d082a47b5e20eae91d0 (affected · git)9cde94506eacfcda570b6c304b8deae1a7191ee2 to < 4489cb65d52e488e60b88022b25122e887e24b6f (affected · git)9cde94506eacfcda570b6c304b8deae1a7191ee2 to < 4f45e97b3aac2282f2b436d97338c9c2c484d093 (affected · git)Default: unaffected Linux · cna
Linux Linux 4.1 (affected)0 to < 4.1 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

net: bgmac: fix TX DMA unmapping and slot cleanup

Provenance

Schema
5.2
Searchable
yes
Content hash
3663616d0738ad6d75e9b6f58a5cca547a354ecd3a7cf8d2b8dfc4e7002ebb7e
Ingested
30 Nov 2026, 13:36:40 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected