mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 18:11:20 +00:00
cciss: fix info leak in cciss_ioctl32_passthru()
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>
This commit is contained in:
parent
627aad1c01
commit
58f09e00ae
1 changed files with 1 additions and 0 deletions
|
@ -1189,6 +1189,7 @@ static int cciss_ioctl32_passthru(struct block_device *bdev, fmode_t mode,
|
||||||
int err;
|
int err;
|
||||||
u32 cp;
|
u32 cp;
|
||||||
|
|
||||||
|
memset(&arg64, 0, sizeof(arg64));
|
||||||
err = 0;
|
err = 0;
|
||||||
err |=
|
err |=
|
||||||
copy_from_user(&arg64.LUN_info, &arg32->LUN_info,
|
copy_from_user(&arg64.LUN_info, &arg32->LUN_info,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue