Thread (3 messages) 3 messages, 3 authors, 2026-02-05

Re: [PATCH v3 wireless] mac80211: fix NULL pointer dereference in monitor mode

From: Greg KH <hidden>
Date: 2026-02-05 17:34:03
Also in: linux-wireless, stable

On Thu, Feb 05, 2026 at 10:53:12PM +0530, Dhyan K Prajapati wrote:
quoted hunk ↗ jump to hunk
From: dhyaan19022009-hue <redacted>

Signed-off-by: dhyaan19022009-hue <redacted>
---
 net/mac80211/main.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index b05e313c7..190222c26 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -416,6 +416,8 @@ void ieee80211_link_info_change_notify(struct ieee80211_sub_if_data *sdata,
 	case NL80211_IFTYPE_MONITOR:
 		if (!ieee80211_hw_check(&local->hw, WANT_MONITOR_VIF))
 			return;
+		if (!link->conf->bss)
+			return;
 		break;
 	default:
 		break;
-- 
2.43.0
<formletter>

This is not the correct way to submit patches for inclusion in the
stable kernel tree.  Please read:
    https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.

</formletter>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help