android_kernel_oneplus_msm8998/net/openvswitch
Ross Lagerwall e5c13a9c75 openvswitch: Avoid OOB read when parsing flow nlattrs
[ Upstream commit 04a4af334b971814eedf4e4a413343ad3287d9a9 ]

For nested and variable attributes, the expected length of an attribute
is not known and marked by a negative number.  This results in an OOB
read when the expected length is later used to check if the attribute is
all zeros. Fix this by using the actual length of the attribute rather
than the expected length.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-02-06 19:43:03 +01:00
..
actions.c openvswitch: use flow protocol when recalculating ipv6 checksums 2016-05-18 17:06:36 -07:00
conntrack.c openvswitch: Delete conntrack entry clashing with an expectation. 2018-03-24 10:58:43 +01:00
conntrack.h
datapath.c
datapath.h
dp_notify.c
flow.c
flow.h
flow_netlink.c openvswitch: Avoid OOB read when parsing flow nlattrs 2019-02-06 19:43:03 +01:00
flow_netlink.h
flow_table.c
flow_table.h
Kconfig
Makefile
vport-geneve.c
vport-gre.c
vport-internal_dev.c
vport-internal_dev.h
vport-netdev.c net: use skb_postpush_rcsum instead of own implementations 2016-05-18 17:06:36 -07:00
vport-netdev.h
vport-vxlan.c vxlan, gre, geneve: Set a large MTU on ovs-created tunnel devices 2016-06-24 10:18:18 -07:00
vport.c
vport.h net: use skb_postpush_rcsum instead of own implementations 2016-05-18 17:06:36 -07:00