[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180420165119.3dn67xpcyxglhi22@gondor.apana.org.au>
Date: Sat, 21 Apr 2018 00:51:19 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Colin King <colin.king@...onical.com>
Cc: Harsh Jain <harsh@...lsio.com>,
"David S . Miller" <davem@...emloft.net>,
Michael Werner <werner@...lsio.com>,
Atul Gupta <atul.gupta@...lsio.com>,
Casey Leedom <leedom@...lsio.com>,
linux-crypto@...r.kernel.org, kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] crypto: chtls: don't leak information from the
stack to userspace
On Thu, Apr 05, 2018 at 05:44:03PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> The structure crypto_info contains fields that are not initialized and
> only .version is set. The copy_to_user call is hence leaking information
> from the stack to userspace which must be avoided. Fix this by zero'ing
> all the unused fields.
>
> Detected by CoverityScan, CID#1467421 ("Uninitialized scalar variable")
>
> Fixes: a08943947873 ("crypto: chtls - Register chtls with net tls")
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists