[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200115.140640.367212385869999160.davem@davemloft.net>
Date: Wed, 15 Jan 2020 14:06:40 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: colin.king@...onical.com
Cc: qiang.zhao@....com, netdev@...r.kernel.org,
linuxppc-dev@...ts.ozlabs.org, kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net/wan/fsl_ucc_hdlc: fix out of bounds write on array
utdm_info
From: Colin King <colin.king@...onical.com>
Date: Tue, 14 Jan 2020 14:54:48 +0000
> From: Colin Ian King <colin.king@...onical.com>
>
> Array utdm_info is declared as an array of MAX_HDLC_NUM (4) elements
> however up to UCC_MAX_NUM (8) elements are potentially being written
> to it. Currently we have an array out-of-bounds write error on the
> last 4 elements. Fix this by making utdm_info UCC_MAX_NUM elements in
> size.
>
> Addresses-Coverity: ("Out-of-bounds write")
> Fixes: c19b6d246a35 ("drivers/net: support hdlc function for QE-UCC")
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Applied and queued up for -stable.
Powered by blists - more mailing lists