Please sign in to comment.
xfrm_user: fix info leak in copy_to_user_state()
The memory reserved to dump the xfrm state includes the padding bytes of struct xfrm_usersa_info added by the compiler for alignment (7 for amd64, 3 for i386). Add an explicit memset(0) before filling the buffer to avoid the info leak. Signed-off-by: Mathias Krause <firstname.lastname@example.org> Acked-by: Steffen Klassert <email@example.com> Signed-off-by: David S. Miller <firstname.lastname@example.org>
- Loading branch information...