]> git.baikalelectronics.ru Git - kernel.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)
commit8633de00a719c8d7e88e737569be744f9877fd94
treeb5a4332bd71d40a6193bc62d097808abfe62997a
parent7b625d996b518b7e3d654a8fb047d752d0e6e751
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