CVE-2025-71224: wifi: mac80211: ocb: skip rx_no_sta when interface is not joined
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211: ocb: skip rx_no_sta when interface is not joined
ieee80211_ocb_rx_no_sta() assumes a valid channel context, which is only present after JOIN_OCB.
RX may run before JOIN_OCB is executed, in which case the OCB interface is not operational. Skip RX peer handling when the interface is not joined to avoid warnings in the RX path.
The Linux kernel CVE team has assigned CVE-2025-71224 to this issue.
Affected and fixed versions
===========================
Fixed in 5.10.250 with commit fcc768760df08337525cde28e8460e36f9855af8 Fixed in 5.15.200 with commit b04c75366a5471ae2dd7f4c33b7f1e2c08b9b32d Fixed in 6.1.163 with commit 8fd1c63e016893b7f6c1cf799410da4eaa98c090 Fixed in 6.6.124 with commit ffe1e19c3b0e5b9eb9e04fad4bce7d1dc407fd77 Fixed in 6.12.70 with commit 536447521b3b9be1975c7f1db9054bdf2ab779cb Fixed in 6.18.10 with commit e0bd226804f8e0098711042c93d64f3b720b36c0 Fixed in 6.19 with commit ff4071c60018a668249dc6a2df7d16330543540e
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-2025-71224
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:
net/mac80211/ocb.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/fcc768760df08337525cde28e8460e36f9855af8 https://git.kernel.org/stable/c/b04c75366a5471ae2dd7f4c33b7f1e2c08b9b32d https://git.kernel.org/stable/c/8fd1c63e016893b7f6c1cf799410da4eaa98c090 https://git.kernel.org/stable/c/ffe1e19c3b0e5b9eb9e04fad4bce7d1dc407fd77 https://git.kernel.org/stable/c/536447521b3b9be1975c7f1db9054bdf2ab779cb https://git.kernel.org/stable/c/e0bd226804f8e0098711042c93d64f3b720b36c0 https://git.kernel.org/stable/c/ff4071c60018a668249dc6a2df7d16330543540e