projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2f0b88
)
cpqarray: fix info leak in ida_locked_ioctl()
author
Dan Carpenter
<
[email protected]
>
Tue, 24 Sep 2013 22:27:44 +0000
(15:27 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 25 Sep 2013 00:00:26 +0000
(17:00 -0700)
The pciinfo struct has a two byte hole after ->dev_fn so stack
information could be leaked to the user.
This was assigned CVE-2013-2147.
Signed-off-by: Dan Carpenter <
[email protected]
>
Acked-by: Mike Miller <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/block/cpqarray.c
patch
|
blob
|
history
diff --git
a/drivers/block/cpqarray.c
b/drivers/block/cpqarray.c
index 639d26b90b9117a56c69f991663f603847cc206c..2b944038453681ef15ba61f41e1cfa3a9e885fbe 100644
(file)
--- a/
drivers/block/cpqarray.c
+++ b/
drivers/block/cpqarray.c
@@
-1193,6
+1193,7
@@
out_passthru:
ida_pci_info_struct pciinfo;
if (!arg) return -EINVAL;
+ memset(&pciinfo, 0, sizeof(pciinfo));
pciinfo.bus = host->pci_dev->bus->number;
pciinfo.dev_fn = host->pci_dev->devfn;
pciinfo.board_id = host->board_id;