Torsten Hilbrich
d8166d4b42
vti6: Fix memory leak of skb if input policy check fails
...
commit 2a9de3af21aa8c31cd68b0b39330d69f8c1e59df upstream.
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: ed1efb2aef ("ipv6: Add support for IPsec virtual tunnel interfaces")
Signed-off-by: Torsten Hilbrich <[email protected] >
Reviewed-by: Nicolas Dichtel <[email protected] >
Signed-off-by: Steffen Klassert <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2020-04-01 11:02:12 +02:00
..
6lowpan
9p
9p pull request for inclusion in 5.4
2019-09-27 15:10:34 -07:00
802
8021q
vlan: vlan_changelink() should propagate errors
2020-01-12 12:21:50 +01:00
appletalk
appletalk: enforce CAP_NET_RAW for raw sockets
2019-09-24 16:37:18 +02:00
atm
net: atm: Reduce the severity of logging in unlink_clip_vcc
2019-11-18 17:08:20 -08:00
ax25
ax25: enforce CAP_NET_RAW for raw sockets
2019-09-24 16:37:18 +02:00
batman-adv
batman-adv: Don't schedule OGM for disabled interface
2020-03-18 07:17:54 +01:00
bluetooth
Bluetooth: Fix race condition in hci_release_sock()
2020-02-05 21:22:42 +00:00
bpf
bpfilter
net/bpfilter: fix dprintf usage for /dev/kmsg
2020-04-01 11:01:33 +02:00
bridge
net: add bool confirm_neigh parameter for dst_ops.update_pmtu
2020-01-04 19:18:58 +01:00
caif
net: use skb_queue_empty_lockless() in poll() handlers
2019-10-28 13:33:41 -07:00
can
can: j1939: j1939_sk_bind(): take priv after lock is held
2019-12-31 16:45:56 +01:00
ceph
ceph: check POOL_FLAG_FULL/NEARFULL in addition to OSDMAP_FULL/NEARFULL
2020-04-01 11:01:58 +02:00
core
bpf, sockmap: Remove bucket->lock from sock_{hash|map}_free
2020-04-01 11:02:11 +02:00
dcb
dccp
net: ipv6: add net argument to ip6_dst_lookup_flow
2019-12-18 16:08:40 +01:00
decnet
net: add bool confirm_neigh parameter for dst_ops.update_pmtu
2020-01-04 19:18:58 +01:00
dns_resolver
dsa
net: dsa: tag_8021q: replace dsa_8021q_remove_header with __skb_vlan_pop
2020-04-01 11:01:34 +02:00
ethernet
net: add annotations on hh->hh_len lockless accesses
2020-01-09 10:20:06 +01:00
hsr
hsr: set .netnsok flag
2020-04-01 11:01:49 +02:00
ieee802154
nl802154: add missing attribute validation for dev_type
2020-03-18 07:17:44 +01:00
ife
net: Fix Kconfig indentation
2019-09-26 08:56:17 +02:00
ipv4
vti[6]: fix packet tx through bpf_redirect() in XinY cases
2020-04-01 11:02:05 +02:00
ipv6
vti6: Fix memory leak of skb if input policy check fails
2020-04-01 11:02:12 +02:00
iucv
kcm
kcm: disable preemption in kcm_parse_func_strparser()
2019-09-27 10:27:14 +02:00
key
l2tp
l2tp: Allow duplicate session creation with UDP
2020-02-11 04:35:04 -08:00
l3mdev
lapb
llc
llc2: Fix return statement of llc_stat_ev_rx_null_dsap_xid_c (and _test_c)
2020-01-12 12:21:45 +01:00
mac80211
mac80211: set IEEE80211_TX_CTRL_PORT_CTRL_PROTO for nl80211 TX
2020-04-01 11:02:09 +02:00
mac802154
mpls
net: ipv6_stub: use ip6_dst_lookup_flow instead of ip6_dst_lookup
2019-12-18 16:08:42 +01:00
ncsi
net/ncsi: Disable global multicast filter
2019-09-19 18:04:40 -07:00
netfilter
netfilter: nft_fwd_netdev: allow to redirect to ifb via ingress
2020-04-01 11:02:10 +02:00
netlabel
netlink
netlink: Use netlink header as base to calculate bad attribute offset
2020-03-18 07:17:40 +01:00
netrom
net: core: add generic lockdep keys
2019-10-24 14:53:48 -07:00
nfc
nfc: add missing attribute validation for vendor subcommand
2020-03-18 07:17:46 +01:00
nsh
openvswitch
net: openvswitch: don't unlock mutex when changing the user_features fails
2020-01-26 10:01:05 +01:00
packet
net/packet: tpacket_rcv: avoid a producer race condition
2020-04-01 11:01:35 +02:00
phonet
net: use skb_queue_empty_lockless() in poll() handlers
2019-10-28 13:33:41 -07:00
psample
net: psample: fix skb_over_panic
2019-12-04 22:30:54 +01:00
qrtr
net: qrtr: fix len of skb_put_padto in qrtr_node_enqueue
2020-03-21 08:11:57 +01:00
rds
rds: ib: update WR sizes when bringing up connection
2019-11-16 12:59:08 -08:00
rfkill
rfkill: Fix incorrect check to avoid NULL pointer dereference
2020-01-12 12:21:33 +01:00
rose
net: core: add generic lockdep keys
2019-10-24 14:53:48 -07:00
rxrpc
afs: Fix client call Rx-phase signal handling
2020-04-01 11:02:07 +02:00
sched
net_sched: keep alloc_hash updated after hash allocation
2020-04-01 11:01:37 +02:00
sctp
inet_diag: return classid for all socket types
2020-03-18 07:17:38 +01:00
smc
net/smc: cancel event worker during device removal
2020-03-18 07:17:59 +01:00
strparser
sunrpc
sunrpc: Fix potential leaks in sunrpc_cache_unhash()
2020-02-24 08:36:55 +01:00
switchdev
tipc
tipc: add missing attribute validation for MTU property
2020-03-18 07:17:45 +01:00
tls
net/tls: Fix to avoid gettig invalid tls record
2020-03-05 16:43:32 +01:00
unix
af_unix: add compat_ioctl support
2020-01-17 19:48:52 +01:00
vmw_vsock
hv_sock: Remove the accept port restriction
2020-02-14 16:34:07 -05:00
wimax
wireless
nl80211: fix NL80211_ATTR_CHANNEL_WIDTH attribute type
2020-04-01 11:02:01 +02:00
x25
net/x25: fix nonblocking connect
2020-01-29 16:45:33 +01:00
xdp
xsk: Add rcu_read_lock around the XSK wakeup
2020-01-12 12:21:41 +01:00
xfrm
xfrm: policy: Fix doulbe free in xfrm_policy_timer
2020-04-01 11:02:07 +02:00
compat.c
Kconfig
Makefile
socket.c
compat_ioctl: handle SIOCOUTQNSD
2020-01-17 19:48:52 +01:00
sysctl_net.c