From owner-freebsd-bugs@FreeBSD.ORG Thu Jul 7 09:10:12 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2C9F16A41F for ; Thu, 7 Jul 2005 09:10:12 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E71E143D58 for ; Thu, 7 Jul 2005 09:10:11 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j679ABur054233 for ; Thu, 7 Jul 2005 09:10:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j679ABY4054232; Thu, 7 Jul 2005 09:10:11 GMT (envelope-from gnats) Resent-Date: Thu, 7 Jul 2005 09:10:11 GMT Resent-Message-Id: <200507070910.j679ABY4054232@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrey Simonenko Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55DD716A41C for ; Thu, 7 Jul 2005 09:09:16 +0000 (GMT) (envelope-from simon@comsys.ntu-kpi.kiev.ua) Received: from comsys.ntu-kpi.kiev.ua (comsys.ntu-kpi.kiev.ua [195.245.194.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD8A943D49 for ; Thu, 7 Jul 2005 09:09:00 +0000 (GMT) (envelope-from simon@comsys.ntu-kpi.kiev.ua) Received: from pm514-9.comsys.ntu-kpi.kiev.ua (pm514-9.comsys.ntu-kpi.kiev.ua [10.18.54.109]) (authenticated bits=0) by comsys.ntu-kpi.kiev.ua (8.12.10/8.12.10) with ESMTP id j679FA61067527 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 7 Jul 2005 12:15:10 +0300 (EEST) Received: by pm514-9.comsys.ntu-kpi.kiev.ua (Postfix, from userid 1000) id 57ED812D; Thu, 7 Jul 2005 12:07:09 +0300 (EEST) Message-Id: <20050707090709.GA384@pm514-9.comsys.ntu-kpi.kiev.ua> Date: Thu, 7 Jul 2005 12:07:09 +0300 From: Andrey Simonenko To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: bin/83085: [patch] double free() in openpam X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jul 2005 09:10:13 -0000 >Number: 83085 >Category: bin >Synopsis: [patch] double free() in openpam >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jul 07 09:10:11 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Andrey Simonenko >Release: FreeBSD 5.4-RELEASE-p1 i386 >Organization: >Environment: >Description: Double free() in openpam library was found. >How-To-Repeat: Add something like this to /etc/pam.d/login: ---------------- auth required pam_nologin.so wrong line ---------------- and try to login in another console (and don't forget to restore /etc/pam.d/login after test!). >Fix: diff -ruN openpam.orig/lib/openpam_configure.c openpam/lib/openpam_configure.c --- openpam.orig/lib/openpam_configure.c Wed Jul 6 19:15:00 2005 +++ openpam/lib/openpam_configure.c Wed Jul 6 20:16:43 2005 @@ -327,7 +327,6 @@ } return (PAM_SUCCESS); load_err: - openpam_clear_chains(pamh->chains); return (PAM_SYSTEM_ERR); } >Release-Note: >Audit-Trail: >Unformatted: