svn commit: r360737 - stable/11/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Thu May 7 01:43:22 UTC 2020
Author: tuexen
Date: Thu May 7 01:43:21 2020
New Revision: 360737
URL: https://svnweb.freebsd.org/changeset/base/360737
Log:
MFC r352652: Fix memory leak
Plumb a memory leak.
Thnanks to Felix Weinrank for finding this issue using fuzz testing
and reporting it for the userland stack:
https://github.com/sctplab/usrsctp/issues/378
Modified:
stable/11/sys/netinet/sctp_indata.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/netinet/sctp_indata.c
==============================================================================
--- stable/11/sys/netinet/sctp_indata.c Thu May 7 01:37:42 2020 (r360736)
+++ stable/11/sys/netinet/sctp_indata.c Thu May 7 01:43:21 2020 (r360737)
@@ -470,6 +470,11 @@ sctp_clean_up_control(struct sctp_tcb *stcb, struct sc
chk->data = NULL;
sctp_free_a_chunk(stcb, chk, SCTP_SO_NOT_LOCKED);
}
+ sctp_free_remote_addr(control->whoFrom);
+ if (control->data) {
+ sctp_m_freem(control->data);
+ control->data = NULL;
+ }
sctp_free_a_readq(stcb, control);
}
More information about the svn-src-stable-11
mailing list