~ubuntu-branches/ubuntu/lucid/openssl/lucid-security

« back to all changes in this revision

Viewing changes to debian/patches/CVE-2015-0286.patch

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2015-03-19 09:57:59 UTC
  • Revision ID: package-import@ubuntu.com-20150319095759-do88u689v2nfth1v
Tags: 0.9.8k-7ubuntu8.27
* SECURITY UPDATE: denial of service and possible memory corruption via
  malformed EC private key
  - debian/patches/CVE-2015-0209.patch: fix use after free in
    crypto/ec/ec_asn1.c.
  - debian/patches/CVE-2015-0209-2.patch: fix a failure to NULL a pointer
    freed on error in crypto/asn1/x_x509.c, crypto/ec/ec_asn1.c.
  - CVE-2015-0209
* SECURITY UPDATE: denial of service via cert verification
  - debian/patches/CVE-2015-0286.patch: handle boolean types in
    crypto/asn1/a_type.c.
  - CVE-2015-0286
* SECURITY UPDATE: ASN.1 structure reuse memory corruption
  - debian/patches/CVE-2015-0287.patch: free up structures in
    crypto/asn1/tasn_dec.c.
  - CVE-2015-0287
* SECURITY UPDATE: denial of service via invalid certificate key
  - debian/patches/CVE-2015-0288.patch: check public key isn't NULL in
    crypto/x509/x509_req.c.
  - CVE-2015-0288
* SECURITY UPDATE: denial of service and possible code execution via
  PKCS#7 parsing
  - debian/patches/CVE-2015-0289.patch: handle missing content in
    crypto/pkcs7/pk7_doit.c, crypto/pkcs7/pk7_lib.c.
  - CVE-2015-0289
* SECURITY UPDATE: denial of service or memory corruption via base64
  decoding
  - debian/patches/CVE-2015-0292.patch: prevent underflow in
    crypto/evp/encode.c.
  - CVE-2015-0292
* SECURITY UPDATE: denial of service via assert in SSLv2 servers
  - debian/patches/CVE-2015-0293.patch: check key lengths in
    ssl/s2_lib.c, ssl/s2_srvr.c.
  - debian/patches/CVE-2015-0293-2.patch: fix unsigned/signed warnings in
    ssl/s2_srvr.c.
  - CVE-2015-0293

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Backport of:
 
2
 
 
3
commit 7058bd1712828a78d34457b1cfc32bdc1e6d3d33
 
4
Author: Dr. Stephen Henson <steve@openssl.org>
 
5
Date:   Mon Mar 9 23:11:45 2015 +0000
 
6
 
 
7
    Fix ASN1_TYPE_cmp
 
8
    
 
9
    Fix segmentation violation when ASN1_TYPE_cmp is passed a boolean type. This
 
10
    can be triggered during certificate verification so could be a DoS attack
 
11
    against a client or a server enabling client authentication.
 
12
    
 
13
    CVE-2015-0286
 
14
    
 
15
    Reviewed-by: Richard Levitte <levitte@openssl.org>
 
16
 
 
17
Index: openssl-0.9.8k/crypto/asn1/a_type.c
 
18
===================================================================
 
19
--- openssl-0.9.8k.orig/crypto/asn1/a_type.c    2015-03-17 14:30:28.689804986 -0400
 
20
+++ openssl-0.9.8k/crypto/asn1/a_type.c 2015-03-17 14:31:01.066063539 -0400
 
21
@@ -121,6 +121,9 @@
 
22
        case V_ASN1_OBJECT:
 
23
                result = OBJ_cmp(a->value.object, b->value.object);
 
24
                break;
 
25
+       case V_ASN1_BOOLEAN:
 
26
+               result = a->value.boolean - b->value.boolean;
 
27
+               break;
 
28
        case V_ASN1_NULL:
 
29
                result = 0;     /* They do not have content. */
 
30
                break;