Page MenuHomeFreeBSD

Return error code if no matching SA was found
ClosedPublic

Authored by wma on Jul 2 2021, 4:41 AM.
Tags
None
Referenced Files
F171461100: D30994.diff
Fri, Sep 11, 5:57 AM
Unknown Object (File)
Thu, Sep 10, 9:20 PM
Unknown Object (File)
Mon, Aug 31, 12:23 PM
Unknown Object (File)
Sun, Aug 30, 3:42 PM
Unknown Object (File)
Wed, Aug 26, 10:33 AM
Unknown Object (File)
Tue, Aug 18, 12:01 AM
Unknown Object (File)
Aug 12 2026, 4:59 PM
Unknown Object (File)
Aug 10 2026, 1:10 PM
Subscribers

Details

Summary

If we matched SP to a packet, but no associated SA was found
ipsec4_allocsa will return NULL while setting error=0.
This resulted in use after free and potential kernel panic.
Return EINPROGRESS if the case described above instead.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

wma requested review of this revision.Jul 2 2021, 4:41 AM
This revision was not accepted when it landed; it landed in state Needs Review.Aug 13 2021, 7:37 AM
This revision was automatically updated to reflect the committed changes.