All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]: invaild TCP/UDP matching when ipv6 extension header exists
@ 2004-01-31  6:49 Yasuyuki Kozakai
  2004-01-31  6:56 ` Yasuyuki Kozakai
  2004-02-20  6:12 ` Yasuyuki Kozakai
  0 siblings, 2 replies; 6+ messages in thread
From: Yasuyuki Kozakai @ 2004-01-31  6:49 UTC (permalink / raw)
  To: netfilter-devel


Hi,

tcp_match() and udp_match() in ip6tables.c assume that previous header
of TCP/UDP header is IPv6 Header. So, for example, 1st of fragmented UDP
packet, AHed packets can't correctly match the rules which use
"--sport" and so on.

This patch use ipv6_skip_exthdr() . But this function has the bug which
access invalid memory area when found Fragment Header.
So this patch includes the change for that, too.

Regards,

----------------------------------------
Yasuyuki KOZAKAI

Communication Platform Laboratory,
Corporate Research & Development Center,
Toshiba Corporation

yasuyuki.kozakai@toshiba.co.jp
----------------------------------------

Subject: (usagi-users 02784) about fragment (ip6tables)
From: ques_hiro@hotmail.com
Date: Tue, 27 Jan 2004 01:12:45 +0000

> Hello Users Group,
> 
> >From contents which are asked here, although it may not be, I need your 
> help well.
> 
> There is a question about the filtering method of fragment pachet using 
> ip6tables.
> 
> A and B prepare two PCs, the command of ip6tables of the following [ B ] is 
> 
> struck, 
> and 4000 bytes of UDP packet (address port number 1025) is sent from A to 
> B.
> 
> (PC_B) %ip6tables -A INPUT -p udp -m frag --dport 1025 -j DROP
> 
> In this environment, since MTU was 1500 bytes, the packet was 
> fragmentation-ized by  three, and all the packets reached and 
> carried out to B.
> 
> Then, although it is a question, since there is information on a port 
> number in the 
> first fragmentation-ized packet, although it thinks that it is filtered and 
> 
> two of  succession pass, why is it?
> 
> Is it the specification which cannot use the frag option and the port 
> option together?
> 
> If there is a person who knows, I will advice-wish-do.
> 
> _________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-02-26 20:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-31  6:49 [PATCH]: invaild TCP/UDP matching when ipv6 extension header exists Yasuyuki Kozakai
2004-01-31  6:56 ` Yasuyuki Kozakai
2004-02-20  6:12 ` Yasuyuki Kozakai
2004-02-20 17:31   ` David S. Miller
2004-02-26  4:05   ` Yasuyuki Kozakai
2004-02-26 20:37     ` David S. Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.