Page MenuHomeFreeBSD

sctp: Always check for a vanishing inpcb when processing COOKIE-ECHO
ClosedPublic

Authored by markj on Aug 31 2021, 4:18 PM.
Tags
None
Referenced Files
F166612676: D31755.id94493.diff
Fri, Aug 14, 9:10 PM
F166612365: D31755.id94442.diff
Fri, Aug 14, 9:08 PM
Unknown Object (File)
Thu, Aug 13, 8:37 PM
Unknown Object (File)
Tue, Aug 11, 4:28 PM
Unknown Object (File)
Tue, Aug 11, 2:31 AM
Unknown Object (File)
Mon, Aug 10, 4:50 PM
Unknown Object (File)
Mon, Aug 10, 2:19 PM
Unknown Object (File)
Sun, Aug 9, 1:38 PM
Subscribers

Details

Summary

We previously did this only in the normal case where no association
exists yet. However, it is not safe to process COOKIE-ECHO even if an
association exists, as sctp_process_cookie_existing() may dereference
the socket pointer.

See also commit 0c7dc84076b64ef74c24f04400d572f75ef61bb4. I'm not 100%
sure that this is the right fix.

Diff Detail

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