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

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

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

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

commit 2fb377976493cd961dfe1908d1c565742e79bb4a
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:54:30 +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:56:47 UTC

Original text of this message