Page MenuHomeFreeBSD

sctp: Release the socket reference when detaching an association
ClosedPublic

Authored by markj on Aug 31 2021, 4:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 10:07 PM
Unknown Object (File)
Wed, Oct 23, 3:22 PM
Unknown Object (File)
Fri, Oct 18, 6:39 PM
Unknown Object (File)
Fri, Oct 18, 6:39 PM
Unknown Object (File)
Fri, Oct 18, 6:38 PM
Unknown Object (File)
Fri, Oct 18, 6:25 PM
Unknown Object (File)
Oct 12 2024, 9:55 PM
Unknown Object (File)
Sep 29 2024, 7:28 AM
Subscribers

Details

Summary

Later in sctp_free_assoc(), when we clean up chunk lists,
sctp_free_spbufspace() is used to reset the byte count in the socket
send buffer. However, if the PCB is going away, the socket may already
have been detached from the PCB, in which case this becomes a use-after
free. Clear the socket reference from the association before detaching
it from the PCB, if the PCB has already lost its socket reference.

Diff Detail

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