Bug 1228603 (CVE-2015-1789) - CVE-2015-1789 OpenSSL: out-of-bounds read in X509_cmp_time
Summary: CVE-2015-1789 OpenSSL: out-of-bounds read in X509_cmp_time
Status: NEW
Alias: CVE-2015-1789
Product: Security Response
Classification: Other
Component: vulnerability   
(Show other bugs)
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard: impact=moderate,public=20150611,repor...
Keywords: Reopened, Security
Depends On: 1228618 1228619 1228620 1228621 1231051 1234214
Blocks: 1227577
TreeView+ depends on / blocked
 
Reported: 2015-06-05 10:12 UTC by Huzaifa S. Sidhpurwala
Modified: 2016-03-04 12:22 UTC (History)
21 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
An out-of-bounds read flaw was found in the X509_cmp_time() function of OpenSSL, which is used to test the expiry dates of SSL/TLS certificates. An attacker could possibly use a specially crafted SSL/TLS certificate or CRL (Certificate Revocation List), which when parsed by an application would cause that application to crash.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-06-30 06:38:15 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Proposed patch for CVE-2015-1789 (3.19 KB, patch)
2015-06-05 10:28 UTC, Huzaifa S. Sidhpurwala
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1115 normal SHIPPED_LIVE Moderate: openssl security update 2015-06-16 00:48:46 UTC
Red Hat Product Errata RHSA-2015:1197 normal SHIPPED_LIVE Moderate: openssl security update 2015-06-30 08:42:32 UTC

Description Huzaifa S. Sidhpurwala 2015-06-05 10:12:10 UTC
The following was reported by OpenSSL upstream:

X509_cmp_time does not properly check the length of the ASN1_TIME string and can read a few bytes out of bounds. In addition, X509_cmp_time accepts an arbitrary number of fractional seconds in the time string.

An attacker can use this to craft malformed certificates and CRLs of various sizes and potentially cause a segmentation fault, resulting in a DoS on applications that verify certificates or CRLs. TLS clients that verify CRLs are affected. TLS clients and servers with client authentication enabled may be affected if they use custom verification callbacks.

This issue affects all current OpenSSL versions: 1.0.2, 1.0.1, 1.0.0 and 0.9.8.

OpenSSL 1.0.2 users should upgrade to 1.0.2b
OpenSSL 1.0.1 users should upgrade to 1.0.1n
OpenSSL 1.0.0 users should upgrade to 1.0.0s
OpenSSL 0.9.8 users should upgrade to 0.9.8zg

This issue was reported to OpenSSL on 8th April 2015 by Robert Swiecki (Google), and independently on 11th April 2015 by Hanno Böck. The fix was developed by Emilia Käsper of the OpenSSL development team.


Acknowledgements:

Red Hat would like to thank the OpenSSL project for reporting this issue.

Comment 1 Huzaifa S. Sidhpurwala 2015-06-05 10:28:39 UTC
Created attachment 1035151 [details]
Proposed patch for CVE-2015-1789

Comment 4 Huzaifa S. Sidhpurwala 2015-06-12 05:55:55 UTC
Created openssl tracking bugs for this issue:

Affects: fedora-all [bug 1231051]

Comment 5 Tomas Hoger 2015-06-15 12:26:21 UTC
A blog post related to this issue from Hanno Böck, one of the original reporters:

https://blog.fuzzing-project.org/15-Out-of-bounds-read-in-OpenSSL-function-X509_cmp_time-CVE-2015-1789-and-other-minor-issues.html

It also provides a test case for this issue:

https://crashes.fuzzing-project.org/openssl-verify-oob.crt

Comment 7 errata-xmlrpc 2015-06-15 20:49:14 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7
  Red Hat Enterprise Linux 6

Via RHSA-2015:1115 https://rhn.redhat.com/errata/RHSA-2015-1115.html

Comment 8 Huzaifa S. Sidhpurwala 2015-06-16 01:35:36 UTC
Statement:

(none)

Comment 9 Fedora Update System 2015-06-21 00:19:06 UTC
openssl-1.0.1k-10.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2015-06-24 15:57:33 UTC
openssl-1.0.1k-10.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 errata-xmlrpc 2015-06-30 04:43:21 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 5

Via RHSA-2015:1197 https://rhn.redhat.com/errata/RHSA-2015-1197.html


Note You need to log in before you can comment on or make changes to this bug.