]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: fix potential out of bound access in parse_ct
authorLiping Zhang <zlpnobody@gmail.com>
Sun, 23 Jul 2017 09:52:23 +0000 (17:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jul 2017 23:25:06 +0000 (16:25 -0700)
commitd8709a350d8c30a2ce4b06afeb1d855be46f24ac
tree4adb13e0bebc06b4c9040ffa15ebc9421ca615a7
parent2326644551f822670c95da2a1c7acbda2107c930
openvswitch: fix potential out of bound access in parse_ct

Before the 'type' is validated, we shouldn't use it to fetch the
ovs_ct_attr_lens's minlen and maxlen, else, out of bound access
may happen.

Fixes: 14a5d06d39dd ("openvswitch: Add conntrack action")
Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/conntrack.c