]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: drop spoofed packets in ad-hoc mode
authorFelix Fietkau <nbd@openwrt.org>
Tue, 17 Sep 2013 09:15:43 +0000 (11:15 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 26 Sep 2013 17:56:06 +0000 (19:56 +0200)
commit8f57add3346c91bd7602dca87218bec986ae56a3
tree3172f146ce72e6f47d66be6bb18c39b1c05a1fd9
parentaa662b27196ef0f4c35af16170e8407fbf657d28
mac80211: drop spoofed packets in ad-hoc mode

If an Ad-Hoc node receives packets with the Cell ID or its own MAC
address as source address, it hits a WARN_ON in sta_info_insert_check()
With many packets, this can massively spam the logs. One way that this
can easily happen is through having Cisco APs in the area with rouge AP
detection and countermeasures enabled.
Such Cisco APs will regularly send fake beacons, disassoc and deauth
packets that trigger these warnings.

To fix this issue, drop such spoofed packets early in the rx path.

Cc: stable@vger.kernel.org
Reported-by: Thomas Huehn <thomas@net.t-labs.tu-berlin.de>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c