]> Git Repo - linux.git/commit
xfrm_user: fix info leak in copy_to_user_policy()
authorMathias Krause <[email protected]>
Wed, 19 Sep 2012 11:33:40 +0000 (11:33 +0000)
committerDavid S. Miller <[email protected]>
Thu, 20 Sep 2012 22:08:39 +0000 (18:08 -0400)
commit7b789836f434c87168eab067cfbed1ec4783dffd
treefcebdddebb3990a07644c49f335b6193edaf6cb1
parentf778a636713a435d3a922c60b1622a91136560c1
xfrm_user: fix info leak in copy_to_user_policy()

The memory reserved to dump the xfrm policy includes multiple padding
bytes added by the compiler for alignment (padding bytes in struct
xfrm_selector and struct xfrm_userpolicy_info). Add an explicit
memset(0) before filling the buffer to avoid the heap info leak.

Signed-off-by: Mathias Krause <[email protected]>
Acked-by: Steffen Klassert <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/xfrm/xfrm_user.c
This page took 0.057457 seconds and 4 git commands to generate.