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)
Sun, Mar 2, 10:24 PM
Unknown Object (File)
Thu, Feb 20, 3:31 AM
Unknown Object (File)
Feb 6 2025, 7:17 AM
Unknown Object (File)
Jan 16 2025, 7:56 PM
Unknown Object (File)
Jan 16 2025, 5:16 PM
Unknown Object (File)
Jan 9 2025, 1:16 PM
Unknown Object (File)
Dec 30 2024, 6:44 AM
Unknown Object (File)
Dec 21 2024, 5:18 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