Files
linux/block
Peilin Ye 145a5510ef block/scsi-ioctl: Fix kernel-infoleak in scsi_put_cdrom_generic_arg()
commit 6d53a9fe5a upstream.

scsi_put_cdrom_generic_arg() is copying uninitialized stack memory to
userspace, since the compiler may leave a 3-byte hole in the middle of
`cgc32`. Fix it by adding a padding field to `struct
compat_cdrom_generic_command`.

Cc: stable@vger.kernel.org
Fixes: f3ee6e63a9 ("compat_ioctl: move CDROM_SEND_PACKET handling into scsi")
Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Reported-by: syzbot+85433a479a646a064ab3@syzkaller.appspotmail.com
Signed-off-by: Peilin Ye <yepeilin.cs@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-10-14 11:55:46 +02:00
..
2020-09-03 11:29:27 +02:00
2020-09-03 11:29:27 +02:00
2020-09-03 11:29:27 +02:00
2020-09-03 11:29:27 +02:00
2020-09-03 11:29:38 +02:00
2020-03-17 20:55:21 +01:00
2020-05-29 16:30:39 -06:00
2020-01-03 09:33:21 +01:00
2019-07-15 09:20:27 -03:00
2020-01-06 20:59:04 -07:00