net: cdc_eem: fix tx fixup skb leak
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9f722c0978b04acba209f8ca1896ad05814bc3a3 · < 05b2b9f7d24b5663d9b47427fe1555bdafd3ea02| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: cdc_eem: fix tx fixup skb leak
when usbnet transmit a skb, eem fixup it in eem_tx_fixup(), if skb_copy_expand() failed, it return NULL, usbnet_start_xmit() will have no chance to free original skb.
fix it by free orginal skb in eem_tx_fixup() first, then check skb clone status, if failed, return NULL to usbnet.
From the CVE record · Linux
In the Linux kernel's cdc_eem transmit fixup, a failed skb_copy_expand() can leave the original packet buffer unfreed. The input does not describe how an attacker could trigger the failure or specify network access, authentication, or user-interaction requirements.
Engineers running the Linux kernel should check whether their version is affected; affected versions are not specified.