HomeFreeBSD

ipsec esp: avoid dereferencing freed secasindex

Description

ipsec esp: avoid dereferencing freed secasindex

It is possible that SA was removed while processing packed, in which
case it is changed to the DEAD state and it index is removed from the
tree. Dereferencing sav->sah then touches freed memory.

Reviewed by: ae
Sponsored by: NVIDIA networking
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D44079

Details

Provenance
kibAuthored on Feb 25 2024, 10:30 AM
Reviewer
ae
Differential Revision
D44079: ipsec esp: avoid dereferencing freed secasindex
Parents
rG1b3f4ccb7dd8: loader: we can only env_discard() existing variable
Branches
Unknown
Tags
Unknown