Skip to content

Commit 3cd1fa8

Browse files
Dan Carpentergregkh
authored andcommitted
cciss: fix info leak in cciss_ioctl32_passthru()
commit 58f09e0 upstream. The arg64 struct has a hole after ->buf_size which isn't cleared. Or if any of the calls to copy_from_user() fail then that would cause an information leak as well. This was assigned CVE-2013-2147. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Mike Miller <mike.miller@hp.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d19ac1f commit 3cd1fa8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/block/cciss.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,7 @@ static int cciss_ioctl32_passthru(struct block_device *bdev, fmode_t mode,
11891189
int err;
11901190
u32 cp;
11911191

1192+
memset(&arg64, 0, sizeof(arg64));
11921193
err = 0;
11931194
err |=
11941195
copy_from_user(&arg64.LUN_info, &arg32->LUN_info,

0 commit comments

Comments
 (0)