7.5high
net: usb: ax88179_178a: fix skb leak in ax88179_tx_fixup()
- Severity
- 7.5high CVSS:3.1 by Linux
- Exploit likelihood
- 0.48% (higher than 42% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 16b1c4e01c89ba07367461e0bc4cb84993c2d027 before 83a765cbd7b4d11b0b9fa1bb9d941ae911a2159b, from 16b1c4e01c89ba07367461e0bc4cb84993c2d027 before 1c63303659a2264bd55d9813df74cb4caeed5922, from 16b1c4e01c89ba07367461e0bc4cb84993c2d027 before 2be5091fa693b9119ad25a8bb8c149d236a23ade, from 16b1c4e01c89ba07367461e0bc4cb84993c2d027 before 58733b1dd46bb231d9d279c132a20ee46da1b664, from 16b1c4e01c89ba07367461e0bc4cb84993c2d027 before 4039cd807a5a46dc5f7618fffae926b8ad8455eb, from 16b1c4e01c89ba07367461e0bc4cb84993c2d027 before 1f428e30947395d9b9aacee03e25a4e6cfcad7a4, 5.17 Not affected: before 5.17, from 6.1.183 up to 6.1.*, from 6.6.152 up to 6.6.*, from 6.12.104 up to 6.12.*, from 6.18.45 up to 6.18.*, from 7.1.9 up to 7.1.* | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net: usb: ax88179_178a: corrige fuga de skb en ax88179_tx_fixup() Cuando la interfaz tiene NETIF_F_SG habilitado y skb_linearize() falla en ax88179_tx_fixup(), la función devuelve NULL sin liberar el skb. usbnet_start_xmit() trata un retorno NULL de tx_fixup() como un descarte (info -> flags no establece FLAG_MULTI_PACKET para este controlador), saltando a la etiqueta 'drop' donde hace 'if (skb) dev_kfree_skb_any(skb)'. Debido a que tx_fixup() devolvió NULL, la variable local skb en usbnet_start_xmit() es NULL, por lo que el skb original nunca se libera - una fuga de memoria en cada trama TX cuya linealización falla (es decir, bajo presión de memoria). Libere el skb antes de retornar, coincidiendo con el manejo de errores ya utilizado para la ruta de fallo de pskb_expand_head() en la misma función.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-74678 changed 2026-10-16 | CVE Terms of Use |
| NVD | CVE-2026-74678 changed 2026-10-16 | Public domain |