Bug 83766
| Summary: | EVP_DecryptInit coredumps if ctx not initialized | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Henrik Nordstrom <hno> |
| Component: | openssl | Assignee: | Tomas Mraz <tmraz> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Brian Brock <bbrock> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 9 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Linux | ||
| URL: | http://www.aet.TU-Cottbus.DE/rt2/Ticket/Display.html?id=494 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2005-03-30 11:31:39 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Fixing in 0.9.7-6. Thanks! |
From Bugzilla Helper: User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.2.19-6.2.1 i586) Description of problem: Contrary to the documentation EVP_DecryptInit coredumps if the EVP context is not initialized. openssl-0.9.7-3 The OpenSSL team reports that this bug was fixed a couple of weeks ago. Also received the following oneliner which from another user: Date: Fri, 7 Feb 2003 11:57:35 -0800 From: Larry West <lwest> To: hno Subject: Re: [openssl.org #494] 0.9.7 EVP_DecryptInit coredumps if ctx not initialized I haven't checked, but this may already be fixed in the latest source. In any case, there's a one-line fix (I ran into the same problem): change EVP_DecryptInit() so that it calls EVP_CipherInit() rather than EVP_CipherInit_Ex(). > my one line fix would be to change line 239 > of crypto\evp\evp_enc.c (in EVP_DecryptInit()) > > from: > > return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, 0); > > to: > return EVP_CipherInit(ctx, cipher, key, iv, 0); > And the OpenSSL team response to this fix was: From: Dr. Stephen Henson [steve] Sent: Thursday, January 16, 2003 16:46 To: openssl-dev Subject: Re: Apparent bug: OpenSSL 0.9.7 crypto/evp_enc.c EVP_DecryptInit() Agreed, fix being checked in. Thanks for the report. Steve. The response I received from the OpenSSL team: Date: Fri, 7 Feb 2003 21:05:07 +0100 (MET) From: Stephen Henson via RT <rt> To: hno Cc: openssl-dev Subject: [openssl.org #494] 0.9.7 EVP_DecryptInit coredumps if ctx not initialized > Contrary to the documentation EVP_DecryptInit requires the ctx to be > initialized in OpenSSL 0.9.7 (RedHat openssl 0.9.7-3 i686) > This was fixed a couple of weeks back. The fix is in any 0.9.7 stable snapshot and will appear in 0.9.7. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: See OpenSSL bug report linked in the URL field. Additional info: