All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] wifi: rtw89: modify active scan rule for 6GHz band
       [not found] <2026112429-chimp-relax-ebfa@gregkh>
@ 2026-11-30 13:39 ` Tanuj Sharma
  2026-11-30 15:42   ` Greg KH
  2026-12-02 13:48   ` [PATCH] wifi: rtw89: modify active scan rule for 6GHz band Sasha Levin
  0 siblings, 2 replies; 6+ messages in thread
From: Tanuj Sharma @ 2026-11-30 13:39 UTC (permalink / raw)
  To: stable; +Cc: gregkh, pkshih, phhuang, kvalo

From: Po-Hao Huang <phhuang@realtek.com>

[ Upstream commit 0788bad5d012b164e5eabf5da206dea4fa67db1c ]

Remove the cancellation of active scan with specific SSID when receiving
beacons/probe responses of that SSID. Per IEEE Std 802.11ax 26.17.2.3.3,
only active scan of direct BSSID should be cancelled. Previously the
cancellation causes hidden AP under same ESS couldn't be found.

Signed-off-by: Po-Hao Huang <phhuang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260909070004.35353-5-pkshih@realtek.com
Signed-off-by: Tanuj Sharma <ertanuj96@gmail.com>
---
 drivers/net/wireless/realtek/rtw89/core.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/drivers/net/wireless/realtek/rtw89/core.c b/drivers/net/wireless/realtek/rtw89/core.c
index 397ebbf..4ec6289 100644
--- a/drivers/net/wireless/realtek/rtw89/core.c
+++ b/drivers/net/wireless/realtek/rtw89/core.c
@@ -2571,7 +2571,6 @@ static void rtw89_core_cancel_6ghz_probe_tx(struct rtw89_dev *rtwdev,
 	struct ieee80211_mgmt *mgmt = (struct ieee80211_mgmt *)skb->data;
 	struct list_head *pkt_list = rtwdev->scan_info.pkt_list;
 	struct rtw89_pktofld_info *info;
-	const u8 *ies = mgmt->u.beacon.variable, *ssid_ie;
 	bool queue_work = false;
 
 	if (rx_status->band != NL80211_BAND_6GHZ)
@@ -2582,21 +2581,10 @@ static void rtw89_core_cancel_6ghz_probe_tx(struct rtw89_dev *rtwdev,
 		return;
 	}
 
-	ssid_ie = cfg80211_find_ie(WLAN_EID_SSID, ies, skb->len);
-
 	list_for_each_entry(info, &pkt_list[NL80211_BAND_6GHZ], list) {
 		if (ether_addr_equal(info->bssid, mgmt->bssid)) {
 			info->cancel = true;
 			queue_work = true;
-			continue;
-		}
-
-		if (!ssid_ie || ssid_ie[1] != info->ssid_len || info->ssid_len == 0)
-			continue;
-
-		if (memcmp(&ssid_ie[2], info->ssid, info->ssid_len) == 0) {
-			info->cancel = true;
-			queue_work = true;
 		}
 	}
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] wifi: rtw89: modify active scan rule for 6GHz band
  2026-11-30 13:39 ` [PATCH] wifi: rtw89: modify active scan rule for 6GHz band Tanuj Sharma
@ 2026-11-30 15:42   ` Greg KH
  2026-11-30 19:50     ` Tanuj Sharma
  2026-12-02 13:48   ` [PATCH] wifi: rtw89: modify active scan rule for 6GHz band Sasha Levin
  1 sibling, 1 reply; 6+ messages in thread
From: Greg KH @ 2026-11-30 15:42 UTC (permalink / raw)
  To: Tanuj Sharma; +Cc: stable, pkshih, phhuang, kvalo

On Mon, Nov 30, 2026 at 07:09:20PM +0530, Tanuj Sharma wrote:
> From: Po-Hao Huang <phhuang@realtek.com>
> 
> [ Upstream commit 0788bad5d012b164e5eabf5da206dea4fa67db1c ]
> 
> Remove the cancellation of active scan with specific SSID when receiving
> beacons/probe responses of that SSID. Per IEEE Std 802.11ax 26.17.2.3.3,
> only active scan of direct BSSID should be cancelled. Previously the
> cancellation causes hidden AP under same ESS couldn't be found.

What stable tree(s) is this backport for?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] wifi: rtw89: modify active scan rule for 6GHz band
  2026-11-30 15:42   ` Greg KH
@ 2026-11-30 19:50     ` Tanuj Sharma
  2026-12-01  5:52       ` Greg KH
  0 siblings, 1 reply; 6+ messages in thread
From: Tanuj Sharma @ 2026-11-30 19:50 UTC (permalink / raw)
  To: gregkh; +Cc: stable, pkshih, phhuang, kvalo

Hi Greg,

This backport is for linux-7.3.y and linux-6.12.y. Both still have the
vulnerable cfg80211_find_ie() call in rtw89_core_cancel_6ghz_probe_tx()
that the upstream commit removes.

