diff options
author | Vladimir Isaev <visaev@netgate.com> | 2020-10-06 12:59:47 +0300 |
---|---|---|
committer | Matthew Smith <mgsmith@netgate.com> | 2020-10-12 15:00:04 +0000 |
commit | d3252adce29e45611cbe2a43b2d37758a864a429 (patch) | |
tree | 24bfc8b4b78cc46fa1f39cf48566e7efff41b940 /src/vlib/log.h | |
parent | 41bda044877bae25c5b584a5444c2a038a98e3a9 (diff) |
nat: set fib index for bypass session
Bihash key already contains rx_fib_index for lookup
but fib value for session itself is set to 0.
In the result bihash is allocated with key with fib index
set, but free function is looking for key with fib index set
to zero. It leads to use-after-free because session itself is
removed from pool but bihash is not because of key mismatch.
Type: fix
Signed-off-by: Vladimir Isaev <visaev@netgate.com>
Change-Id: I8ac5a41b0a5a32b1baab9e9d757141d5b24b7798
Diffstat (limited to 'src/vlib/log.h')
0 files changed, 0 insertions, 0 deletions