NetBSD Problem Report #9674

Received: (qmail 8065 invoked from network); 26 Mar 2000 10:21:56 -0000
Message-Id: <200003261021.FAA02876@lop-nor.ihack.net>
Date: Sun, 26 Mar 2000 05:21:51 -0500 (EST)
From: root@ihack.net
Reply-To: root@ihack.net
To: gnats-bugs@gnats.netbsd.org
Subject: Bugs and documentation errors in racoon(8)
X-Send-Pr-Version: 3.95

>Number:         9674
>Category:       security
>Synopsis:       Bugs and documentation errors in racoon(8)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    itojun
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 26 02:24:00 +0000 2000
>Closed-Date:    Sun Dec 31 07:23:30 +0000 2000
>Last-Modified:  Sun Dec 31 07:23:30 +0000 2000
>Originator:     Charles M. Hannum
>Release:        -current as of 20000321
>Organization:
	Internetwork Hacker
>Environment:
	n/a

>Description:
	There are many bugs in both the implementation and the
	documentation of racoon(8).  Namely:

FIXED	* The example does not show any `encryption_algorithm' or
FIXED	  `authentication_algorithm' in the `proposal esp' stanza, but
FIXED	  the former is required.  If it is not present, the proposal
FIXED	  is not linked into the policy structure, and the IPsec-SA
FIXED	  fails by failing to send any packets and timing out (a very
FIXED	  difficult problem to analyze).

FIXED	* I have not been able to get the IPsec-SA negotiation to work
FIXED	  when a pfs_group is specified (as in the example).

FIXED	* The syntax description lists `nonce_size' as a valid
FIXED	  statement in a protocol stanza, but it is not accepted by the
FIXED	  parser.

FIXED	* The documentation does not mention that a SPD entry must be
FIXED	  added separately (i.e. with setkey(8)) for IPsec-SA
FIXED	  negotiation to work at all.  (This is also lame.  racoon(8)
FIXED	  should be able to generate the SPD entries itself.)

FIXED	* In cases where we are unable to communicate after a SAD entry
FIXED	  is created (e.g. because of a mismatch between the manually
FIXED	  added SPD entries and racoon.conf(5), or because of a
FIXED	  configuration error), we keep adding more and more SAD
FIXED	  entries.

	* The byte count soft limit does not appear to do anything.

NON ISSUE - byte lifetime has to be used with time lifetime,
there is problem in spec.  FIXED - delete payload handling got improved.
	* When the byte count hard limit is exceeded, the SAD entry is
	  deleted.  However, this leaves the SAD entry in the other
	  direction around.  When a packet is sent in the one direction
	  again, a new IPsec-SA is negotiated, resulting in a new pair
	  of SAD entries.  The unpaired SAD entry is still retained.
	  It eventually hits its soft limit and causes a second complete
	  pair to be negotiated, leaving two pairs of SAD entries for
	  the same two hosts.  There should only be one pair, except
	  when rekeying.

FIXED	* When using NFS with IPsec (between an i386 and a hpcmips),
FIXED	  with a key lifetime of 10m, between the soft limit (8m) and
FIXED	  the hard limit -- while rekeying is happening -- NFS traffic
FIXED	  is completely stalled.

	* No useful diagnostics are produced when a key is missing from
	  the pre-shared-key file.

>How-To-Repeat:
	Try to use racoon(8).

>Fix:
	None provided.
>Release-Note:
>Audit-Trail:

From: "Charles M. Hannum" <root@ihack.net>
To: gnats-bugs@gnats.netbsd.org
Cc:  Subject: Re: security/9674: Bugs and documentation errors in racoon(8)
Date: Sun, 26 Mar 2000 11:03:58 -0500 (EST)

	Just discovered another problem:

FIXED	* Since racoon(8) ignores a `protocol esp' stanza with no
FIXED	  authentication_algorithm, I am forced to use ESP authentication even
FIXED	  when using AH.  This is a performance lose.


From: "Charles M. Hannum" <root@ihack.net>
To: gnats-bugs@gnats.netbsd.org
Cc:  Subject: Re: security/9674
Date: Sun, 26 Mar 2000 13:38:12 -0500 (EST)

 The pfs_group problem appears to have been due to something else.
 It's now working okay with pfs_group.

 I've also fixed the problem with proposals silently being ignored due
 to algorithms not being specified.  At the same time, this made ESP
 without authentication (e.g. so you can do ESP+AH) work.

 Itojun fixed some of the documentation issues.

 This still leaves a number of open issues.  The ones I am most
 concerned about fixing are:

 * lossage modes where many SAs are created but no traffic gets through
 * stalls
 * automatically create SPD entries

 With these problems/deficiencies fixed, racoon will actually be useful
 to mere mortals.


From: "Charles M. Hannum" <root@ihack.net>
To: gnats-bugs@gnats.netbsd.org
Cc:  Subject: Re: security/9674
Date: Sun, 26 Mar 2000 15:43:12 -0500 (EST)

 The stalling problem was due to the old timeout code hard-coding a
 delay of 100 ticks between key_timehandler() calls.  This caused the
 entries to time out too quickly on most platforms (e.g. hpcmips, with
 hz==128).  This is already fixed with the new callout handling.

State-Changed-From-To: open->suspended 
State-Changed-By: sommerfeld 
State-Changed-When: Tue Jun 6 04:57:48 PDT 2000 
State-Changed-Why:  
racoon was taken out of the build 

Wed Dec 27 04:16:06 PST 2000
itojun
couple of comments.
State-Changed-From-To: suspended->closed 
State-Changed-By: itojun 
State-Changed-When: Sat Dec 30 23:22:31 PST 2000 
State-Changed-Why:  
the problem is no longer there with the latest racoon code.  if you still see problem with the latest code, 
open a new PR again. 


Responsible-Changed-From-To: security-officer->itojun 
Responsible-Changed-By: itojun 
Responsible-Changed-When: Sat Dec 30 23:22:31 PST 2000 
Responsible-Changed-Why:  
mine 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.