]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drivers/video/via/ioctl.c: prevent reading uninitialized stack memory
authorDan Rosenberg <drosenberg@vsecurity.com>
Wed, 15 Sep 2010 23:08:24 +0000 (19:08 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 6 Jan 2011 23:08:02 +0000 (18:08 -0500)
commitb40076f9041d97b3e436c8914f21d262cf917d43
tree0a4b555347325e0393cbc9e91bf3d3e1488ae990
parent3c8d8bedf37054493323a6ae402fe538032e37a1
drivers/video/via/ioctl.c: prevent reading uninitialized stack memory

commit b4aaa78f4c2f9cde2f335b14f4ca30b01f9651ca upstream.

The VIAFB_GET_INFO device ioctl allows unprivileged users to read 246
bytes of uninitialized stack memory, because the "reserved" member of
the viafb_ioctl_info struct declared on the stack is not altered or
zeroed before being copied back to the user.  This patch takes care of
it.

Signed-off-by: Dan Rosenberg <dan.j.rosenberg@gmail.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/video/via/ioctl.c