rtase: fix double free of multi-frag skb on DMA map failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
rtase: fix double free of multi-frag skb on DMA map failure
In rtase_start_xmit(), when the head buffer DMA mapping fails after rtase_xmit_frags() has mapped all fragments, the error path clears the fragment descriptors with rtase_tx_clear_range(), which frees the skb through the last-frag slot and accounts tx_dropped. Control then falls through to the common error label, which frees the same skb a second time and counts it again.
Return right after clearing the fragments when the skb owns frags; the no-frag case still drops through and frees the head skb once.
From the CVE record · Linux
The Linux kernel's rtase transmit path can free a multi-fragment network buffer twice if head-buffer DMA mapping fails after all fragments have been mapped. The input does not specify whether an attacker can trigger this remotely, whether authentication or user interaction is required, or what impact the double free can have.
Engineers running Linux kernels with the rtase driver should check their deployments; affected versions are not specified.