summaryrefslogtreecommitdiffstats
path: root/net/ipv6/xfrm6_policy.c
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2020-11-10 02:14:43 +0100
committerSteffen Klassert <steffen.klassert@secunet.com>2020-11-10 09:14:25 +0100
commit48f486e13ffdb49fbb9b38c21d0e108ed60ab1a2 (patch)
tree9285c37baf8ff94289d9bc686b225c452a81c01f /net/ipv6/xfrm6_policy.c
parentMerge branch 'xfrm/compat: syzbot-found fixes' (diff)
downloadlinux-48f486e13ffdb49fbb9b38c21d0e108ed60ab1a2.tar.xz
linux-48f486e13ffdb49fbb9b38c21d0e108ed60ab1a2.zip
net: xfrm: fix memory leak in xfrm_user_policy()
if xfrm_get_translator() failed, xfrm_user_policy() return without freeing 'data', which is allocated in memdup_sockptr(). Fixes: 96392ee5a13b ("xfrm/compat: Translate 32-bit user_policy from sockptr") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Yu Kuai <yukuai3@huawei.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/ipv6/xfrm6_policy.c')
0 files changed, 0 insertions, 0 deletions