CVE-2026-23444: wifi: mac80211: always free skb on ieee80211_tx_prepare_skb() failure
From: Greg Kroah-Hartman <[email protected]>
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.
The Linux kernel CVE team has assigned CVE-2026-23444 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.13 with commit 06be6b149f7e406bcf16098567f5a6c9f042bced and fixed in 6.18.20 with commit 06e769dddcbeb3baf2ce346273b53dd61fdbecf4 Issue introduced in 3.13 with commit 06be6b149f7e406bcf16098567f5a6c9f042bced and fixed in 6.19.10 with commit 50f1b690b4868923fbd242298def2fb88662f108 Issue introduced in 3.13 with commit 06be6b149f7e406bcf16098567f5a6c9f042bced and fixed in 7.0-rc5 with commit d5ad6ab61cbd89afdb60881f6274f74328af3ee9
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-23444
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/wireless/ath/ath9k/channel.c drivers/net/wireless/mediatek/mt76/scan.c drivers/net/wireless/virtual/mac80211_hwsim.c include/net/mac80211.h net/mac80211/tx.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/06e769dddcbeb3baf2ce346273b53dd61fdbecf4 https://git.kernel.org/stable/c/50f1b690b4868923fbd242298def2fb88662f108 https://git.kernel.org/stable/c/d5ad6ab61cbd89afdb60881f6274f74328af3ee9