projects
/
wrapfs-5.3.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ba239c
)
[PATCH] xt_sctp: fix endless loop caused by 0 chunk length (CVE-2006-3085)
author
Patrick McHardy
<kaber@trash.net>
Mon, 19 Jun 2006 17:14:21 +0000
(19:14 +0200)
committer
Chris Wright
<chrisw@sous-sol.org>
Tue, 20 Jun 2006 08:54:53 +0000
(
01:54
-0700)
Fix endless loop in the SCTP match similar to those already fixed in the
SCTP conntrack helper (was CVE-2006-1527).
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
net/netfilter/xt_sctp.c
patch
|
blob
|
history
diff --git
a/net/netfilter/xt_sctp.c
b/net/netfilter/xt_sctp.c
index 10fbfc5ba7587990370f0e14c32ea1d5ba0e170f..239018244407b29efa9d5b11821a42de86962007 100644
(file)
--- a/
net/netfilter/xt_sctp.c
+++ b/
net/netfilter/xt_sctp.c
@@
-62,7
+62,7
@@
match_packet(const struct sk_buff *skb,
do {
sch = skb_header_pointer(skb, offset, sizeof(_sch), &_sch);
- if (sch == NULL) {
+ if (sch == NULL
|| sch->length == 0
) {
duprintf("Dropping invalid SCTP packet.\n");
*hotdrop = 1;
return 0;