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)
Mon, Oct 13, 2:30 PM
Unknown Object (File)
Sun, Sep 28, 8:12 AM
Unknown Object (File)
Thu, Sep 18, 12:13 AM
Unknown Object (File)
Sep 9 2025, 4:45 PM
Unknown Object (File)
Sep 4 2025, 8:46 PM
Unknown Object (File)
Aug 30 2025, 11:15 AM
Unknown Object (File)
Aug 27 2025, 2:27 PM
Unknown Object (File)
Aug 27 2025, 1:58 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