[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20161029.115735.1305731447719654765.davem@davemloft.net>
Date: Sat, 29 Oct 2016 11:57:35 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: marcelo.leitner@...il.com
Cc: netdev@...r.kernel.org, linux-sctp@...r.kernel.org,
nhorman@...driver.com, vyasevich@...il.com,
syzkaller@...glegroups.com, kcc@...gle.com, glider@...gle.com,
edumazet@...gle.com, dvyukov@...gle.com, andreyknvl@...gle.com
Subject: Re: [PATCH net] sctp: validate chunk len before actually using it
From: Marcelo Ricardo Leitner <marcelo.leitner@...il.com>
Date: Tue, 25 Oct 2016 14:27:39 -0200
> Andrey Konovalov reported that KASAN detected that SCTP was using a slab
> beyond the boundaries. It was caused because when handling out of the
> blue packets in function sctp_sf_ootb() it was checking the chunk len
> only after already processing the first chunk, validating only for the
> 2nd and subsequent ones.
>
> The fix is to just move the check upwards so it's also validated for the
> 1st chunk.
>
> Reported-by: Andrey Konovalov <andreyknvl@...gle.com>
> Tested-by: Andrey Konovalov <andreyknvl@...gle.com>
> Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@...il.com>
> ---
>
> Hi. Please consider this to -stable too. Thanks
Applied and queued up for -stable, thanks!
Powered by blists - more mailing lists