[Bug 221201] [pf] Prevent possible endless loop when searching for an unused nat port

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Aug 3 13:05:57 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221201

            Bug ID: 221201
           Summary: [pf] Prevent possible endless loop when searching for
                    an unused nat port
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch, security
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: fk at fabiankeil.de
             Flags: mfc-stable10?, mfc-stable11?

Created attachment 184989
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=184989&action=edit
pf_pf_get_sport(): Prevent possible endless loop when searching for an unused
nat port

Attached is a "port" of Alexander Bluhm's OpenBSD commit r1.60.
The first chunk had to be modified because on OpenBSD the
'cut' declaration is located elsewhere.

OpenBSD commit message:
 Use a 32 bit variable to detect integer overflow when searching for
 an unused nat port.  Prevents a possible endless loop if high port
 is 65535 or low port is 0.
 report and analysis Jingmin Zhou; OK sashan@ visa@
Quoted from: https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/net/pf_lb.c

Upstream report by Jingmin Zhou:
https://marc.info/?l=openbsd-pf&m=150020133510896&w=2

Obtained from: OpenBSD via ElectroBSD

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list