]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: ax25: fix information leak to userland
authorVasiliy Kulikov <segooon@gmail.com>
Wed, 10 Nov 2010 18:14:33 +0000 (10:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Nov 2010 18:14:33 +0000 (10:14 -0800)
commitfe10ae53384e48c51996941b7720ee16995cbcb7
treeb5a4332bd71d40a6193bc62d097808abfe62997a
parent332dd96f7ac15e937088fe11f15cfe0210e8edd1
net: ax25: fix information leak to userland

Sometimes ax25_getname() doesn't initialize all members of fsa_digipeater
field of fsa struct, also the struct has padding bytes between
sax25_call and sax25_ndigis fields.  This structure is then copied to
userland.  It leads to leaking of contents of kernel stack memory.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ax25/af_ax25.c