Searched hist:"7 c1a80e80cde008f271bae630d28cf684351e807" (Results 1 – 1 of 1) sorted by relevance
/linux/net/xfrm/ |
H A D | xfrm_user.c | diff 7c1a80e80cde008f271bae630d28cf684351e807 Fri Jun 25 12:23:54 CEST 2021 Pavel Skripkin <paskripkin@gmail.com> net: xfrm: fix memory leak in xfrm_user_rcv_msg
Syzbot reported memory leak in xfrm_user_rcv_msg(). The problem was is non-freed skb's frag_list.
In skb_release_all() skb_release_data() will be called only in case of skb->head != NULL, but netlink_skb_destructor() sets head to NULL. So, allocated frag_list skb should be freed manualy, since consume_skb() won't take care of it
Fixes: 5106f4a8acff ("xfrm/compat: Add 32=>64-bit messages translator") Reported-and-tested-by: syzbot+fb347cf82c73a90efcca@syzkaller.appspotmail.com Signed-off-by: Pavel Skripkin <paskripkin@gmail.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
|