aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wwan/iosm/iosm_ipc_protocol_ops.c
diff options
context:
space:
mode:
authorPavel Skripkin <[email protected]>2021-06-25 10:23:54 +0000
committerSteffen Klassert <[email protected]>2021-06-29 10:16:08 +0000
commit7c1a80e80cde008f271bae630d28cf684351e807 (patch)
tree5eb085441dc88a5252c433dcbd78b50ac2ca26aa /drivers/net/wwan/iosm/iosm_ipc_protocol_ops.c
parentselftests: net: devlink_port_split: check devlink returned an element before ... (diff)
downloadkernel-7c1a80e80cde008f271bae630d28cf684351e807.tar.gz
kernel-7c1a80e80cde008f271bae630d28cf684351e807.zip
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: [email protected] Signed-off-by: Pavel Skripkin <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_protocol_ops.c')
0 files changed, 0 insertions, 0 deletions