net: altera-tse: fix skb leak on DMA mapping error in tse_start_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 5.10.253, 5.15.203, 6.1.169, 6.6.135, 6.12.82, and 2 more
- 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: altera-tse: fix skb leak on DMA mapping error in tse_start_xmit() When dma_map_single() fails in tse_start_xmit(), the function returns NETDEV_TX_OK without freeing the skb. Since NETDEV_TX_OK tells the stack the packet was consumed, the skb is never freed, leaking memory on every DMA mapping failure. Add dev_kfree_skb_any() before returning to properly free the skb.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From bbd2190ce96d8fce031f0526c1f970b68adc9d1a · fixed in ae2cd46f57f422b51aedd406ff5d75cbff401d5d; From bbd2190ce96d8fce031f0526c1f970b68adc9d1a · fixed in cb1d318702fdf643061350d164250198df4116f2; From bbd2190ce96d8fce031f0526c1f970b68adc9d1a · fixed in d5ec406f0543bd6cdfd563b08015fdec8c4d5712; From bbd2190ce96d8fce031f0526c1f970b68adc9d1a · fixed in 2eb9d67704ca8f1101f7435b85f113ede471f9f2; From bbd2190ce96d8fce031f0526c1f970b68adc9d1a · fixed in 9f3ec44aeb58501d11834048d5d0dbaeacb6d4e7; From bbd2190ce96d8fce031f0526c1f970b68adc9d1a · fixed in 60f462cd2716d86bd2174f9d5e035c9278f30480; From bbd2190ce96d8fce031f0526c1f970b68adc9d1a · fixed in 3aca300e88afe56afb000cdc4c65383014fb17f9; From bbd2190ce96d8fce031f0526c1f970b68adc9d1a · fixed in 6dede3967619b5944003227a5d09fdc21ed57d10
- Linux Linux
3.15
- KernelLinux
From 3.15.0 · fixed in 5.10.253; From 5.11.0 · fixed in 5.15.203; From 5.16.0 · fixed in 6.1.169; From 6.2.0 · fixed in 6.6.135; From 6.7.0 · fixed in 6.12.82; From 6.13.0 · fixed in 6.18.23; From 6.19.0 · fixed in 6.19.13
References 8
git.kernel.org
- stable/c/ae2cd46f57f422b51aedd406ff5d75cbff401d5d
- stable/c/cb1d318702fdf643061350d164250198df4116f2
- stable/c/d5ec406f0543bd6cdfd563b08015fdec8c4d5712
- stable/c/2eb9d67704ca8f1101f7435b85f113ede471f9f2
- stable/c/9f3ec44aeb58501d11834048d5d0dbaeacb6d4e7
- stable/c/60f462cd2716d86bd2174f9d5e035c9278f30480
- stable/c/3aca300e88afe56afb000cdc4c65383014fb17f9
- stable/c/6dede3967619b5944003227a5d09fdc21ed57d10