[openssl/openssl] e6b158: Limit size of modulus for bn_mul_mont and BN_mod_e...

Bernd Edlinger noreply at github.com
Sat Jan 14 10:41:41 UTC 2023

  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: e6b1586ea2bda8c2a1110eb54f25b769c71876cd
  Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
  Date:   2023-01-14 (Sat, 14 Jan 2023)

  Changed paths:
    M crypto/bn/bn_exp.c
    M crypto/bn/bn_local.h
    M crypto/bn/bn_mont.c
    M test/exptest.c

  Log Message:
  Limit size of modulus for bn_mul_mont and BN_mod_exp_mont_consttime

Otherwise the alloca can cause an exception.

Issue reported by Jiayi Lin.

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Todd Short <todd.short at me.com>
(Merged from https://github.com/openssl/openssl/pull/20005)

(cherry picked from commit 30667f5c306dbc11ac0e6fddc7d26fd984d546ab)

More information about the openssl-commits mailing list