]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix CVE-2010-0742
authorDr. Stephen Henson <steve@openssl.org>
Tue, 1 Jun 2010 14:39:57 +0000 (14:39 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 1 Jun 2010 14:39:57 +0000 (14:39 +0000)
CHANGES
crypto/cms/cms_asn1.c

diff --git a/CHANGES b/CHANGES
index a20fe1759c496bc076967fc42b359bd58338b1d8..2a1bc37a97f3e1d48e9412a3a4bbc831aeda5080 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -4,6 +4,10 @@
 
  Changes between 0.9.8n and 0.9.8o [xx XXX xxxx]
 
+  *) Correct a typo in the CMS ASN1 module which can result in invalid memory
+     access or freeing data twice (CVE-2010-0742)
+     [Steve Henson, Ronald Moesbergen <intercommit@gmail.com>]
+
   *) Add SHA2 algorithms to SSL_library_init(). SHA2 is becoming far more
      common in certificates and some applications which only call
      SSL_library_init and not OpenSSL_add_all_algorithms() will fail.
index 7664921861837759a21472ac545284d48f2cd886..b253d54b570177087e0e5a245b9a7c6f1525b224 100644 (file)
@@ -130,8 +130,8 @@ ASN1_NDEF_SEQUENCE(CMS_SignedData) = {
 } ASN1_NDEF_SEQUENCE_END(CMS_SignedData)
 
 ASN1_SEQUENCE(CMS_OriginatorInfo) = {
-       ASN1_IMP_SET_OF_OPT(CMS_SignedData, certificates, CMS_CertificateChoices, 0),
-       ASN1_IMP_SET_OF_OPT(CMS_SignedData, crls, CMS_RevocationInfoChoice, 1)
+       ASN1_IMP_SET_OF_OPT(CMS_OriginatorInfo, certificates, CMS_CertificateChoices, 0),
+       ASN1_IMP_SET_OF_OPT(CMS_OriginatorInfo, crls, CMS_RevocationInfoChoice, 1)
 } ASN1_SEQUENCE_END(CMS_OriginatorInfo)
 
 ASN1_NDEF_SEQUENCE(CMS_EncryptedContentInfo) = {