staging: vt6655: integer overflows in private_ioctl()
authorXi Wang <xi.wang@gmail.com>
Wed, 30 Nov 2011 02:52:46 +0000 (21:52 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 30 Nov 2011 10:29:40 +0000 (19:29 +0900)
commit2a58b19fd97c7368c03c027419a2aeb26313adad
tree3f264e57e93835e04d88b19c6207b58048f1db51
parentfee6433bdd1a4ab403a79069eda9a38da9903243
staging: vt6655: integer overflows in private_ioctl()

There are two potential integer overflows in private_ioctl() if
userspace passes in a large sList.uItem / sNodeList.uItem.  The
subsequent call to kmalloc() would allocate a small buffer, leading
to a memory corruption.

Reported-by: Dan Rosenberg <drosenberg@vsecurity.com>
Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/vt6655/ioctl.c