Date: Fri, 14 May 2021 14:06:22 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 255878] [PATCH] netpfil/ipfw: Fix a double free in aqm_pie_enqueue Message-ID: <bug-255878-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255878 Bug ID: 255878 Summary: [PATCH] netpfil/ipfw: Fix a double free in aqm_pie_enqueue Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: lylgood@foxmail.com Created attachment 224941 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D224941&action= =3Dedit avoid the double free Bug File: sys/netpfil/ipfw/dn_aqm_pie.c In function aqm_pie_enqueue, m is freed via m_freem(m) at line 545. But the freed m is freed again by FREE_PKT(m) at line 561. My patch returns the error right away when m_tag_alloc() allocate memory failed, rather than continues to free the m again. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255878-227>