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

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

  Branch: refs/heads/OpenSSL_1_1_1-stable
  Home:   https://github.com/openssl/openssl
  Commit: 5bbd921ff5610bb5cca7475813f7f689f2a670e6
  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: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19735)

More information about the openssl-commits mailing list