Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 105852
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
snort-PrintTCPHeader.diff Proposed Patch to log.c patch Michaelian Ennis 2005-09-16 20:18 0000 4.89 KB Details | Diff
snort-2.4.0-log.c.diff snort-2.4.0-log.c.diff patch Marcelo Goes 2005-09-16 20:31 0000 4.89 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 105852 depends on: Show dependency tree
Bug 105852 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-09-13 14:12 0000
A vulnerability was found in PrintTcpOptions() function located in  
snort-2.4.0/src/log.c that could allow an attacker to craft a malformed TCP/IP  
packet and potentially cause a DoS in Snort. This is a NULL pointer  
dereference and therefore not exploitable beyond the DoS.  
   
 This vulnerability is only present when Snort is run in verbose mode (using  
the switch -v). If you're running in verbose mode (which you should not be  
doing if you're running a NIDS) then you could be vulnerable. If you're  
running any of the standard NIDS logging modes like database, pcap or unified,  
you're fine.    
   
 Details:  
 An attacker can exploit this vulnerability with malicious TCP traffic  
containing a bad TCP SACK option causing the Snort engine to crash. Restarting  
Snort will cause the engine to return to normal functionality.  
   
 Fix and Workaround Details:  
 A fix for this vulnerability was checked into the Snort 2.4 CVS tree on  
August 23rd, 2005 and is available for download here. This fix will also be  
included in the upcoming 2.4.1 release. Users who do not wish to upgrade can  
simply not run Snort in verbose mode to avoid being vulnerable.

------- Comment #1 From Thierry Carrez (RETIRED) 2005-09-14 02:01:45 0000 -------
netmon: you prefer to wait for 2.4.1 release or patch 2.3.x ?

------- Comment #2 From Benjamin Smee (strerror) (RETIRED) 2005-09-14 02:08:32 0000 -------
I'd be tempted to wait. I think marty will get one out soon.

------- Comment #3 From Michaelian Ennis 2005-09-16 20:18:29 0000 -------
Created an attachment (id=68633) [details]
Proposed Patch to log.c

------- Comment #4 From Marcelo Goes 2005-09-16 20:21:34 0000 -------
We better patch up. 2.4.x series is not ready to be marked stable, its init
script does not work and I remember somebody discussing a different problem in
#gentoo-netmon.

------- Comment #5 From Marcelo Goes 2005-09-16 20:31:32 0000 -------
Created an attachment (id=68634) [details]
snort-2.4.0-log.c.diff

I think this provided patch is actually backwards.
I am working on a 2.4.1 version bump and back-porting a fix to 2.3.3.

------- Comment #6 From Marcelo Goes 2005-09-16 21:15:54 0000 -------
Fixed in >=snort-2.3.3.
Please test and stabilize =snort-2.3.3.
Don't stabilize newer versions nor their unstable libprelude dependencies :-).

------- Comment #7 From Michaelian Ennis 2005-09-16 21:41:01 0000 -------
(From update of attachment 68633 [details])
Yep it's backwards. 

------- Comment #8 From Michaelian Ennis 2005-09-16 21:47:45 0000 -------
(In reply to comment #6)
> Fixed in >=snort-2.3.3.
> Please test and stabilize =snort-2.3.3.
> Don't stabilize newer versions nor their unstable libprelude dependencies :-).

Did you patch the tarball itself?  I don't see the new patch.

------- Comment #9 From Marcelo Goes 2005-09-17 05:32:57 0000 -------
snort-2.3.3.ebuild, line 71, epatch "${FILESDIR}/${P}-log.c.diff"
same patch in 2.3.3-r1
2.4.1 has the fix upstream

------- Comment #10 From Thierry Carrez (RETIRED) 2005-09-17 06:39:29 0000 -------
x86, ppc, please test and mark =2.3.3 stable

------- Comment #11 From Michaelian Ennis 2005-09-17 07:44:32 0000 -------
OK I have it now my mirror must have been out of sync. Builds and runs fine on
amd64.  I tested with an exploit and snort survived the attack.  Interestingly
though the default installed rulebase doesn't appear to have a signature to
detect this.

------- Comment #12 From Michael Hanselmann (hansmi) (RETIRED) 2005-09-17 11:35:25 0000 -------
Stable on ppc.

------- Comment #13 From Mark Loeser 2005-09-21 13:33:25 0000 -------
Stable on x86

------- Comment #14 From Sune Kloppenborg Jeppesen 2005-09-22 00:55:23 0000 -------
This one is ready for GLSA vote. I vote NO. 

------- Comment #15 From Thierry Carrez (RETIRED) 2005-09-22 02:01:38 0000 -------
Voting NO too and closing.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug