]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jul 2012 06:18:31 +0000 (23:18 -0700)
commit0d1748f51be449d59bd35241ee7a984b3a1c7a8a
treec32e1dc90154dbd1ab9e694fee3fa810755b6403
parentb4f9806ecc209de74b1f2c6e2cb6ef20c645a086
net/tun: fix ioctl() based info leaks

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>
drivers/net/tun.c