From: Salva Peiró Date: Mon, 3 Mar 2014 07:44:04 +0000 (+0100) Subject: staging/cxt1e1/linux.c: Correct arbitrary memory write in c4_ioctl() X-Git-Tag: v3.14-rc6~4^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=084b6e7765b9554699afa23a50e702a3d0ae4b24;p=pandora-kernel.git staging/cxt1e1/linux.c: Correct arbitrary memory write in c4_ioctl() The function c4_ioctl() writes data from user in ifr->ifr_data to the kernel struct data arg, without any iolen bounds checking. This can lead to a arbitrary write outside of the struct data arg. Corrected by adding bounds-checking of iolen before the copy_from_user(). Signed-off-by: Salva Peiró Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed