Please sign in to comment.
xfrm_user: fix info leak in copy_to_user_tmpl()
The memory used for the template copy is a local stack variable. As struct xfrm_user_tmpl contains multiple holes added by the compiler for alignment, not initializing the memory will lead to leaking stack bytes to userland. Add an explicit memset(0) to avoid the info leak. Initial version of the patch by Brad Spengler. Cc: Brad Spengler <email@example.com> 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...