CVE-2026-98131 PUBLISHED

net: stmmac: fix dma mapping leak in stmmac_tso_xmit()

Assigner: Linux
Reserved: 25.09.2026 Published: 25.09.2026 Updated: 25.09.2026

In the Linux kernel, the following vulnerability has been resolved:

net: stmmac: fix dma mapping leak in stmmac_tso_xmit()

In stmmac_tso_xmit(), if the DMA mapping of an skb fragment fails, the frame is dropped but the DMA mappings already created for the linear part and for the fragments mapped before the failure are never unmapped, leaking DMA mappings.

Fix the leak by walking back over the descriptors used by the frame and releasing each of them with stmmac_free_tx_buffer(). Moreover, release the descriptors with stmmac_release_tx_desc() unmapping the DMA buffers.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from f748be531d7012c456b97f66091d86b3675c5fef to e85adaac3dc6317cae902372c6849189ec62cf7d (excl.)
  • affected from f748be531d7012c456b97f66091d86b3675c5fef to a5d946466a95621fa2769720d59ea336003aa1a5 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 4.7 is affected
  • unaffected from 0 to 4.7 (excl.)
  • unaffected from 7.2.7 to 7.2.* (incl.)
  • unaffected from 7.3-rc2 to * (incl.)

References