# CVE-2026-98131: net: stmmac: fix dma mapping leak in stmmac_tso_xmit()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-09-25T10:36:11.043Z
- Modified: 2026-10-21T13:21:23.907Z
- Weaknesses: CWE-401
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from f748be531d7012c456b97f66091d86b3675c5fef before c5449b635362cb678d29d8f6ab54e65734d891ce; from f748be531d7012c456b97f66091d86b3675c5fef before 8a3257f142ae513d0c96d42f97386d4941bcec29; from f748be531d7012c456b97f66091d86b3675c5fef before e85adaac3dc6317cae902372c6849189ec62cf7d; from f748be531d7012c456b97f66091d86b3675c5fef before a5d946466a95621fa2769720d59ea336003aa1a5; 4.7 (not affected: before 4.7; from 6.12.114 up to 6.12.*; from 6.18.57 up to 6.18.*; from 7.2.7 up to 7.2.*; from 7.3 up to *)
- linux linux_kernel: from 4.7 before 7.2.7; 7.3

## References

- <https://git.kernel.org/stable/c/c5449b635362cb678d29d8f6ab54e65734d891ce>
- <https://git.kernel.org/stable/c/8a3257f142ae513d0c96d42f97386d4941bcec29>
- <https://git.kernel.org/stable/c/e85adaac3dc6317cae902372c6849189ec62cf7d> (patch)
- <https://git.kernel.org/stable/c/a5d946466a95621fa2769720d59ea336003aa1a5> (patch)

## Sources

- CVE List: [CVE-2026-98131](https://www.cve.org/CVERecord?id=CVE-2026-98131), CVE Terms of Use, modified 2026-10-21
- NVD: [CVE-2026-98131](https://nvd.nist.gov/vuln/detail/CVE-2026-98131), Public domain, modified 2026-10-21

---

Page: https://cve.day/CVE-2026-98131 · Whole record: https://cve.day/CVE-2026-98131.json · Rebuilt by cve.day 2026-11-25T22:59:41.073Z
