From bear@coyotesong.com Sat Jan 8 15:40:11 2000 Received: from MIT.EDU (SOUTH-STATION-ANNEX.MIT.EDU [18.72.1.2]) by rt-11.mit.edu (8.9.3/8.9.3) with SMTP id PAA01595 for ; Sat, 8 Jan 2000 15:40:11 -0500 (EST) Received: from bgiles.dimensional.com by MIT.EDU with SMTP id AA28610; Sat, 8 Jan 00 15:39:39 EST Received: (from bear@localhost) by eris.coyotesong.com (8.9.3/8.9.3/Debian/GNU) id NAA23226; Sat, 8 Jan 2000 13:39:50 -0700 Message-Id: <200001082039.NAA23226@eris.coyotesong.com> Date: Sat, 8 Jan 2000 13:39:50 -0700 From: bgiles@coyotesong.com Reply-To: bgiles@coyotesong.com To: krb5-bugs@MIT.EDU Cc: Subject: appl/bsd/login.c: attempt to free null ptr X-Send-Pr-Version: 3.99 >Number: 807 >Category: telnet >Synopsis: appl/bsd/login.c attempts to free null pointer >Confidential: no >Severity: critical >Priority: high >Responsible: raeburn >State: closed >Class: sw-bug >Submitter-Id: unknown >Arrival-Date: Sat Jan 8 15:41:01 EST 2000 >Last-Modified: Fri Sep 14 19:13:33 EDT 2001 >Originator: Bear Giles >Organization: Bear Giles bgiles@coyotesong.com >Release: krb5-1.1.1 >Environment: Debian 2.1r5 System: Linux eris 2.2.13 #7 SMP Sat Oct 30 20:57:16 MDT 1999 i686 unknown Architecture: i686 >Description: Problem initially manifested itself with ktelnet/ktelnetd: every attempt to connect was immediately terminated, even with the "-a none" option. I was able to track that problem to the silent failure of login.krb5. >How-To-Repeat: It happens during every attempt to connect. >Fix: I determined that the problem occured near line 1644 in appl/bsd/login.c. krb5_cc_destroy() was called without testing whether xtra_creds is null. The problem was eliminated after moving this call into the prior conditional, with suitable modifications. begin 664 0006 M+2TM(&]L9"]SFEN M9R!C86-H92(I.PH@"7T@96QS92!I9B`H5]C'0L('ATPHM"2`@("!C;VU?97)R*&%R9W9;,%TL M(')E='9A;"P@(G=H:6QE('-T;W)I;F<@8W)E9&5N=&EA;',B*3L**PE](&5L M5]C'1R85]CPHK"0EC;VU?97)R*&%R9W9;,%TL(')E='9A;"P@(G=H:6QE('-T;W)I;F<@ M8W)E9&5N=&EA;',B*3L**PD@("`@?0HK"2`@("!K'0L('AT2AK8V]N=&5X="P@>'1R85]CPH@"6EF("@H MAudit-Trail: Responsible-Changed-From-To: hartmans->raeburn Responsible-Changed-By: raeburn Responsible-Changed-When: Mon Feb 21 16:27:51 2000 Responsible-Changed-Why: I'll take it... State-Changed-From-To: open-feedback State-Changed-By: raeburn State-Changed-When: Mon Feb 21 16:27:56 2000 State-Changed-Why: We got a slightly different patch for this from someone else. In any case, it should be fixed in 1.2.... State-Changed-From-To: feedback-closed State-Changed-By: tlyu State-Changed-When: Fri Sep 14 19:13:13 2001 State-Changed-Why: has been fixed for a while; closing. >Unformatted: