|
|
7829934 |
Since:
|
|
|
7829934 |
|
|
|
7829934 |
commit 816c04fe7ef01dd9649f5ccfe796474db8708be5
|
|
|
7829934 |
Author: Christian Lamparter <chunkeey@googlemail.com>
|
|
|
7829934 |
Date: Sat Apr 30 15:24:30 2011 +0200
|
|
|
7829934 |
|
|
|
7829934 |
mac80211: consolidate MIC failure report handling
|
|
|
7829934 |
|
|
|
7829934 |
is possible to that we dereference rx->key == NULL when driver set
|
|
|
7829934 |
RX_FLAG_MMIC_STRIPPED and not RX_FLAG_IV_STRIPPED and we are in
|
|
|
7829934 |
promiscuous mode. This happen with rt73usb and rt61pci at least.
|
|
|
7829934 |
|
|
|
7829934 |
Before the commit we always check rx->key against NULL, so I assume
|
|
|
7829934 |
fix should be done in mac80211 (also mic_fail path has similar check).
|
|
|
7829934 |
|
|
|
7829934 |
References:
|
|
|
7829934 |
https://bugzilla.redhat.com/show_bug.cgi?id=769766
|
|
|
7829934 |
http://rt2x00.serialmonkey.com/pipermail/users_rt2x00.serialmonkey.com/2012-January/004395.html
|
|
|
7829934 |
|
|
|
7829934 |
Cc: stable@vger.kernel.org # 3.0+
|
|
|
7829934 |
Reported-by: Stuart D Gathman <stuart@gathman.org>
|
|
|
7829934 |
Reported-by: Kai Wohlfahrt <kai.scorpio@gmail.com>
|
|
|
7829934 |
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
|
|
|
7829934 |
---
|
|
|
7829934 |
net/mac80211/wpa.c | 2 +-
|
|
|
7829934 |
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
7829934 |
|
|
|
7829934 |
diff --git a/net/mac80211/wpa.c b/net/mac80211/wpa.c
|
|
|
7829934 |
index 93aab07..422b798 100644
|
|
|
7829934 |
--- a/net/mac80211/wpa.c
|
|
|
7829934 |
+++ b/net/mac80211/wpa.c
|
|
|
7829934 |
@@ -106,7 +106,7 @@ ieee80211_rx_h_michael_mic_verify(struct ieee80211_rx_data *rx)
|
|
|
7829934 |
if (status->flag & RX_FLAG_MMIC_ERROR)
|
|
|
7829934 |
goto mic_fail;
|
|
|
7829934 |
|
|
|
7829934 |
- if (!(status->flag & RX_FLAG_IV_STRIPPED))
|
|
|
7829934 |
+ if (!(status->flag & RX_FLAG_IV_STRIPPED) && rx->key)
|
|
|
7829934 |
goto update_iv;
|
|
|
7829934 |
|
|
|
7829934 |
return RX_CONTINUE;
|
|
|
7829934 |
--
|
|
|
7829934 |
1.7.1
|
|
|
7829934 |
|
|
|
7829934 |
--
|
|
|
7829934 |
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
|
|
|
7829934 |
the body of a message to majordomo@vger.kernel.org
|
|
|
7829934 |
More majordomo info at http://vger.kernel.org/majordomo-info.html
|