Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jul 2002 02:49:18 -0700 (PDT)
From:      Ville-Pertti Keinonen <will@iki.fi>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/40331: libalias bug causes natd crashes
Message-ID:  <200207080949.g689nITC069923@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         40331
>Category:       misc
>Synopsis:       libalias bug causes natd crashes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 08 02:50:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ville-Pertti Keinonen
>Release:        -current
>Organization:
>Environment:
>Description:
In src/lib/libalias/alias_db.c, when using NEW_IPFW, ClearFWHole doesn't check whether firewall-hole-punching is enabled and fw_clrfield may dereference a NULL-pointer.
>How-To-Repeat:

>Fix:
I worked around the problem by compiling libalias with -DNO_FW_PUNCH to get a working natd for my own use.

The correct solution is to verify either that hole-punching is enabled or that fwhole is non-negative before fw_clrfield.  There may well be other places like this.  I'd rather not take the time to check since this is probably code that is actively undergoing changes, anyhow.
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207080949.g689nITC069923>