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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
06be6b149f7e406bcf16098567f5a6c9f042bced to < 905ef207d5ed99ca64adfe39fba9ac46e434327aaffected06be6b149f7e406bcf16098567f5a6c9f042bced to < 5ef8ca1c164786da24169af155c1ca1ff1353cf8affected06be6b149f7e406bcf16098567f5a6c9f042bced to < 9a779d1f480e83720b5384adf165604e7ee226bdaffected06be6b149f7e406bcf16098567f5a6c9f042bced to < f77b51bcee7be2bb686b5f7a2d4a1921e4bdb9f4affected06be6b149f7e406bcf16098567f5a6c9f042bced to < 3b4d27acafaeab478fd24f79ad6e593a892828b9affected06be6b149f7e406bcf16098567f5a6c9f042bced to < 06e769dddcbeb3baf2ce346273b53dd61fdbecf4affected06be6b149f7e406bcf16098567f5a6c9f042bced to < 50f1b690b4868923fbd242298def2fb88662f108affected06be6b149f7e406bcf16098567f5a6c9f042bced to < d5ad6ab61cbd89afdb60881f6274f74328af3ee9affected
Linux Linux
Default version status: affected
3.13affected0 to < 3.13unaffected5.10.258 to ≤ 5.10.*unaffected5.15.209 to ≤ 5.15.*unaffected6.1.175 to ≤ 6.1.*unaffected6.6.136 to ≤ 6.6.*unaffected6.12.84 to ≤ 6.12.*unaffected6.18.20 to ≤ 6.18.*unaffected6.19.10 to ≤ 6.19.*unaffected7.0 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/905ef207d5ed99ca64adfe39fba9ac46e434327a ↗
- https://git.kernel.org/stable/c/5ef8ca1c164786da24169af155c1ca1ff1353cf8 ↗
- https://git.kernel.org/stable/c/9a779d1f480e83720b5384adf165604e7ee226bd ↗
- https://git.kernel.org/stable/c/f77b51bcee7be2bb686b5f7a2d4a1921e4bdb9f4 ↗
- https://git.kernel.org/stable/c/3b4d27acafaeab478fd24f79ad6e593a892828b9 ↗
- https://git.kernel.org/stable/c/06e769dddcbeb3baf2ce346273b53dd61fdbecf4 ↗
- https://git.kernel.org/stable/c/50f1b690b4868923fbd242298def2fb88662f108 ↗
- https://git.kernel.org/stable/c/d5ad6ab61cbd89afdb60881f6274f74328af3ee9 ↗
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html ↗