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

« back to all changes in this revision

Viewing changes to debian/patches/CVE-2015-0288.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
From 241cff623e2b0f7c435a3a80ae783c29d994f061 Mon Sep 17 00:00:00 2001
 
4
From: "Dr. Stephen Henson" <steve@openssl.org>
 
5
Date: Wed, 18 Feb 2015 00:34:59 +0000
 
6
Subject: [PATCH] Check public key is not NULL.
 
7
 
 
8
CVE-2015-0288
 
9
PR#3708
 
10
 
 
11
Reviewed-by: Matt Caswell <matt@openssl.org>
 
12
(cherry picked from commit 28a00bcd8e318da18031b2ac8778c64147cd54f9)
 
13
---
 
14
 crypto/x509/x509_req.c | 2 ++
 
15
 1 file changed, 2 insertions(+)
 
16
 
 
17
Index: openssl-0.9.8k/crypto/x509/x509_req.c
 
18
===================================================================
 
19
--- openssl-0.9.8k.orig/crypto/x509/x509_req.c  2015-03-17 14:35:37.332278083 -0400
 
20
+++ openssl-0.9.8k/crypto/x509/x509_req.c       2015-03-17 14:36:07.440520281 -0400
 
21
@@ -91,6 +91,8 @@
 
22
                goto err;
 
23
 
 
24
        pktmp = X509_get_pubkey(x);
 
25
+       if (pktmp == NULL)
 
26
+               goto err;
 
27
        i=X509_REQ_set_pubkey(ret,pktmp);
 
28
        EVP_PKEY_free(pktmp);
 
29
        if (!i) goto err;