Skip to content
Commit 63cd7cdd authored by Jeremy Sowden's avatar Jeremy Sowden Committed by Ben Hutchings
Browse files

af_key: fix leaks in key_pol_get_resp and dump_sp.

commit 7c80eb1c upstream.

In both functions, if pfkey_xfrm_policy2msg failed we leaked the newly
allocated sk_buff.  Free it on error.

Fixes: 55569ce2

 ("Fix conversion between IPSEC_MODE_xxx and XFRM_MODE_xxx.")
Reported-by: default avatar <syzbot+4f0529365f7f2208d9f0@syzkaller.appspotmail.com>
Signed-off-by: default avatarJeremy Sowden <jeremy@azazel.net>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 53fa3626
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment