From: Mathias Krause Date: Wed, 19 Sep 2012 11:33:38 +0000 (+0000) Subject: xfrm_user: fix info leak in copy_to_user_auth() X-Git-Tag: v3.6-rc7~10^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c87308bdea31a7b4828a51f6156e6f721a1fcc9;p=pandora-kernel.git xfrm_user: fix info leak in copy_to_user_auth() copy_to_user_auth() fails to initialize the remainder of alg_name and therefore discloses up to 54 bytes of heap memory via netlink to userland. Use strncpy() instead of strcpy() to fill the trailing bytes of alg_name with null bytes. Signed-off-by: Mathias Krause Acked-by: Steffen Klassert Signed-off-by: David S. Miller --- Reading git-diff-tree failed