]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
irda: do not leak initialized list.dev to userspace
authorColin Ian King <colin.king@canonical.com>
Thu, 17 Aug 2017 22:14:58 +0000 (23:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Aug 2017 23:21:51 +0000 (16:21 -0700)
commitb024d949a3c24255a7ef1a470420eb478949aa4c
tree9b66d1d97db2e83f862ce392422899e596b6f0a2
parentca3d89a3ebe79367bd41b6b8ba37664478ae2dba
irda: do not leak initialized list.dev to userspace

list.dev has not been initialized and so the copy_to_user is copying
data from the stack back to user space which is a potential
information leak. Fix this ensuring all of list is initialized to
zero.

Detected by CoverityScan, CID#1357894 ("Uninitialized scalar variable")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/af_irda.c