ip: fix use-after-free in reassembly 00/22500/2
authorBenoît Ganne <bganne@cisco.com>
Fri, 19 Jul 2019 11:42:12 +0000 (13:42 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 3 Oct 2019 16:14:36 +0000 (16:14 +0000)
commitf2c754caa90e8f16aa545cac99ead4bf4437aa44
tree9d301c65c16681fdb59a1f4b7682974e610bfc17
parentbebbd7f62d7f1c0286747d75e11d84bd9d792698
ip: fix use-after-free in reassembly

 - ip{4,6}_reass_finalize() frees the reassembly context: do not access
it after the call.
 - traces access reassembly context: free it after and not before
tracing.

Type: fix

Change-Id: Ia3aaea9c7b74932e249e013be04b9bd7298fd187
Signed-off-by: Benoît Ganne <bganne@cisco.com>
(cherry picked from commit 2d0ebd7ebc555565868038a09d80a61f5de29430)
src/vnet/ip/reass/ip4_full_reass.c
src/vnet/ip/reass/ip6_full_reass.c