audk/CryptoPkg/Library/BaseCryptLib
Kun Qin 21f984cede CryptoPkg: BaseCryptLib: Fix buffer double free in CryptPkcs7VerifyEku
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2459

SignerCert is part of Pkcs7 instance when both have valid content. OpenSLL
PKCS7_free function will release the memory of SignerCert when applicable.
Freeing SignerCert with X509_free again might cause page fault if use-
after-free guard is enabled.

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Xiaoyu Lu <xiaoyux.lu@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>

Signed-off-by: Kun Qin <kun.q@outlook.com>
Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
2020-11-26 03:22:24 +00:00
..
Cipher CryptoPkg/BaseCryptLib: Retire Aes Ecb mode algorithm 2020-05-15 07:22:36 +00:00
Hash CryptoPkg: Make the MD5 disable as default for security 2020-11-17 19:26:50 +00:00
Hmac CryptoPkg/BaseCryptLib: Retire HMAC SHA1 algorithm 2020-05-15 07:22:36 +00:00
Kdf CryptoPkg: Fix coding style 2019-08-19 08:45:29 +08:00
Pem CryptoPkg/BaseCryptLib: Retire the TDES algorithm 2020-05-15 07:22:36 +00:00
Pk CryptoPkg: BaseCryptLib: Fix buffer double free in CryptPkcs7VerifyEku 2020-11-26 03:22:24 +00:00
Rand CryptoPkg/BaseCryptLib: remove unused code for IPF 2019-05-17 13:13:41 +08:00
SysCall CryptoPkg: BaseCryptLib: Add unit tests (Host and Shell based) 2020-10-18 00:49:58 +00:00
BaseCryptLib.inf CryptoPkg/BaseCryptLib: Retire HMAC SHA1 algorithm 2020-05-15 07:22:36 +00:00
BaseCryptLib.uni CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
InternalCryptLib.h CryptoPkg: Replace BSD License with BSD+Patent License 2019-04-09 09:10:22 -07:00
PeiCryptLib.inf CryptoPkg/BaseCryptLib: add crypto algorithms needed by variable protection 2020-09-29 05:58:58 +00:00
PeiCryptLib.uni CryptoPkg/BaseCryptLib: Retire HMAC SHA1 algorithm 2020-05-15 07:22:36 +00:00
RuntimeCryptLib.inf CryptoPkg/BaseCryptLib: add crypto algorithms needed by variable protection 2020-09-29 05:58:58 +00:00
RuntimeCryptLib.uni CryptoPkg/BaseCryptLib: Retire HMAC SHA1 algorithm 2020-05-15 07:22:36 +00:00
SmmCryptLib.inf CryptoPkg/BaseCryptLib: Retire HMAC SHA1 algorithm 2020-05-15 07:22:36 +00:00
SmmCryptLib.uni CryptoPkg/BaseCryptLib: Retire HMAC SHA1 algorithm 2020-05-15 07:22:36 +00:00
UnitTestHostBaseCryptLib.inf CryptoPkg: BaseCryptLib: Add unit tests (Host and Shell based) 2020-10-18 00:49:58 +00:00