android_kernel_motorola_sm6375/net/xfrm
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Pavel Skripkin 54e1868c8b UPSTREAM: 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]>
(cherry picked from commit 7c1a80e80cde008f271bae630d28cf684351e807)
Bug: 187129171
Signed-off-by: Connor O'Brien <[email protected]>
Change-Id: I4270f5f9f748d6ecd52dd62118b32a70d0921d4b
2022-01-24 11:41:01 -08:00
..
Kconfig UPSTREAM: xfrm/compat: Add 32=>64-bit messages translator 2020-11-02 15:48:50 +00:00
Makefile BACKPORT: xfrm: Provide API to register translator module 2020-11-02 15:48:23 +00:00
xfrm_algo.c
xfrm_compat.c UPSTREAM: net/xfrm/compat: Copy xfrm_spdattr_type_t atributes 2021-10-01 11:32:56 -07:00
xfrm_device.c xfrm: Fix double ESP trailer insertion in IPsec crypto offload. 2020-06-30 15:36:53 -04:00
xfrm_hash.c
xfrm_hash.h
xfrm_inout.h
xfrm_input.c xfrm: Fix oops in xfrm_replay_advance_bmp 2021-02-03 23:25:59 +01:00
xfrm_interface.c xfrm: interface: fix ipv4 pmtu check to honor ip header df 2021-04-14 08:24:13 +02:00
xfrm_ipcomp.c
xfrm_output.c xfrm: fix a NULL-ptr deref in xfrm_local_error 2020-06-03 08:21:33 +02:00
xfrm_policy.c xfrm: Fix wraparound in xfrm_policy_addr_delta() 2021-02-03 23:25:59 +01:00
xfrm_proc.c
xfrm_replay.c
xfrm_state.c This is the 5.4.132 stable release 2021-07-14 17:12:58 +02:00
xfrm_sysctl.c
xfrm_user.c UPSTREAM: net: xfrm: fix memory leak in xfrm_user_rcv_msg 2022-01-24 11:41:01 -08:00