Bug 1302371

Summary: openssl: X509_check_issued() does not check BasicConstraints
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:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1301692    
Attachments:
Description Flags
Proposed patch
none
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-27 16:05:12 UTC
It was reported that X509_check_issued() did only check check the X509 Key Usage field for KU_KEY_CERT_SIGN but not the BasicConstraints field for CA:true. The missing check can cause X509_verify_cert() to pick up an invalid trust anchor when X509_V_FLAG_TRUSTED_FIRST is set.

Comment 2 Adam Mariš 2016-01-27 16:07:13 UTC
Created attachment 1118829 [details]
Proposed patch

Comment 4 Adam Mariš 2016-02-15 16:33:07 UTC
Created attachment 1127338 [details]
Proposed upstream patch 1

Comment 5 Adam Mariš 2016-02-15 16:33:37 UTC
Created attachment 1127339 [details]
Proposed upstream patch 2

Comment 6 Adam Mariš 2016-02-15 16:34:18 UTC
Created attachment 1127340 [details]
Proposed upstream patch 3

Comment 7 Adam Mariš 2016-02-15 16:34:41 UTC
Created attachment 1127341 [details]
Proposed upstream patch 4