Dan Carpenter
e220aa2dd5
Staging: vt6655: fix buffer overflow
...
commit dd173abfea upstream.
"param->u.wpa_associate.wpa_ie_len" comes from the user. We should
check it so that the copy_from_user() doesn't overflow the buffer.
Also further down in the function, we assume that if
"param->u.wpa_associate.wpa_ie_len" is set then "abyWPAIE[0]" is
initialized. To make that work, I changed the test here to say that if
"wpa_ie_len" is set then "wpa_ie" has to be a valid pointer or we return
-EINVAL.
Oddly, we only use the first element of the abyWPAIE[] array. So I
suspect there may be some other issues in this function.
Signed-off-by: Dan Carpenter <error27@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2010-09-26 17:21:24 -07:00
..
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-06-19 11:00:51 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:07 -07:00
2010-07-05 11:10:29 -07:00
2009-09-15 12:02:34 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:01:36 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:34 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:07 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-06-19 11:00:51 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-11-30 16:39:42 -08:00
2009-09-15 12:02:07 -07:00
2009-09-15 12:02:08 -07:00
2009-06-19 11:00:51 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2010-09-26 17:21:24 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00
2009-09-15 12:02:08 -07:00