Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1563757
| From | David Miller <davem@davemloft.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] net: sctp: fix array overrun read on sctp_timer_tbl |
| Date | 2017-01-20 17:30 +0100 |
| Message-ID | <t1KeD-16c-31@gated-at.bofh.it> (permalink) |
| References | <t1H75-7EL-59@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Colin King <colin.king@canonical.com>
Date: Fri, 20 Jan 2017 13:01:57 +0000
> From: Colin Ian King <colin.king@canonical.com>
>
> The comparison on the timeout can lead to an array overrun
> read on sctp_timer_tbl because of an off-by-one error. Fix
> this by using < instead of <= and also compare to the array
> size rather than SCTP_EVENT_TIMEOUT_MAX.
>
> Fixes CoverityScan CID#1397639 ("Out-of-bounds read")
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
Applied.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] net: sctp: fix array overrun read on sctp_timer_tbl Colin King <colin.king@canonical.com> - 2017-01-20 14:10 +0100
Re: [PATCH] net: sctp: fix array overrun read on sctp_timer_tbl Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> - 2017-01-20 14:20 +0100
Re: [PATCH] net: sctp: fix array overrun read on sctp_timer_tbl Colin Ian King <colin.king@canonical.com> - 2017-01-20 14:20 +0100
Re: [PATCH] net: sctp: fix array overrun read on sctp_timer_tbl Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> - 2017-01-20 14:30 +0100
Re: [PATCH] net: sctp: fix array overrun read on sctp_timer_tbl David Miller <davem@davemloft.net> - 2017-01-20 17:30 +0100
csiph-web