7.8high
wifi: mac80211: always free skb on ieee80211_tx_prepare_skb() failure
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.16% (higher than 5% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: always free skb on ieee80211_tx_prepare_skb() failure ieee80211_tx_prepare_skb() has three error paths, but only two of them free the skb. The first error path (ieee80211_tx_prepare() returning TX_DROP) does not free it, while invoke_tx_handlers() failure and the fragmentation check both do. Add kfree_skb() to the first error path so all three are consistent, and remove the now-redundant frees in callers (ath9k, mt76, mac80211_hwsim) to avoid double-free. Document the skb ownership guarantee in the function's kdoc.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 06be6b149f7e406bcf16098567f5a6c9f042bced before 905ef207d5ed99ca64adfe39fba9ac46e434327a, from 06be6b149f7e406bcf16098567f5a6c9f042bced before 5ef8ca1c164786da24169af155c1ca1ff1353cf8, from 06be6b149f7e406bcf16098567f5a6c9f042bced before 9a779d1f480e83720b5384adf165604e7ee226bd, from 06be6b149f7e406bcf16098567f5a6c9f042bced before f77b51bcee7be2bb686b5f7a2d4a1921e4bdb9f4, from 06be6b149f7e406bcf16098567f5a6c9f042bced before 3b4d27acafaeab478fd24f79ad6e593a892828b9, from 06be6b149f7e406bcf16098567f5a6c9f042bced before 06e769dddcbeb3baf2ce346273b53dd61fdbecf4, from 06be6b149f7e406bcf16098567f5a6c9f042bced before 50f1b690b4868923fbd242298def2fb88662f108, from 06be6b149f7e406bcf16098567f5a6c9f042bced before d5ad6ab61cbd89afdb60881f6274f74328af3ee9 and 1 more Not affected: before 3.13, from 5.10.258 up to 5.10.*, from 5.15.209 up to 5.15.*, from 6.1.175 up to 6.1.*, from 6.6.136 up to 6.6.*, from 6.12.84 up to 6.12.* | CVE List |
| linux linux_kernel | from 3.13.1 before 6.18.20, from 6.19 before 6.19.10, 3.13, 7.0 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: always free skb on ieee80211_tx_prepare_skb() failure ieee80211_tx_prepare_skb() has three error paths, but only two of them free the skb. The first error path (ieee80211_tx_prepare() returning TX_DROP) does not free it, while invoke_tx_handlers() failure and the fragmentation check both do. Add kfree_skb() to the first error path so all three are consistent, and remove the now-redundant frees in callers (ath9k, mt76, mac80211_hwsim) to avoid double-free. Document the skb ownership guarantee in the function's kdoc.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: wifi: mac80211: liberar siempre skb en caso de fallo de ieee80211_tx_prepare_skb() ieee80211_tx_prepare_skb() tiene tres rutas de error, pero solo dos de ellas liberan el skb. La primera ruta de error (ieee80211_tx_prepare() devolviendo TX_DROP) no lo libera, mientras que el fallo de invoke_tx_handlers() y la comprobación de fragmentación sí lo hacen. Añadir kfree_skb() a la primera ruta de error para que las tres sean consistentes, y eliminar las liberaciones ahora redundantes en las funciones que llaman (ath9k, mt76, mac80211_hwsim) para evitar la doble liberación. Documentar la garantía de propiedad del skb en el kdoc de la función.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-23444 changed 2026-10-19 | CVE Terms of Use |
| NVD | CVE-2026-23444 changed 2026-10-19 | Public domain |