From: Dan Carpenter Date: Thu, 1 Mar 2012 07:02:08 +0000 (+0300) Subject: rndis_wlan: integer overflows in rndis_wlan_do_link_up_work() X-Git-Tag: v3.4-rc1~177^2~108^2~179 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41eedf39dfb145fb8fa04cd5b799f7bdc7679696;p=pandora-kernel.git rndis_wlan: integer overflows in rndis_wlan_do_link_up_work() If "offset" is negative then we can get past this check: if (offset > CONTROL_BUFFER_SIZE) Or if we pick a very high "req_ie_len" then we can get around the check: if (offset + req_ie_len > CONTROL_BUFFER_SIZE) I made "resp_ie_len" and "req_ie_len" unsigned. I don't know if it was intentional that they were signed in the original. Signed-off-by: Dan Carpenter Acked-by: Jussi Kivilinna Signed-off-by: John W. Linville --- Reading git-diff-tree failed