]> git.ipfire.org Git - thirdparty/openssl.git/commit
Limit size of modulus for BN_mod_exp_mont_consttime()
authorTomas Mraz <tomas@openssl.org>
Tue, 8 Nov 2022 16:43:22 +0000 (17:43 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 10 Nov 2022 16:41:55 +0000 (17:41 +0100)
commit4378e3cd2a4d73a97a2349efaa143059d8ed05e8
tree1a9c620c23fd337fb8b13e03baa06e7c499ff85e
parent75fcf1062817421d8c5850ad0d52a913a2e6499a
Limit size of modulus for BN_mod_exp_mont_consttime()

Otherwise the powerbufLen can overflow.

Issue reported by Jiayi Lin.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/19632)
crypto/bn/bn_exp.c
test/exptest.c