Skip to content

mac80211: fix NULL pointer dereference in monitor mode Crash trace: RIP: iwlagn_bss_info_changed+0x19d/0x640 [iwldvm] Code: 49 8b 46 10 <8b> 10 RAX: 0000000000000000 (NULL link->conf->bss) wifi: mac80211: fix NULL pointer deref regression in link notify Commit c57e5b974514 ("wifi: mac80211: fix WARN_ON for monitor mode on some devices") reorganized link change notifications. This caused a regression for hardware using IEEE80211_HW_WANT_MONITOR_VIF. In monitor mode, link->conf->bss is uninitialized, but current logic allows these notifications to reach driver callbacks, causing a deterministic NULL dereference in drivers like iwldvm. Fix this by validating the BSS context before driver notification. Device: Intel Centrino Advanced-n 6205 Fixes: c57e5b974514 ("wifi: mac80211: fix WARN_ON for monitor mode on some devices") Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: Johannes Berg <[email protected]> Signed-off-by: Dhyan K Prajapati <[email protected]>

Dhyan K Prajapati linux-wireless netdev stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest1 patch 0 repliesNew

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1mac80211: fix NULL pointer dereference in monitor mode Crash trace: RIP: iwlagn_bss_info_changed+0x19d/0x640 [iwldvm] Code: 49 8b 46 10 <8b> 10 RAX: 0000000000000000 (NULL link->conf->bss) wifi: mac80211: fix NULL pointer deref regression in link notify Commit c57e5b974514 ("wifi: mac80211: fix WARN_ON for monitor mode on some devices") reorganized link change notifications. This caused a regression for hardware using IEEE80211_HW_WANT_MONITOR_VIF. In monitor mode, link->conf->bss is uninitialized, but current logic allows these notifications to reach driver callbacks, causing a deterministic NULL dereference in drivers like iwldvm. Fix this by validating the BSS context before driver notification. Device: Intel Centrino Advanced-n 6205 Fixes: c57e5b974514 ("wifi: mac80211: fix WARN_ON for monitor mode on some devices") Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: Johannes Berg <[email protected]> Signed-off-by: Dhyan K Prajapati <[email protected]>net/mac80211/main.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread