Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1619491 > unrolled thread

crypto_memneq not backported to 3.10

Started by"Jason A. Donenfeld" <Jason@zx2c4.com>
First post2017-04-09 15:10 +0200
Last post2017-04-09 15:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  crypto_memneq not backported to 3.10 "Jason A. Donenfeld" <Jason@zx2c4.com> - 2017-04-09 15:10 +0200
    Re: crypto_memneq not backported to 3.10 Willy Tarreau <w@1wt.eu> - 2017-04-09 15:30 +0200

#1619491 — crypto_memneq not backported to 3.10

From"Jason A. Donenfeld" <Jason@zx2c4.com>
Date2017-04-09 15:10 +0200
Subjectcrypto_memneq not backported to 3.10
Message-ID<tukLn-3bS-1@gated-at.bofh.it>
Hey Willy,

Linux 3.10 is inexplicably missing crypto_memneq, making all crypto
mac comparisons use non constant-time comparisons. Bad news bears.

3.12 got these backported with
d68e944a8fcb2c6212b38064771c9f5af7b0b92c,
afe5a791d374e50a06ada7f4eda4e921e1b77996, and possibly others. I'd
suggest following suit, since many people are relying on this kernel
to do safe crypto.

Thanks,
Jason

[toc] | [next] | [standalone]


#1619495

FromWilly Tarreau <w@1wt.eu>
Date2017-04-09 15:30 +0200
Message-ID<tul4J-3km-1@gated-at.bofh.it>
In reply to#1619491
Hi Jason,

On Sun, Apr 09, 2017 at 02:59:53PM +0200, Jason A. Donenfeld wrote:
> Hey Willy,
> 
> Linux 3.10 is inexplicably missing crypto_memneq, making all crypto
> mac comparisons use non constant-time comparisons. Bad news bears.
> 
> 3.12 got these backported with
> d68e944a8fcb2c6212b38064771c9f5af7b0b92c,
> afe5a791d374e50a06ada7f4eda4e921e1b77996, and possibly others. I'd
> suggest following suit, since many people are relying on this kernel
> to do safe crypto.

Interesting. I remembered seeing some crypto_memneq stuff in the past,
and in fact there was one patch talking about this but trimmed down to
only affect other parts since crypto_memneq is indeed not part of 3.10.

I'll check if the 3.12 patches above can be safely backported, and I'll
have to re-apply the missing part of the one that was trimmed down
(commit 620c411 ("crypto: more robust crypto_memneq")).

Thanks!
Willy

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web