From: Luciano Coelho Date: Tue, 12 Feb 2013 18:11:38 +0000 (+0200) Subject: cfg80211: check vendor IE length to avoid overrun X-Git-Tag: v3.9-rc1~139^2~31^2^2~1^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6719429dd61cde1fe30d9644d0aa2369eefc9005;p=pandora-kernel.git 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 Signed-off-by: Luciano Coelho [change BUILD_BUG_ON to != 1 (from >= 2)] Signed-off-by: Johannes Berg --- Reading git-diff-tree failed