Date: Fri, 8 Jan 2021 18:32:32 GMT From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 501159696cb5 - main - igmp: Avoid leaking mbuf when source validation fails Message-ID: <202101081832.108IWW66056847@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=501159696cb5204d94d03393e4bc5d82f2e348e6 commit 501159696cb5204d94d03393e4bc5d82f2e348e6 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2021-01-08 18:32:04 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2021-01-08 18:32:04 +0000 igmp: Avoid leaking mbuf when source validation fails PR: 252504 Submitted by: Panagiotis Tsolakos <panagiotis.tsolakos@gmail.com> MFC after: 3 days --- sys/netinet/igmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/netinet/igmp.c b/sys/netinet/igmp.c index ce4dc1c57842..21bce1ff885a 100644 --- a/sys/netinet/igmp.c +++ b/sys/netinet/igmp.c @@ -1589,6 +1589,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); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101081832.108IWW66056847>