]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/tun: fix ioctl() based info leaks
authorMathias Krause <minipli@googlemail.com>
Sun, 29 Jul 2012 19:45:14 +0000 (19:45 +0000)
committerJerry Snitselaar <jerry.snitselaar@oracle.com>
Sun, 7 Oct 2012 06:29:49 +0000 (23:29 -0700)
commit88656384513a9572c402a09ebc36b0ba64750e3a
treec9d160c37c2675a378eeb028672aa38791a645eb
parent610d3fc3b02200026398139e629c16002f6f15e7
net/tun: fix ioctl() based info leaks

[ Upstream commits a117dacde0288f3ec60b6e5bcedae8fa37ee0dfc
  and 8bbb181308bc348e02bfdbebdedd4e4ec9d452ce ]

The tun module leaks up to 36 bytes of memory by not fully initializing
a structure located on the stack that gets copied to user memory by the
TUNGETIFF and SIOCGIFHWADDR ioctl()s.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 4e98953723643ac9db9191381f52973a8f113902)

Signed-off-by: Jerry Snitselaar <jerry.snitselaar@oracle.com>
drivers/net/tun.c