[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180702.203611.801501021039255132.davem@davemloft.net>
Date: Mon, 02 Jul 2018 20:36:11 +0900 (KST)
From: David Miller <davem@...emloft.net>
To: colin.king@...onical.com
Cc: jakub.kicinski@...ronome.com, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] netdevsim: fix sa_idx out of bounds check
From: Colin King <colin.king@...onical.com>
Date: Sat, 30 Jun 2018 21:39:24 +0100
> From: Colin Ian King <colin.king@...onical.com>
>
> Currently if sa_idx is equal to NSIM_IPSEC_MAX_SA_COUNT then
> an out-of-bounds read on ipsec->sa will occur. Fix the
> incorrect bounds check by using >= rather than >.
>
> Detected by CoverityScan, CID#1470226 ("Out-of-bounds-read")
>
> Fixes: 7699353da875 ("netdevsim: add ipsec offload testing")
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Applied, thank you.
Powered by blists - more mailing lists