[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20171211190609.GC62691@gmail.com>
Date: Mon, 11 Dec 2017 11:06:09 -0800
From: Eric Biggers <ebiggers3@...il.com>
To: syzbot
<bot+fa2ed481fed0c7ace1571b88a89dfd49ffd89cb6@...kaller.appspotmail.com>
Cc: davem@...emloft.net, herbert@...dor.apana.org.au,
linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org,
syzkaller-bugs@...glegroups.com
Subject: Re: general protection fault in crypto_chacha20_crypt
On Wed, Nov 29, 2017 at 01:24:38AM -0800, Eric Biggers wrote:
>
> The bug is that the skcipher_walk API doesn't set the IV for zero-length inputs,
> while some algorithms (e.g. ChaCha20) access the IV even if the input is
> zero-length. So it was dereferencing a pointer which came from uninitialized
> stack memory. I've sent out a fix:
>
> "crypto: skcipher - set walk.iv for zero-length inputs"
>
#syz fix: crypto: skcipher - set walk.iv for zero-length inputs
Powered by blists - more mailing lists