diff options
author | Xin Long <lucien.xin@gmail.com> | 2019-10-29 01:24:32 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-10 11:23:28 +0100 |
commit | 0ee544c2c10dc6f7b2b29ebbe917ffad2e0591dc (patch) | |
tree | 87b05dfdeb239ddb7ea973118cca27bd6857d35b /net/ipv4/tcp_ipv4.c | |
parent | 28f36653f00a5adbc3bfe5d6e871d008b0f550cf (diff) |
vxlan: check tun_info options_len properly
[ Upstream commit eadf52cf1852196a1363044dcda22fa5d7f296f7 ]
This patch is to improve the tun_info options_len by dropping
the skb when TUNNEL_VXLAN_OPT is set but options_len is less
than vxlan_metadata. This can void a potential out-of-bounds
access on ip_tun_info.
Fixes: ee122c79d422 ("vxlan: Flow based tunneling")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
0 files changed, 0 insertions, 0 deletions