Dan Rosenberg
a0846f1868
USB: serial/mos*: prevent reading uninitialized stack memory
...
The TIOCGICOUNT device ioctl in both mos7720.c and mos7840.c allows
unprivileged users to read uninitialized stack memory, because the
"reserved" member of the serial_icounter_struct 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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-09-20 16:05:00 -07:00
..
2010-05-20 13:21:49 -07:00
2010-05-20 13:21:43 -07:00
2010-05-20 13:21:48 -07:00
2010-05-20 13:21:46 -07:00
2010-03-30 22:02:32 +09:00
2010-05-20 13:21:33 -07:00
2009-03-30 15:21:59 +02:00
2010-05-20 13:21:32 -07:00
2010-09-03 17:33:40 -07:00
2010-03-02 14:55:12 -08:00
2010-05-20 13:21:49 -07:00
2010-05-20 13:21:46 -07:00
2010-08-10 13:47:41 -07:00
2010-05-20 13:21:48 -07:00
2008-10-17 14:41:10 -07:00
2010-09-03 17:33:41 -07:00
2010-09-03 17:33:41 -07:00
2010-05-20 13:21:46 -07:00
2010-03-02 14:54:16 -08:00
2010-03-02 14:55:12 -08:00
2010-08-28 13:55:31 -07:00
2010-03-02 14:54:16 -08:00
2010-05-20 13:21:46 -07:00
2010-05-20 13:21:47 -07:00
2010-05-20 13:21:47 -07:00
2010-03-02 14:54:16 -08:00
2010-08-23 20:50:16 -07:00
2010-05-20 13:21:47 -07:00
2010-05-20 13:21:47 -07:00
2010-08-10 14:35:35 -07:00
2010-05-20 13:21:46 -07:00
2010-05-20 13:21:50 -07:00
2010-08-10 14:35:34 -07:00
2008-02-01 14:34:47 -08:00
2010-08-10 14:35:44 -07:00
2010-03-03 08:48:58 -08:00
2010-03-02 14:55:12 -08:00
2010-03-02 14:54:16 -08:00
2010-06-16 18:05:05 +02:00
2010-05-20 13:21:47 -07:00
2010-05-20 13:21:47 -07:00
2010-05-20 13:21:47 -07:00
2010-08-10 14:35:44 -07:00
2010-05-20 13:21:33 -07:00
2010-05-20 13:21:46 -07:00
2010-09-20 16:05:00 -07:00
2010-09-20 16:05:00 -07:00
2010-03-02 14:54:16 -08:00
2010-08-23 20:50:15 -07:00
2010-03-02 14:54:59 -08:00
2010-03-30 22:02:32 +09:00
2010-09-03 17:33:40 -07:00
2010-05-20 13:21:49 -07:00
2010-08-28 13:55:31 -07:00
2010-08-23 20:50:15 -07:00
2010-05-20 13:21:40 -07:00
2010-07-26 12:00:58 -07:00
2010-05-20 13:21:49 -07:00
2010-03-02 14:54:16 -08:00
2010-07-26 12:00:57 -07:00
2010-05-20 13:21:48 -07:00
2010-09-03 17:33:41 -07:00
2010-03-30 22:02:32 +09:00
2010-05-20 13:21:50 -07:00
2010-04-22 15:18:20 -07:00
2010-05-20 13:21:49 -07:00
2010-05-20 13:21:37 -07:00
2010-08-23 20:50:15 -07:00
2010-05-20 13:21:37 -07:00
2010-05-20 13:21:48 -07:00
2010-05-20 13:21:47 -07:00
2010-03-02 14:54:57 -08:00
2010-03-02 14:55:09 -08:00
2008-07-22 13:03:22 -07:00
2010-05-20 13:21:32 -07:00