char: applicom: fix information leak to userland
Subsystems (2)
PATCH 1/8 char: applicom: fix information leak to userland
Structure st_loc is copied to userland with some fields unitialized. It leads to leaking of stack memory.
Signed-off-by Vasiliy Kulikov <[email protected]>
---
Compile tested.
drivers/char/applicom.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/char/applicom.c +1 -0
@@ -566,6 +566,7 @@ static ssize_t ac_read (struct file *filp, char __user *buf, size_t count, loff_struct mailbox mailbox;/* Got a packet for us */ +memset (&st_loc,0 ,sizeof (st_loc)); ret =do_ac_read (i, buf, &st_loc, &mailbox);spin_unlock_irqrestore (&apbs[i].mutex, flags);set_current_state (TASK_RUNNING );
Signature · 1 line
1.7.0.4