e100: Fix possible use after free in e100_xmit_prepare
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:
e100: Fix possible use after free in e100_xmit_prepare
In e100_xmit_prepare(), if we can't map the skb, then return -ENOMEM, so e100_xmit_frame() will return NETDEV_TX_BUSY and the upper layer will resend the skb. But the skb is already freed, which will cause UAF bug when the upper layer resends the skb.
Remove the harmful free.
From the CVE record · Linux
The Linux kernel's e100 driver can free a network packet buffer when mapping it fails, then tell the upper layer to resend that same buffer, causing a use-after-free. The input does not specify how an attacker could trigger the failure or whether authentication, local access, or user interaction is required.
Engineers running Linux kernels with the e100 driver should check whether their kernel includes the fix; affected versions are not specified.