]> git.baikalelectronics.ru Git - kernel.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)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Wed, 15 Sep 2010 23:43:53 +0000 (23:43 +0000)
commit91d1e92c78d81c469904a9e61ad4955fbedf3629
treedb374bec1bf1ee1530b31d40ee4d6ff59819ca89
parentc0026824948d17fcde070a1d425187c7c16fd3b9
drivers/video/via/ioctl.c: prevent reading uninitialized stack memory

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>
drivers/video/via/ioctl.c