From: Mathias Krause Date: Sat, 26 Aug 2017 15:08:58 +0000 (+0200) Subject: xfrm_user: fix info leak in xfrm_notify_sa() X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b666024123b0ba131d4fb2c3f7584ceb41feee6;p=pandora-kernel.git xfrm_user: fix info leak in xfrm_notify_sa() commit 50329c8a340c9dea60d837645fcf13fc36bfb84d upstream. The memory reserved to dump the ID of the xfrm state includes a padding byte in struct xfrm_usersa_id added by the compiler for alignment. To prevent the heap info leak, memset(0) the whole struct before filling it. Cc: Herbert Xu Fixes: 0603eac0d6b7 ("[IPSEC]: Add XFRMA_SA/XFRMA_POLICY for delete notification") Signed-off-by: Mathias Krause Signed-off-by: Steffen Klassert Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed