public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Staging: vt6655/vt6656 security issues
@ 2010-09-27 18:30 Dan Rosenberg
  2010-09-27 19:28 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Rosenberg @ 2010-09-27 18:30 UTC (permalink / raw)
  To: gregkh; +Cc: security, linux-kernel

Based on a brief glance looking for security issues, I just wanted to
mention that these drivers are nowhere near ready to be added to the
main kernel.  I'm not interested in developing these drivers further,
but there are at least six stack buffer overflows:

vt6655/wpactl.c: wpa_set_keys(), line 239
vt6655/wpactl.c: wpa_set_keys(), line 280
vt6655/wpactl.c: wpa_set_associate(), line 770 (reported by Dan
Carpenter)

vt6656/wpactl.c: wpa_set_keys(), line 239
vt6656/wpactl.c: wpa_set_keys(), line 279
vt6656/wpactl.c: wpa_set_associate(), line 779

And four heap corruption issues due to integer overflow in the
allocation size:

vt6655/ioctl.c: private_ioctl(), line 329
vt6655/ioctl.c: private_ioctl(), line 625

vt6656/ioctl.c: private_ioctl(), line 326
vt6656/ioctl.c: private_ioctl(), line 615

They are all caused by unchecked copy_from_user() calls with
user-provided length fields or kmalloc() calls with arithmetic on
user-provided sizes.  This kind of sloppiness suggests there are almost
certainly other major security issues in this code.

Regards,
Dan


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-27 19:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-27 18:30 Staging: vt6655/vt6656 security issues Dan Rosenberg
2010-09-27 19:28 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox