Bug 1127259 (CVE-2014-5251)

Summary: CVE-2014-5251 openstack-keystone: revocation events are broken with mysql
Product: [Other] Security Response Reporter: Vasyl Kaigorodov <vkaigoro>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: abaron, aortega, apevec, apevec, ayoung, bfilippov, chazlett, chrisw, dallan, gkotton, gmollett, itamar, jonathansteffan, jose.castro.leon, jrusnack, lhh, lpeer, markmc, nkinder, p, rbryant, sclewis, yeylon
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
It was found that the MySQL token driver did not correctly store token expiration times, which prevented manual token revocation. Only OpenStack Identity setups configured to make use of revocation events were affected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-02 19:46:40 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: 1131344, 1131345    
Bug Blocks: 1127260    

Description Vasyl Kaigorodov 2014-08-06 13:22:25 UTC
It was reported [1] that since mysql only stores timestamps with an accuracy of seconds rather than microseconds, doing comparisons of token expiration times will fail and tokens will not show up as being revoked.
CVE request has been sent to oss-security by upstream [2]

Upstream fix:
https://git.openstack.org/cgit/openstack/keystone/commit/?id=7aee6304f653475a4130dc3e5be602e91481f108

[1]: https://bugs.launchpad.net/keystone/+bug/1347961
[2]: http://seclists.org/oss-sec/2014/q3/296

Comment 2 Vasyl Kaigorodov 2014-08-06 14:18:03 UTC
It's stated in the Launchpad ticket that this would only impact Icehouse (openstack-2014.X) since that's where revocation events were added.

Comment 3 Garth Mollett 2014-08-15 05:36:04 UTC
Statement:

This issue does not affected openstack-keystone as shipped with Red Hat Enterprise Linux OpenStack Platform 4.0.

Comment 4 Garth Mollett 2014-08-15 05:39:56 UTC
Keystone in RHEL-OSP-5 (Icehouse) includes this code, although it is marked as experimental in Icehouse upstream, we do include an example of how to enable it in our documentation and thus will need to release an erratum.

Comment 6 Martin Prpič 2014-08-25 08:44:07 UTC
IssueDescription:

It was found that the MySQL token driver did not correctly store token expiration times, which prevented manual token revocation. Only OpenStack Identity setups configured to make use of revocation events were affected.

Comment 8 errata-xmlrpc 2014-09-02 17:59:00 UTC
This issue has been addressed in following products:

  OpenStack 5 for RHEL 6

Via RHSA-2014:1122 https://rhn.redhat.com/errata/RHSA-2014-1122.html

Comment 9 errata-xmlrpc 2014-09-02 17:59:22 UTC
This issue has been addressed in following products:

  OpenStack 5 for RHEL 7

Via RHSA-2014:1121 https://rhn.redhat.com/errata/RHSA-2014-1121.html