summaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_policy.c
diff options
context:
space:
mode:
authorTorsten Hilbrich <torsten.hilbrich@secunet.com>2020-03-11 11:19:06 +0100
committerSteffen Klassert <steffen.klassert@secunet.com>2020-03-16 11:13:48 +0100
commit2a9de3af21aa8c31cd68b0b39330d69f8c1e59df (patch)
treefc73994b4d93542e0e8a36113414067a642ccc51 /net/xfrm/xfrm_policy.c
parentesp: remove the skb from the chain when it's enqueued in cryptd_wq (diff)
downloadlinux-2a9de3af21aa8c31cd68b0b39330d69f8c1e59df.tar.xz
linux-2a9de3af21aa8c31cd68b0b39330d69f8c1e59df.zip
vti6: Fix memory leak of skb if input policy check fails
The vti6_rcv function performs some tests on the retrieved tunnel including checking the IP protocol, the XFRM input policy, the source and destination address. In all but one places the skb is released in the error case. When the input policy check fails the network packet is leaked. Using the same goto-label discard in this case to fix this problem. Fixes: ed1efb2aefbb ("ipv6: Add support for IPsec virtual tunnel interfaces") Signed-off-by: Torsten Hilbrich <torsten.hilbrich@secunet.com> Reviewed-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
0 files changed, 0 insertions, 0 deletions