]> git.baikalelectronics.ru Git - kernel.git/commit
pptp: fix stack info leak in pptp_getname()
authorMathias Krause <minipli@googlemail.com>
Wed, 19 Nov 2014 17:05:26 +0000 (18:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Nov 2014 03:43:47 +0000 (22:43 -0500)
commitf190e2bce449d97619b0cdd77221f32336f5ae42
treef251bb2b01c2465cd791c4db2d5ef2dfe9ef83b6
parentf57a3e9abcf5426890b19eae2dfbc9bcb21ce373
pptp: fix stack info leak in pptp_getname()

pptp_getname() only partially initializes the stack variable sa,
particularly only fills the pptp part of the sa_addr union. The code
thereby discloses 16 bytes of kernel stack memory via getsockname().

Fix this by memset(0)'ing the union before.

Cc: Dmitry Kozlov <xeb@mail.ru>
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/pptp.c