login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-netdev
»
2010
»
April
»
28
Re: [PATCH]: sctp: Fix skb_over_panic resulting from multiple invalid parameter errors (CVE-2010-1173)
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Vlad Yasevich
Subject:
Re: [PATCH]: sctp: Fix skb_over_panic resulting from multiple invalid parameter errors (CVE-2010-1173)
Date: Wednesday, April 28, 2010 - 11:27 am
Neil Horman wrote:
quoted text
> On Wed, Apr 28, 2010 at 01:52:05PM -0400, Vlad Yasevich wrote: >> >> Vlad Yasevich wrote: >>> Neil Horman wrote: >>>> On Wed, Apr 28, 2010 at 10:00:37AM -0400, Vlad Yasevich wrote: >>>>> I have this patch and a few others already queued. >>>>> >>>>> I was planning on sending these today for stable. >>>>> >>>>> Here is the full list of stable patches I have: >>>>> >>>>> sctp: Fix oops when sending queued ASCONF chunks >>>>> sctp: fix to calc the INIT/INIT-ACK chunk length correctly is set >>>>> sctp: per_cpu variables should be in bh_disabled section >>>>> sctp: fix potential reference of a freed pointer >>>>> sctp: avoid irq lock inversion while call sk->sk_data_ready() >>>>> >>>>> -vlad >>>>> >>>> Are you sure? this oops looks _very_ simmilar to the INIT/INIT-ACK length >>>> calculation oops described above, but is in fact different, and requires this >>>> patch, from what I can see. The right fix might be in the ASCONF chunk patch >>>> you list above, but I don't see that in your tree at the moment, so I can't be >>>> sure. >>> As I said, I totally goofed when reading the description and I apologize. >>> However, I do one comment regarding the patch. >>> >>> If the bad packet is REALLY long (I mean close to 65K IP limit), then >>> we'll end up allocating a supper huge skb in this case and potentially exceed >>> the IP length limitation. Section 11.4 of rfc 4960 allows us to omit some >>> errors and limit the size of the packet. >>> >>> I would recommend limiting this to MTU worth of potentiall errors. This is >>> on top of what the INIT-ACK is going to carry, so at most we'll sent 2 MTUs >>> worth. That's still a potential by amplification attack, but it's somewhat >>> mitigated. >>> >>> Of course now we have to handle the case of checking for space before adding >>> an error cause. :) >>> >> Hi Neil >> >> I am also not crazy about the pre-allocation scheme. In the case where you have >> say 100 parameters that are all 'skip' parameters, you'd end up pre-allocating a >> huge buffer for absolutely nothing. >> > Would have been nice if you'd made your opinion known 4 hours ago when I was > testing version 2 of this. :) >
sorry, fighting a head cold and need drugs to think clearly... ;)
quoted text
>> This is another point toward a fixed error chunk size and let parameter >> processing allocate it when it reaches a parameter that needs an error. >> > Hmm, ok, what would you say to a pathmtu sized chunk allocation in parameter > processing that drops errors beyond its capacity > Neil
Here is my quick take on this. Haven't tested it at all. -vlad
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH]: sctp: Fix skb_over_panic resulting from multiple ...
, Neil Horman
, (Wed Apr 28, 6:47 am)
Re: [PATCH]: sctp: Fix skb_over_panic resulting from multi ...
, Vlad Yasevich
, (Wed Apr 28, 7:00 am)
Re: [PATCH]: sctp: Fix skb_over_panic resulting from multi ...
, Vlad Yasevich
, (Wed Apr 28, 7:17 am)
Re: [PATCH]: sctp: Fix skb_over_panic resulting from multi ...
, Neil Horman
, (Wed Apr 28, 7:21 am)
Re: [PATCH]: sctp: Fix skb_over_panic resulting from multi ...
, Vlad Yasevich
, (Wed Apr 28, 7:37 am)
Re: [PATCH]: sctp: Fix skb_over_panic resulting from multi ...
, Neil Horman
, (Wed Apr 28, 10:47 am)
Re: [PATCH]: sctp: Fix skb_over_panic resulting from multi ...
, Vlad Yasevich
, (Wed Apr 28, 10:52 am)
Re: [PATCH]: sctp: Fix skb_over_panic resulting from multi ...
, Neil Horman
, (Wed Apr 28, 11:16 am)
Re: [PATCH]: sctp: Fix skb_over_panic resulting from multi ...
, Vlad Yasevich
, (Wed Apr 28, 11:27 am)
Re: [PATCH]: sctp: Fix skb_over_panic resulting from multi ...
, Neil Horman
, (Wed Apr 28, 11:52 am)
Re: [PATCH]: sctp: Fix skb_over_panic resulting from multi ...
, Neil Horman
, (Wed Apr 28, 12:37 pm)
Re: [PATCH]: sctp: Fix skb_over_panic resulting from multi ...
, Vlad Yasevich
, (Wed Apr 28, 1:16 pm)
Re: [PATCH]: sctp: Fix skb_over_panic resulting from multi ...
, Neil Horman
, (Wed Apr 28, 1:30 pm)
Re: [PATCH]: sctp: Fix skb_over_panic resulting from multi ...
, Vlad Yasevich
, (Wed Apr 28, 1:37 pm)
Re: [PATCH]: sctp: Fix skb_over_panic resulting from multi ...
, David Miller
, (Wed Apr 28, 2:23 pm)
Re: [PATCH]: sctp: Fix skb_over_panic resulting from multi ...
, Neil Horman
, (Wed Apr 28, 2:50 pm)
Re: [PATCH]: sctp: Fix skb_over_panic resulting from multi ...
, Eugene Teo
, (Wed Apr 28, 5:25 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ken Chen
[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Ingo Molnar
Re: [PATCH v3] x86: merge the simple bitops and move them to bitops.h
Andi Kleen
Re: - romsignature-checksum-cleanup-2.patch removed from -mm tree
Axel Lin
[PATCH] tc6393xb: fix wrong goto labels for error handling
Matthew Wilcox
Re: 2.6.22-rc3-mm1
git
:
Johannes Schindelin
Re: [PATCH 05/21] Make parse_tag_buffer_internal() handle item == NULL
Johannes Sixt
Re: [PATCH] Fix handle leak in builtin-pack-objects
Linus Torvalds
Re: [PATCH, take 1] Linear-time/space rename logic (exact renames only)
Alex Riesen
Re: [PATCH] fmt-merge-msg: avoid open "-|" list form for Perl 5.6
Nicolas Pitre
Re: [PATCH 2/2] Implement a simple delta_base cache
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB (8018): Add em2860 chip ID
Linux Kernel Mailing List
PCI: fix kernel oops on bridge removal
Linux Kernel Mailing List
rtl8187: use DMA-aware buffers with usb_control_msg
Linux Kernel Mailing List
Blackfin: use KERN_ALERT in all kgdb_test output
Linux Kernel Mailing List
MIPS: Bonito64: Make Loongson independent from Bonito64 code.
linux-netdev
:
Richard Cochran
Re: [PATCH v3 3/3] ptp: Added a clock that uses the eTSEC found on the MPC85xx.
David Miller
Re: [RFC] bridge: STP timer management range checking
Herbert Xu
Re: [RFC PATCH 00/17] virtual-bus
Lennert Buytenhek
Re: [PATCH 3/6] [NET] dsa: add support for original DSA tagging format
Herbert Xu
Re: [2/2] igb: Replace LRO with GRO
freebsd-current
:
Boris Samorodov
Re: twa + dump = sbwait
Andrey
Re: RELENG_7 and HEAD: bge causes system hang
韓家標 Bill Hacker
Re: ZFS honesty
samira
sata atapi on ich9r
JoaoBR
Re: I like my rc.d boot messages :(
Colocation donated by:
Syndicate