]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: check management frame header length
authorJohannes Berg <johannes.berg@intel.com>
Thu, 25 Oct 2012 22:33:36 +0000 (00:33 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Oct 2012 20:52:41 +0000 (22:52 +0200)
commit1523054dbd3ac167a890d97e85b69cbda24cf5fd
tree337243407a1d2240af23de94b042592311aaae63
parent2628dddb23ef69a1ad64c5a48a91a58607d17de8
mac80211: check management frame header length

Due to pskb_may_pull() checking the skb length, all
non-management frames are checked on input whether
their 802.11 header is fully present. Also add that
check for management frames and remove a check that
is now duplicate. This prevents accessing skb data
beyond the frame end.

Cc: stable@vger.kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c