Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55694 - Kernel 2.6 DoS vulnerability in ip tables tcp handling
Summary: Kernel 2.6 DoS vulnerability in ip tables tcp handling
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Kernel (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Security
URL: http://www.securityfocus.com/archive/...
Whiteboard: A3 [kernel+]
Keywords:
: 55776 55809 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-30 10:28 UTC by Chris White (RETIRED)
Modified: 2011-10-30 22:42 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Kernel 2.6 iptables patch (kernel2.6-iptables.patch,440 bytes, patch)
2004-06-30 10:30 UTC, Chris White (RETIRED)
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris White (RETIRED) gentoo-dev 2004-06-30 10:28:52 UTC
A recent exploit has been detected in net/ipv4/netfilter/ip_tables.c in version 2.6 kernels.

Version 2.4 kernels and below are not affected.  As noted in the url:

char opt[60 - sizeof(struct tcphdr)];

is the exploitable code.  Being cast to a character, anything over ascii value 127 (the last character of the standard ascii table) would be cast to a negative number, causing a possible infinite loop and an unresponsive system.

A patch has already been made avaliable by Adam Osuchowski
and Tomasz Dubinski, who also discovered the exploit.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Chris White (RETIRED) gentoo-dev 2004-06-30 10:30:41 UTC
Created attachment 34501 [details, diff]
Kernel 2.6 iptables patch
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2004-06-30 11:19:28 UTC
OK, I've patched everything 2.6-based in Portage, and I'm now CCing the following who maintain external kernel sources:

gentoo-dev-sources: CCing gregkh.
hardened-dev-sources: CCing tseng.
hppa-dev-sources: CCing gmsoft.
mips-sources: CCing `Kumba.
pegasos-dev-sources: CCing dholm.
rsbac-dev-sources: CCing kang.
ppc64-sources: CCing tgall.
Comment 3 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-06-30 11:26:07 UTC
What packages are 2.6 based in the portage tree that you fixed already?

I'll go roll g-d-s with this patch and a few others in a few hours...
Comment 4 Guillaume Destuynder (RETIRED) gentoo-dev 2004-06-30 13:49:43 UTC
rsbac-dev-sources has now been fixed.
Comment 5 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-06-30 15:34:08 UTC
gentoo-dev-sources is now fixed with this patch (well a whitespace fixed up one)
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2004-07-01 04:51:19 UTC
*** Bug 55776 has been marked as a duplicate of this bug. ***
Comment 7 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-07-01 08:25:03 UTC
CAN-2004-0626 has been assigned to this bug.
Comment 8 Thierry Carrez (RETIRED) gentoo-dev 2004-07-01 14:11:00 UTC
*** Bug 55809 has been marked as a duplicate of this bug. ***
Comment 9 Joshua Kinard gentoo-dev 2004-07-01 16:39:57 UTC
Added to mips-sources
Comment 10 Brandon Hale (RETIRED) gentoo-dev 2004-07-02 09:24:34 UTC
I commited a fix yesterday, removing CC
Comment 11 David Holm (RETIRED) gentoo-dev 2004-07-02 13:45:32 UTC
pegasos-dev-sources fixed
Comment 12 Guy Martin (RETIRED) gentoo-dev 2004-07-03 14:10:48 UTC
Finally fixed on hppa. Sorry for the delay.
Comment 13 Tom Gall (RETIRED) gentoo-dev 2004-07-04 10:43:05 UTC
I've now moved ppc64 to use gentoo-dev-sources with the rest of the crowd. Use of ppc64-sources will be officially depricated this evening
Comment 14 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-07-04 10:58:12 UTC
Yeah, thanks Tom, that's one less kernel package we have to worry about now :)
Comment 15 Thierry Carrez (RETIRED) gentoo-dev 2004-07-05 02:13:42 UTC
Looks like all sources have been fixed (?)
Then it's ready for GLSA.
Comment 16 Thierry Carrez (RETIRED) gentoo-dev 2004-07-12 06:28:01 UTC
Waiting for ppc64-sources to disappear from portage
Comment 17 Tim Yamin (RETIRED) gentoo-dev 2004-07-14 14:06:01 UTC
GLSA 200407-12.