Files
linux/drivers/scsi
Dan Carpenter f63ae56e4e [SCSI] gdth: integer overflow in ioctl
gdth_ioctl_alloc() takes the size variable as an int.
copy_from_user() takes the size variable as an unsigned long.
gen.data_len and gen.sense_len are unsigned longs.
On x86_64 longs are 64 bit and ints are 32 bit.

We could pass in a very large number and the allocation would truncate
the size to 32 bits and allocate a small buffer.  Then when we do the
copy_from_user(), it would result in a memory corruption.

CC: stable@kernel.org
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-10-25 15:01:14 -05:00
..
2010-09-16 22:54:24 -04:00
2010-10-15 15:53:27 +02:00
2008-08-29 02:13:10 -07:00
2010-10-25 15:01:14 -05:00
2010-07-27 12:02:00 -05:00
2010-01-18 10:48:08 -06:00
2010-10-07 17:24:44 -05:00
2010-10-07 17:24:44 -05:00
2008-12-28 20:00:03 +01:00
2010-05-02 15:55:03 -04:00
2010-08-11 00:55:42 -04:00
2010-09-16 11:48:48 -04:00
2008-02-07 18:02:44 -06:00
2009-12-10 08:54:13 -06:00