net: usb: ax88179_178a: fix skb leak in ax88179_tx_fixup()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 16b1c4e01c89ba07367461e0bc4cb84993c2d027 · < 1f428e30947395d9b9aacee03e25a4e6cfcad7a4| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: usb: ax88179_178a: fix skb leak in ax88179_tx_fixup()
When the interface has NETIF_F_SG enabled and skb_linearize() fails in ax88179_tx_fixup(), the function returns NULL without freeing the skb.
usbnet_start_xmit() treats a NULL return from tx_fixup() as a drop (info->flags does not set FLAG_MULTI_PACKET for this driver), jumping to the "drop" label where it does `if (skb) dev_kfree_skb_any(skb)`. Because tx_fixup() returned NULL, the local skb variable in usbnet_start_xmit() is NULL, so the original skb is never freed — a memory leak on every TX frame whose linearization fails (i.e. under memory pressure).
Free the skb before returning, matching the error handling already used for the pskb_expand_head() failure path in the same function.
From the CVE record · Linux
The Linux kernel’s ax88179_178a USB network driver leaks a transmit packet buffer if packet linearization fails while NETIF_F_SG is enabled. Each affected transmit frame leaks memory under memory pressure. The input does not establish an attacker path, authentication requirement, or user-interaction requirement.
Engineers running Linux systems that use the ax88179_178a USB network driver should check their kernel versions; affected versions are not specified.