net: stmmac: fix dma mapping leak in stmmac_tso_xmit()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.12.114, 6.18.57, 7.2.7
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From f748be531d7012c456b97f66091d86b3675c5fef · fixed in c5449b635362cb678d29d8f6ab54e65734d891ce; From f748be531d7012c456b97f66091d86b3675c5fef · fixed in 8a3257f142ae513d0c96d42f97386d4941bcec29; From f748be531d7012c456b97f66091d86b3675c5fef · fixed in e85adaac3dc6317cae902372c6849189ec62cf7d; From f748be531d7012c456b97f66091d86b3675c5fef · fixed in a5d946466a95621fa2769720d59ea336003aa1a5
- Linux Linux
4.7
- KernelLinux
From 4.7.0 · fixed in 6.12.114; From 6.13.0 · fixed in 6.18.57; From 6.19.0 · fixed in 7.2.7