First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 113201
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Sune Kloppenborg Jeppesen <jaervosz@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
ipsec-tools-0.6.2-dos-fix.diff-15356.out patch output text/plain Simon Stelling (RETIRED) 2005-12-03 02:56 0000 3.28 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 113201 depends on: Show dependency tree
Bug 113201 blocks:

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-11-21 14:18 0000
Hi all. 
 
A few days ago, we had lots of discussions about the "PROTOS" IKE test 
suite [1], and about a global "IKE implementations vulnerabilities". 
 
Adrian Portelli from NetBSD team reported us three test cases which 
could lead to a racoon crash (access to a NULL pointer). I could only 
reproduce one of them on my own test configuration, for unknown 
reasons. 
 
 
A few details about those test cases: 
 
1) All three are based on AGGRESSIVE mode. 
 
2) All three require a very weak racoon configuration (no lifetime 
   proposal or obey mode). 
 
3) All three require racoon's configuration to be 3DES/SHA1/DH2. 
 
4) All three DO NOT require valid identifier/PSK 
 
Note that conditions 2 and 3 are just specific to the test suite which 
was used, other programs may have other default proposals or may 
bruteforce various proposals. 
 
 
The two crashes heppens because there was no check in aggressive mode 
code to ensure that we got specific payloads from the peer. 
 
The IKE exchanges don't provide those payloads, pointers stays NULL, 
and we have a crash later in the code when trying to access NULL 
memory. 
 
Payload existency check was already present in main mode. 
 
 
So the problem is "minor", as it can "just" lead to a racoon crash, 
and as it requires a configuration which is quite weak, which is known 
to have some other security problems, and which should NOT be used ! 
 
 
On friday, I sent a first mail on the lists to see if people needed 
some time to generate new packages, but I had no answers. 
 
 
So I just commited the fix on HEAD and Branch 0.6 (if people needs it 
on other branchs, it's trivial to backport). It will be included in 
version 0.6.3, which should be released very quickly. 
 
 
Adrian and I both ran all the test suite without noticing any other 
problems. 
 
 
 
[1] http://www.ee.oulu.fi/research/ouspg/protos/testing/c09/isakmp 
 
 
Yvan.

------- Comment #1 From Sune Kloppenborg Jeppesen 2005-11-21 14:19:21 0000 -------
Patch that fix the issue is available here: 
 
http://cvs.sourceforge.net/viewcvs.py/ipsec-tools/ipsec-tools/src/racoon/isakmp_agg.c?r1=1.20.2.3&r2=1.20.2.4 

------- Comment #2 From Thierry Carrez (RETIRED) 2005-11-22 00:55:28 0000 -------
Ccing maintainer

------- Comment #3 From Thierry Carrez (RETIRED) 2005-11-30 08:08:05 0000 -------
From http://ipsec-tools.sourceforge.net/
2005-11-21
    IPsec-tools 0.6.3 released and contains fixes for various DoS problems

Maintainer: please bump or apply patch.

------- Comment #4 From Peter Johanson (RETIRED) 2005-12-02 01:20:32 0000 -------
0.6.3 is bumped in portage and I've added 0.6.2-r1 to portage that includes the
patch. Since 0.6.2 has been in the tree an acceptible time, and has proven fine
for my use, I suggest we move for the three affected arches to mark 0.6.2-r1
stable on all 3 arches to get the fix pushed to users.

(Will leave security folks to CCing arches if they agree on course of action)

------- Comment #5 From Thierry Carrez (RETIRED) 2005-12-02 01:23:29 0000 -------
Archs please test and mark 0.6.2-r1 stable

------- Comment #6 From Jason Wever (RETIRED) 2005-12-02 16:11:20 0000 -------
On SPARC, we'll need a bumped version of 0.4 (due to us not having 2.6 headers
available in the default profiles).  The first hunk in the patch fails (which is
OK since its just comments) but the 2nd and 3rd apply fine, so with a little
touch-up it should apply easily.

------- Comment #7 From Thierry Carrez (RETIRED) 2005-12-03 01:59:32 0000 -------
Back to ebuild to bump 0.4 for sparc.
x86/amd64 should still mark 0.6.2-r1 stable.

------- Comment #8 From Simon Stelling (RETIRED) 2005-12-03 02:55:06 0000 -------
at least on amd64:
 * Applying ipsec-tools-0.6.2-dos-fix.diff ...

 * Failed Patch: ipsec-tools-0.6.2-dos-fix.diff !
 *  ( /usr/portage/net-firewall/ipsec-tools/files/ipsec-tools-0.6.2-dos-fix.diff )

will attach the log

------- Comment #9 From Simon Stelling (RETIRED) 2005-12-03 02:56:37 0000 -------
Created an attachment (id=73976) [edit]
patch output

------- Comment #10 From Peter Johanson (RETIRED) 2005-12-03 11:24:33 0000 -------
Argh. The patch got borked by the CVS commit, since there was an $Id$ header
from the patch I pulled from SF CVS. Sorry about that, it's fixed in portage now.

------- Comment #11 From Peter Johanson (RETIRED) 2005-12-03 11:34:54 0000 -------
Weeve: Ok, you've got 0.4-r2 in portage now with the included fix.

------- Comment #12 From Simon Stelling (RETIRED) 2005-12-04 05:33:25 0000 -------
looks fine on amd64 now

------- Comment #13 From Jason Wever (RETIRED) 2005-12-04 12:20:56 0000 -------
0.4-r2 stable on SPARC

------- Comment #14 From Peter Johanson (RETIRED) 2005-12-04 14:23:03 0000 -------
Marked 0.6.2-r2 stable on x86 (and removing their CC) at Halcy0n's request.

------- Comment #15 From Sune Kloppenborg Jeppesen 2005-12-05 12:50:53 0000 -------
This one is ready for GLSA vote. I tend to vote NO. 

------- Comment #16 From Thierry Carrez (RETIRED) 2005-12-06 04:54:39 0000 -------
We should do one since we do one with openswan... which is the same
vulnerability. Maybe a grouped one ?

------- Comment #17 From Thierry Carrez (RETIRED) 2005-12-09 07:02:02 0000 -------
Grouped GLSA drafted. Just needs another review.

------- Comment #18 From Thierry Carrez (RETIRED) 2005-12-12 06:55:06 0000 -------
GLSA 200512-04

First Last Prev Next    No search results available      Search page      Enter new bug