ip: reassembly: fix use-after-free 46/23246/2
authorBenoît Ganne <bganne@cisco.com>
Wed, 23 Oct 2019 11:53:49 +0000 (13:53 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Fri, 15 Nov 2019 07:15:07 +0000 (07:15 +0000)
commit82ae1a485ecb6e541134f49ebe3aa322deb60c89
treedab3bb40c4c456c40982e1e8711f48f27803c87b
parent442870c03a882d5cb3d4fb1f1e3d61a09cb6c1dc
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>
(cherry picked from commit cf7803d2e864fb71f14943a544ac309d3d0510cb)
src/vnet/ip/reass/ip4_full_reass.c
src/vnet/ip/reass/ip6_full_reass.c