From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E88F128725B; Mon, 9 Feb 2026 14:51:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770648697; cv=none; b=rohMz8MVO0/Q0h9Vu6yjmr+5ayCv/gz7809iGCStXrr2PecRUs1zxa4nRsBtObsn5TzGwf1At5NXQpe1XAff+mdwdgh3LrrTueG0dXbadZqT69nPyIS/xP4iiaxqD343/oaI5bJ/uBR2ToJL5yrX5JrhzYoRPy0oo34hs0QnYaA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770648697; c=relaxed/simple; bh=m9ij1h0klxQ20PH6Zvirq264jqm63C7fpwGhFR+6imQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=E2UUsYQYhCOV/3TcFWq3XBMKov1/ILqSOtLT6vrVt2zfRphabicPC3vSvy003V9mBvQVrlQDL0LVEKtty2YqR+QMygd5CSrjzP3CMRQr4hM+rkYb9Eh2x4ZNd72DCWbb7lk8r7V6DppMidwv2+f1NS8q/BLaA3Z6jsPcFDBQyEU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jl8QVE8R; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jl8QVE8R" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D36CC116C6; Mon, 9 Feb 2026 14:51:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770648696; bh=m9ij1h0klxQ20PH6Zvirq264jqm63C7fpwGhFR+6imQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jl8QVE8R0KP40v8wtxW6BwpZAoE6KV30lj+EX47Fq1k8Tc5PTc5gHqdaYBqzmsbul 5Voc/pjnZws6lRhr8hf/ueBeo0wcBLkJac8Sg1MYKADWonrXWnj4iiZYnTNX+lZhQ1 BIomh2oqVpwEP7VpciUCbYJGQvtz5XnR7/TwkK/s= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, syzbot+b364457b2d1d4e4a3054@syzkaller.appspotmail.com, Moon Hee Lee , Johannes Berg , Sasha Levin Subject: [PATCH 5.10 06/41] wifi: mac80211: ocb: skip rx_no_sta when interface is not joined Date: Mon, 9 Feb 2026 15:24:27 +0100 Message-ID: <20260209142257.032781620@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260209142256.797267956@linuxfoundation.org> References: <20260209142256.797267956@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Moon Hee Lee [ Upstream commit ff4071c60018a668249dc6a2df7d16330543540e ] 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. Reported-by: syzbot+b364457b2d1d4e4a3054@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=b364457b2d1d4e4a3054 Tested-by: syzbot+b364457b2d1d4e4a3054@syzkaller.appspotmail.com Signed-off-by: Moon Hee Lee Link: https://patch.msgid.link/20251216035932.18332-1-moonhee.lee.ca@gmail.com Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/mac80211/ocb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/mac80211/ocb.c b/net/mac80211/ocb.c index 7c1a735b9eee3..736e5c08bfd7b 100644 --- a/net/mac80211/ocb.c +++ b/net/mac80211/ocb.c @@ -47,6 +47,9 @@ void ieee80211_ocb_rx_no_sta(struct ieee80211_sub_if_data *sdata, struct sta_info *sta; int band; + if (!ifocb->joined) + return; + /* XXX: Consider removing the least recently used entry and * allow new one to be added. */ -- 2.51.0