The branch stable/12 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=44851ff2f65de3bdf3b3fa469a7bb5546e77e170
commit 44851ff2f65de3bdf3b3fa469a7bb5546e77e170 Author: Mark Johnston <[email protected]> AuthorDate: 2021-01-08 18:32:04 +0000 Commit: Mark Johnston <[email protected]> CommitDate: 2021-01-11 14:41:55 +0000 igmp: Avoid leaking mbuf when source validation fails PR: 252504 Submitted by: Panagiotis Tsolakos <[email protected]> (cherry picked from commit 501159696cb5204d94d03393e4bc5d82f2e348e6) --- sys/netinet/igmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/netinet/igmp.c b/sys/netinet/igmp.c index 6f35f8156d23..a68a5a1ca9dd 100644 --- a/sys/netinet/igmp.c +++ b/sys/netinet/igmp.c @@ -1533,6 +1533,7 @@ igmp_input(struct mbuf **mp, int *offp, int proto) if (nsrc * sizeof(in_addr_t) > UINT16_MAX - iphlen - IGMP_V3_QUERY_MINLEN) { IGMPSTAT_INC(igps_rcv_tooshort); + m_freem(m); return (IPPROTO_DONE); } /* _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all To unsubscribe, send any mail to "[email protected]"
