From: Jouni Malinen Date: Wed, 21 Sep 2011 13:13:07 +0000 (+0300) Subject: cfg80211: Fix validation of AKM suites X-Git-Tag: v3.1-rc9~23^2^2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b9ca0272ffae212e726380f66777b30a56ed7a5;p=pandora-kernel.git cfg80211: Fix validation of AKM suites Incorrect variable was used in validating the akm_suites array from NL80211_ATTR_AKM_SUITES. In addition, there was no explicit validation of the array length (we only have room for NL80211_MAX_NR_AKM_SUITES). This can result in a buffer write overflow for stack variables with arbitrary data from user space. The nl80211 commands using the affected functionality require GENL_ADMIN_PERM, so this is only exposed to admin users. Cc: stable@kernel.org Signed-off-by: Jouni Malinen Signed-off-by: John W. Linville --- Reading git-diff-tree failed