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
Unknown Object (File)
Wed, Dec 31, 6:53 AM
Unknown Object (File)
Sun, Dec 28, 8:53 PM
Unknown Object (File)
Wed, Dec 10, 9:18 PM
Unknown Object (File)
Tue, Dec 9, 6:39 PM
Unknown Object (File)
Nov 28 2025, 4:19 PM
Unknown Object (File)
Nov 26 2025, 4:30 AM
Unknown Object (File)
Nov 25 2025, 9:58 AM
Unknown Object (File)
Nov 17 2025, 9:28 AM
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