Bug 671484 - Backport OpenSSL RT #1736, CHIL Engine thread lock upcall management
Summary: Backport OpenSSL RT #1736, CHIL Engine thread lock upcall management
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: openssl
Version: 5.8
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Tomas Mraz
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-21 16:08 UTC by Sander Temme
Modified: 2011-07-21 07:41 UTC (History)
3 users (show)

Fixed In Version: openssl-0.9.8e-19.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 693863 (view as bug list)
Environment:
Last Closed: 2011-07-21 07:41:02 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1010 0 normal SHIPPED_LIVE openssl bug fix and enhancement update 2011-07-20 15:44:40 UTC

Description Sander Temme 2011-01-21 16:08:14 UTC
Description of problem:

The CHIL Engine, used to access Thales/nCipher hardware, requires that thread locking upcalls be set regardless of whether the calling program is multithreaded.  This is discussed in the following OpenSSL ticket:

http://rt.openssl.org/Ticket/Display.html?id=1736

This issue was caused to go away in the following OpenSSL commit: 

http://cvs.openssl.org/filediff?f=openssl/engines/e_chil.c&v1=1.1.2.5&v2=1.1.2.6

which was part of 0.9.8j.  

Version-Release number of selected component (if applicable):

Any OpenSSL before 0.9.8j is affected. Any Red Hat Enterprise Linux 5 release is affected.  Tests conducted with OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008, and openssl-0.9.8e-12.el5_5.7 on RHEL 5.5. 

How reproducible:

Attempt to load the CHIL engine into the Red Hat supplied copy of OpenSSL.

Steps to Reproduce:
1. Install nCipher hardware.
2. Install nCipher software.
3. Set and export LD_LIBRARY_PATH=/opt/nfast/toolkits/hwcrhk
4. Call /usr/bin/openssl engine -vvvv -tt -c chil
  
Actual results:

(chil) CHIL hardware engine support
[RSA, DH, RAND]
     [ unavailable ]
13205:error:80067072:CHIL engine:HWCRHK_INIT:locking missing:e_chil.c:594:You HAVE to add dynamic locking callbacks via CRYPTO_set_dynlock_{create,lock,destroy}_callback()
     SO_PATH: Specifies the path to the 'hwcrhk' shared library
          (input flags): STRING
     FORK_CHECK: Turns fork() checking on or off (boolean)
          (input flags): NUMERIC
     THREAD_LOCKING: Turns thread-safe locking on or off (boolean)
         (input flags): NUMERIC

Expected results:

(chil) CHIL hardware engine support
[RSA, DH, RAND]
     [ available ]
     SO_PATH: Specifies the path to the 'hwcrhk' shared library
          (input flags): STRING
     FORK_CHECK: Turns fork() checking on or off (boolean)
          (input flags): NUMERIC
     THREAD_LOCKING: Turns thread-safe locking on or off (boolean)
         (input flags): NUMERIC

Additional info:

If a multithreaded program calls OpenSSL and loads the CHIL Engine without setting those callbacks, unexpected behavior may occur.  It is my opinion that in this case, you get what you deserve.  

Apache 2.2 was updated to set the right upcalls in the same timeframe the OpenSSL RT issue was discussed, and this fix was already backported by Red Hat.

Comment 1 Tomas Mraz 2011-01-21 16:26:26 UTC
Can you please open a regular support request in your support channel? This can help properly prioritize the issue.
http://www.redhat.com/support/

Comment 2 Sander Temme 2011-01-21 16:46:46 UTC
I don't have a support contract.  Your customer, whose name I'll keep out of this public forum, was told that this type of request has to come from the hardware vendor.  I work for the hardware vendor (mail Sander.Temme to verify).

Comment 3 Tomas Mraz 2011-01-24 14:25:36 UTC
I do not quite understand - Red Hat support told your customer that you should do the request? If so, please ask the customer to indicate in his Red Hat support ticket that this bugzilla number should be assigned to his support ticket.

Comment 4 Sander Temme 2011-01-24 15:10:24 UTC
(In reply to comment #3)
> I do not quite understand - Red Hat support told your customer that you should
> do the request? 

Yes, that is what I understand has happened.  

> If so, please ask the customer to indicate in his Red Hat
> support ticket that this bugzilla number should be assigned to his support
> ticket.

We're asking our customer file that support request.  Hopefully we can close the loop that way.

Comment 16 errata-xmlrpc 2011-07-21 07:41:02 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-1010.html


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