Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Sep 2001 14:33:43 -0700 (PDT)
From:      Edward Counce <edward.counce@celion.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/30357: core dump in libpam.so when parsing config file
Message-ID:  <200109052133.f85LXhF25302@freefall.freebsd.org>

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

>Number:         30357
>Category:       bin
>Synopsis:       core dump in libpam.so when parsing config file
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 05 14:40:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Edward Counce
>Release:        4.3-RELEASE
>Organization:
Celion Networks, Inc.
>Environment:
FreeBSD ecounce 4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT 2001     jkh@narf.osd.bsdi.com:/usr/src/sys/compile/GENERIC  i386
>Description:
While parsing the configuration file, numeric (jump) actions in the newer control flag syntax may cause a core dump.

>How-To-Repeat:
add to /etc/pam.conf:

sshd auth [success=1 default=ignore] pam_tacplus.so

>Fix:
Index: pam_misc.c
===================================================================
RCS file: /home/ncvs/src/contrib/libpam/libpam/pam_misc.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 pam_misc.c
--- pam_misc.c  18 Nov 1998 01:16:19 -0000      1.1.1.1
+++ pam_misc.c  5 Sep 2001 21:16:36 -0000
@@ -278,7 +278,7 @@
        }

        /* observe action type */
-       for (act=0; act<=-_PAM_ACTION_UNDEF; ++act) {
+       for (act=0; act<-_PAM_ACTION_UNDEF; ++act) {
            len = strlen(_pam_token_actions[act]);
            if (!strncmp(_pam_token_actions[act], tok, len)) {
                act *= -1;
>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?200109052133.f85LXhF25302>