net: altera-tse: fix skb leak on DMA mapping error in tse_start_xmit()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ bbd2190ce96d8fce031f0526c1f970b68adc9d1a · < 60f462cd2716d86bd2174f9d5e035c9278f30480| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
In the Linux kernel's altera-tse network driver, a DMA mapping failure during packet transmission leaves a packet buffer unfreed, leaking memory on each failure. The input does not specify how an attacker could trigger the failure or whether authentication or user interaction is required.
Engineers running Linux kernels with the altera-tse network driver should check whether their kernel includes the fix; affected versions are not specified.