summaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_gre.c
diff options
context:
space:
mode:
authorRoss Lagerwall <ross.lagerwall@citrix.com>2019-01-14 09:16:56 +0000
committerDavid S. Miller <davem@davemloft.net>2019-01-16 13:35:21 -0800
commit04a4af334b971814eedf4e4a413343ad3287d9a9 (patch)
treedc4196a9e798d5f2bc2ebbeddb9b80717882687a /net/ipv4/ip_gre.c
parent9098f21f4cc0f13bc0caa747590e53479c267405 (diff)
downloadlinux-stable-04a4af334b971814eedf4e4a413343ad3287d9a9.tar.gz
linux-stable-04a4af334b971814eedf4e4a413343ad3287d9a9.tar.bz2
linux-stable-04a4af334b971814eedf4e4a413343ad3287d9a9.zip
openvswitch: Avoid OOB read when parsing flow nlattrs
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>
Diffstat (limited to 'net/ipv4/ip_gre.c')
0 files changed, 0 insertions, 0 deletions