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
F97409666: D31755.diff
Sun, Sep 29, 3:26 AM
Unknown Object (File)
Thu, Sep 19, 2:45 AM
Unknown Object (File)
Wed, Sep 18, 12:29 PM
Unknown Object (File)
Fri, Sep 13, 7:10 PM
Unknown Object (File)
Wed, Sep 4, 6:25 PM
Unknown Object (File)
Jul 2 2024, 8:51 PM
Unknown Object (File)
Jul 1 2024, 1:13 AM
Unknown Object (File)
Jun 15 2024, 2:25 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