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 6F236276028; Mon, 9 Feb 2026 14:38:30 +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=1770647910; cv=none; b=f6bRbXULHNh+lYR1qtOyvG1v0bqRZvVNvexONZyMwoAC9iJBAD3jg5xcKq3iC4bgJ2btCrQ/JksXcPlqJ9YJUe3vffjNzaUoY7eBQCCkpkw3/XRcUblQetZg+nCP2y7fRRcUuOfyAJnj5Mu2TRg3X1qN6kkgM8qclz7jtnGaT1c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770647910; c=relaxed/simple; bh=k9u7jmhcU26tcTg0B5604ZF6ivN0jwtnoBdztb6kZfM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=S/yfedx/oudeH66LoCw9E77kLFNEpuQPlY43858DeMB2/HTZJBQ0JZx/w8z344vluCvbsrI1d6jU1v5Dv72JLIwd0ABiJkTAev52/QbY1mI3pKzYDbjufPIHfZJH/21AZGeGCA/jKLNqMyM2/8W6reNHLeXajAUFVqPRSM/8yfI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vaFjHH8m; 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="vaFjHH8m" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C85B7C116C6; Mon, 9 Feb 2026 14:38:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770647910; bh=k9u7jmhcU26tcTg0B5604ZF6ivN0jwtnoBdztb6kZfM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vaFjHH8m1sK21COnrPVgNKKg3akmT4t53jNOw6eJsPkC512J3OYossV+TgYbKlov9 uF9/h/91jYXjeLhjI/dLiH3/vI4opiDOeLSgx/63xRTYtH0Wr5AfP9tQfvjKOlUHWD wpO86s+jtCnHZNuEsbhoGWHDnjjr4oY7z++Qg4bU= 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 6.12 030/113] wifi: mac80211: ocb: skip rx_no_sta when interface is not joined Date: Mon, 9 Feb 2026 15:22:59 +0100 Message-ID: <20260209142311.293139295@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260209142310.204833231@linuxfoundation.org> References: <20260209142310.204833231@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 6.12-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 f4c51e4a1e29a..b76792a7b3272 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