Skip to contentSkip to conversation

polarssl: add fix for CVE-2015-1182

PATCH New Gustavo Zacarias 2 participants 2 messages Jan 26, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 polarssl: add fix for CVE-2015-1182

Fixes CVE-2015-1182 - Remote attack using crafted certificates. Also rename patches to new naming convention.

---
 ...1-no-test-suite.patch => 0001-no-test-suite.patch} |  0
 ...-the-standard-CMake-flag-to-drive-the-share.patch} |  0
 package/polarssl/0003-fix-CVE-2015-1182.patch         | 19 +++++++++++++++++++
 3 files changed, 19 insertions(+)
 rename package/polarssl/{polarssl-0001-no-test-suite.patch => 0001-no-test-suite.patch} (100%)
 rename package/polarssl/{polarssl-0002-cmake-use-the-standard-CMake-flag-to-drive-the-share.patch => 0002-cmake-use-the-standard-CMake-flag-to-drive-the-share.patch} (100%)
 create mode 100644 package/polarssl/0003-fix-CVE-2015-1182.patch
package/polarssl/0001-no-test-suite.patch renamed from package/polarssl/polarssl-0001-no-test-suite.patch +0 -0
similarity index 100%
rename from package/polarssl/polarssl-0001-no-test-suite.patch
rename to package/polarssl/0001-no-test-suite.patch
package/polarssl/0002-cmake-use-the-standard-CMake-flag-to-drive-the-share.patch renamed from package/polarssl/polarssl-0002-cmake-use-the-standard-CMake-flag-to-drive-the-share.patch +0 -0
similarity index 100%
rename from package/polarssl/polarssl-0002-cmake-use-the-standard-CMake-flag-to-drive-the-share.patch
rename to package/polarssl/0002-cmake-use-the-standard-CMake-flag-to-drive-the-share.patch
package/polarssl/0003-fix-CVE-2015-1182.patch new file +19 -0
new file mode 100644
index 0000000..9309c9d
@@ -0,0 +1,19 @@
+Fix CVE-2015-1182 - Remote attack using crafted certificates.
+Patch status: from upstream see:
+https://polarssl.org/tech-updates/security-advisories/polarssl-security-advisory-2014-04
+
+Signed-off-by: Gustavo Zacarias <[email protected]>
+
+diff --git a/library/asn1parse.c b/library/asn1parse.c
+index a3a2b56..e2117bf 100644
+--- a/library/asn1parse.c
++++ b/library/asn1parse.c
+@@ -278,6 +278,8 @@ int asn1_get_sequence_of( unsigned char **p,
+             if( cur->next == NULL )
+                 return( POLARSSL_ERR_ASN1_MALLOC_FAILED );
+
++            memset( cur->next, 0, sizeof( asn1_sequence ) );
++
+             cur = cur->next;
+         }
+     }
Signature · 1 line
2.0.5
#1 lore raw

PATCH 1/1 polarssl: add fix for CVE-2015-1182

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Fixes CVE-2015-1182 - Remote attack using crafted certificates. Also rename patches to new naming convention.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard