Bug 1301691

Summary: openssl: verify function ignores X509_V_ERR_INVALID_PURPOSE in verify callback
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bbaranow, bmaxwell, cdewolf, cheimes, csutherl, dandread, darran.lofthouse, dknox, jason.greene, jawilson, jclere, jdoyle, lgao, mbabacek, myarboro, osoukup, pgier, psakar, pslavice, rsvoboda, security-response-team, tmraz, twalsh, vtunka, weli
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-24 06:45:51 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:
Bug Depends On:    
Bug Blocks: 1301692    
Attachments:
Description Flags
Proposed upstream patch 1
none
Proposed upstream patch 2
none
Proposed upstream patch 3
none
Proposed upstream patch 4 none

Description Adam Mariš 2016-01-25 17:19:15 UTC
It was reported that openssl verify function ignores X509_V_ERR_INVALID_PURPOSE in its verify callback when verifying root and intermediate certificates with extended key
usage extension.

Comment 3 Adam Mariš 2016-02-15 16:29:22 UTC
Created attachment 1127332 [details]
Proposed upstream patch 1

Comment 4 Adam Mariš 2016-02-15 16:29:51 UTC
Created attachment 1127333 [details]
Proposed upstream patch 2

Comment 5 Adam Mariš 2016-02-15 16:30:17 UTC
Created attachment 1127335 [details]
Proposed upstream patch 3

Comment 6 Adam Mariš 2016-02-15 16:30:47 UTC
Created attachment 1127336 [details]
Proposed upstream patch 4

Comment 8 Huzaifa S. Sidhpurwala 2017-03-24 06:38:31 UTC
This patch was applied to upstream master branch to fix this issue:

https://github.com/openssl/openssl/commit/33cc5dde478ba5ad79f8fd4acd8737f0e60e236e