Thanks,
Tanuj

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] wifi: rtw89: modify active scan rule for 6GHz band
  2026-11-30 19:50     ` Tanuj Sharma
@ 2026-12-01  5:52       ` Greg KH
  2026-12-01  8:23         ` [PATCH] wifi: rtw89: fix OOB read in cfg80211_find_ie for 6 GHz scan Tanuj Sharma
  0 siblings, 1 reply; 6+ messages in thread
From: Greg KH @ 2026-12-01  5:52 UTC (permalink / raw)
  To: Tanuj Sharma; +Cc: stable, pkshih, phhuang, kvalo

On Tue, Dec 01, 2026 at 01:20:26AM +0530, Tanuj Sharma wrote:
> Hi Greg,
> 
> This backport is for linux-7.3.y and linux-6.12.y. Both still have the
> vulnerable cfg80211_find_ie() call in rtw89_core_cancel_6ghz_probe_tx()
> that the upstream commit removes.

I have no context here at all, how are you responding to an email
without any quoting at all?  What just changed in email clients to do
this so badly?

remember, some of us get 1000+ emails a day...

greg k-h

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] wifi: rtw89: fix OOB read in cfg80211_find_ie for 6 GHz scan
  2026-12-01  5:52       ` Greg KH
@ 2026-12-01  8:23         ` Tanuj Sharma
  0 siblings, 0 replies; 6+ messages in thread
From: Tanuj Sharma @ 2026-12-01  8:23 UTC (permalink / raw)
  To: gregkh; +Cc: stable, pkshih, phhuang, kvalo, johan, Tanuj Sharma

On Mon, Dec 01, 2026 at 11:22:00AM +0100, Greg KH wrote:
> On Tue, Dec 01, 2026 at 01:20:26AM +0530, Tanuj Sharma wrote:
> > This backport is for linux-7.3.y and linux-6.12.y. Both still have the
> > vulnerable cfg80211_find_ie() call in rtw89_core_cancel_6ghz_probe_tx()
> > that the upstream commit removes.
>
> I have no context here at all, how are you responding to an email
> without any quoting at all?  What just changed in email clients to do
> this so badly?
>
> remember, some of us get 1000+ emails a day...

Apologies for the broken threading. Full context below:

This patch is a backport of upstream commit 0788bad5d012b ("wifi:
rtw89: modify active scan rule for 6GHz band") to fix an OOB read
I reported on the separate thread "[SECURITY] wifi: rtw89: OOB read
in beacon/probe-resp IE parsing (OTA, pre-auth)".

On that [SECURITY] thread, Johan noted the bug appeared fixed, but
I confirmed that the fix 6c17c57d45ef only touched wow.c — the
core.c call site in rtw89_core_cancel_6ghz_probe_tx() was missed
and still passes skb->len (full frame length) instead of the IE
region length to cfg80211_find_ie(). In mainline master, this code
path was removed entirely by the refactor in 0788bad5d012b (which
switched to pure BSSID matching per IEEE 802.11ax 26.17.2.3.3),
but that was not an intentional security fix — just a spec
compliance change. That refactor was never backported to stable.

You then pointed out the correct process — submit the upstream
change as a proper backport to stable@vger. I acknowledged and
submitted this patch as that backport.

You asked:

> On Mon, Nov 30, 2026 at 09:12:00PM +0100, Greg KH wrote:
> > What stable tree(s) is this backport for?

This backport is for linux-7.3.y and linux-6.12.y.

Both trees still have the vulnerable cfg80211_find_ie() call in
drivers/net/wireless/realtek/rtw89/core.c at
rtw89_core_cancel_6ghz_probe_tx(). The upstream commit removes
this call entirely.

The patch applies cleanly to both trees (verified with git apply
--check on v7.3.6).

Thanks,
Tanuj

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] wifi: rtw89: modify active scan rule for 6GHz band
  2026-11-30 13:39 ` [PATCH] wifi: rtw89: modify active scan rule for 6GHz band Tanuj Sharma
  2026-11-30 15:42   ` Greg KH
@ 2026-12-02 13:48   ` Sasha Levin
  1 sibling, 0 replies; 6+ messages in thread
From: Sasha Levin @ 2026-12-02 13:48 UTC (permalink / raw)
  To: stable; +Cc: Sasha Levin, gregkh, pkshih, phhuang, kvalo, Tanuj Sharma

> Remove the cancellation of active scan with specific SSID when receiving
> beacons/probe responses of that SSID.

Queued for 7.3, 6.18, 6.12 and 6.6, thanks.

-- 
Thanks,
Sasha

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-12-02 13:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <2026112429-chimp-relax-ebfa@gregkh>
2026-11-30 13:39 ` [PATCH] wifi: rtw89: modify active scan rule for 6GHz band Tanuj Sharma
2026-11-30 15:42   ` Greg KH
2026-11-30 19:50     ` Tanuj Sharma
2026-12-01  5:52       ` Greg KH
2026-12-01  8:23         ` [PATCH] wifi: rtw89: fix OOB read in cfg80211_find_ie for 6 GHz scan Tanuj Sharma
2026-12-02 13:48   ` [PATCH] wifi: rtw89: modify active scan rule for 6GHz band Sasha Levin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.