ip: reassembly: fix use-after-free 53/22953/2
authorBenoît Ganne <bganne@cisco.com>
Wed, 23 Oct 2019 11:53:49 +0000 (13:53 +0200)
committerOle Trøan <otroan@employees.org>
Mon, 28 Oct 2019 09:13:50 +0000 (09:13 +0000)
commitcf7803d2e864fb71f14943a544ac309d3d0510cb
tree2c12f423d25fe37c2596a31b8e09742d95628e77
parent1b1ccadc900deffd7b8e306ae8dce79a3115778c
ip: reassembly: fix use-after-free

When processing the last buffer of a reassembled packet, the current
buffer will be freed and must be reloaded using the updated index.

Type: fix

Change-Id: Ib39e29e60eb527b4cd4828a3aa37d82c8dddd709
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/vnet/ip/reass/ip4_full_reass.c
src/vnet/ip/reass/ip6_full_reass.c