diff options
author | Luciano Coelho <coelho@ti.com> | 2013-02-12 19:11:38 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-02-13 10:14:17 +0100 |
commit | 6719429dd61cde1fe30d9644d0aa2369eefc9005 (patch) | |
tree | 5318edf7523b03cb3c34f2824985dc246231a053 /net/mac80211/rc80211_minstrel_ht.h | |
parent | nl80211: add packet offset information for wowlan pattern (diff) | |
download | linux-6719429dd61cde1fe30d9644d0aa2369eefc9005.tar.xz linux-6719429dd61cde1fe30d9644d0aa2369eefc9005.zip |
cfg80211: check vendor IE length to avoid overrun
cfg80211_find_vendor_ie() was checking only that the vendor IE would
fit in the remaining IEs buffer. If a corrupt includes a vendor IE
that is too small, we could potentially overrun the IEs buffer.
Fix this by checking that the vendor IE fits in the reported IE length
field and skip it otherwise.
Reported-by: Jouni Malinen <j@w1.fi>
Signed-off-by: Luciano Coelho <coelho@ti.com>
[change BUILD_BUG_ON to != 1 (from >= 2)]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/rc80211_minstrel_ht.h')
0 files changed, 0 insertions, 0 deletions