kernel-fxtec-pro1x/drivers/staging/vt6655
Dan Carpenter dd173abfea Staging: vt6655: fix buffer overflow
"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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-09-20 16:31:54 -07:00
..
80211hdr.h
80211mgr.c
80211mgr.h
aes_ccmp.c
aes_ccmp.h
baseband.c
baseband.h
bssdb.c
bssdb.h
card.c
card.h
channel.c
channel.h
country.h
datarate.c
datarate.h
desc.h
device.h
device_cfg.h
device_main.c
dpc.c
dpc.h
hostap.c
hostap.h
IEEE11h.c
IEEE11h.h
iocmd.h
ioctl.c
ioctl.h
iowpa.h
iwctl.c
iwctl.h
Kconfig
key.c
key.h
mac.c
mac.h
Makefile
mib.c
mib.h
michael.c
michael.h
power.c
power.h
rc4.c
rc4.h
rf.c
rf.h
rxtx.c
rxtx.h
srom.c
srom.h
tcrc.c
tcrc.h
test
tether.c
tether.h
tkip.c
tkip.h
tmacro.h
TODO
ttype.h
upc.h
vntconfiguration.dat
vntwifi.c
vntwifi.h
wcmd.c
wcmd.h
wctl.c
wctl.h
wmgr.c
wmgr.h
wpa.c
wpa.h
wpa2.c
wpa2.h
wpactl.c
wpactl.h
wroute.c
wroute.h