[Bug 255859] ipfilter/netinent: ip_nat memory leak and use-after-free

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 03 Jun 2021 00:58:49 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255859

--- Comment #8 from commit-hook_at_FreeBSD.org ---
A commit in branch stable/12 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=c8773c8018e74a34a5d9e7ec6d66f4311148f975

commit c8773c8018e74a34a5d9e7ec6d66f4311148f975
Author:     Cy Schubert <cy_at_FreeBSD.org>
AuthorDate: 2021-05-25 18:54:49 +0000
Commit:     Cy Schubert <cy_at_FreeBSD.org>
CommitDate: 2021-06-03 00:57:45 +0000

    ipfilter: Fix ip_nat memory leak and use-after-free

    Unfortunately the wrong elemet is freed, also resulting in use-after-free.

    PR:             255859
    Submitted by:   lylgood_at_foxmail.com
    Reported by:    lylgood_at_foxmail.com

    (cherry picked from commit 323a4e2c4e285e6f8eee8db3fe2cb7490a734da0)

 sys/contrib/ipfilter/netinet/ip_nat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Thu Jun 03 2021 - 00:58:49 UTC

Original text of this message