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.2.31~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=744e0a9c51333d712e76850bf58b4aeb277016fe;p=pandora-kernel.git xfrm_user: fix info leak in copy_to_user_auth() [ Upstream commit 4c87308bdea31a7b4828a51f6156e6f721a1fcc9 ] 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 Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed