commit | eadf52cf1852196a1363044dcda22fa5d7f296f7 | [log] [tgz] |
---|---|---|
author | Xin Long <lucien.xin@gmail.com> | Tue Oct 29 01:24:32 2019 +0800 |
committer | David S. Miller <davem@davemloft.net> | Tue Oct 29 17:39:26 2019 -0700 |
tree | a8905a9be405f6f988683a689ac62df2c96fc618 | |
parent | 2eb8d6d2910cfe3dc67dc056f26f3dd9c63d47cd [diff] |
vxlan: check tun_info options_len properly 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>