Bug 1267516 - (CVE-2015-5286) CVE-2015-5286 openstack-glance: Storage overrun by deleting images
CVE-2015-5286 openstack-glance: Storage overrun by deleting images
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20151001,repor...
: Security
Depends On: 1268208 1268209 1269275 1269276 1269277 1269278
Blocks: 1263515 1267518
  Show dependency treegraph
 
Reported: 2015-09-30 05:10 EDT by Adam Mariš
Modified: 2016-11-08 10:55 EST (History)
21 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
A race-condition flaw was discovered in the OpenStack Image service (glance). When images in the upload state were deleted using a token close to expiration, untracked image data could accumulate in the back end. Because untracked data does not count towards the storage quota, an attacker could use this flaw to cause a denial of service through resource exhaustion.
Story Points: ---
Clone Of:
: 1272824 (view as bug list)
Environment:
Last Closed: 2015-10-15 17:40:36 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Master patch (6.83 KB, patch)
2015-09-30 05:12 EDT, Adam Mariš
no flags Details | Diff
Stable/juno patch (7.09 KB, patch)
2015-09-30 05:12 EDT, Adam Mariš
no flags Details | Diff
Stable/kilo patch (7.02 KB, patch)
2015-09-30 05:13 EDT, Adam Mariš
no flags Details | Diff

  None (edit)
Description Adam Mariš 2015-09-30 05:10:08 EDT
A vulnerability in openstack-glance allowing malicous user to cause DoS was reported. By deleting images that are being uploaded using a token that is about to expire, a malicious user can overcome the storage quota and accumulate untracked image data in the backend resulting in potential resource exhaustion and denial of service. All Glance setups using the V1 API are affected and all setups using the V2 API with the registry db_api enabled are affected.

Affects: <=2014.2.3, >=2015.1.0, <=2015.1.1
Comment 1 Adam Mariš 2015-09-30 05:12 EDT
Created attachment 1078568 [details]
Master patch
Comment 2 Adam Mariš 2015-09-30 05:12 EDT
Created attachment 1078569 [details]
Stable/juno patch
Comment 3 Adam Mariš 2015-09-30 05:13 EDT
Created attachment 1078570 [details]
Stable/kilo patch
Comment 6 Tristan Cacqueray 2015-10-01 13:23:54 EDT
Not that it's now public upstream and proposed patch missed a fix for import task API V2: https://review.openstack.org/#/q/Ia6e1fe0d27b13b920ee7e728feb5305dec77e066,n,z
Comment 7 Tristan Cacqueray 2015-10-01 13:24:18 EDT
s/Not/Note/
Comment 8 Martin Prpič 2015-10-02 03:28:25 EDT
Public via:

https://bugs.launchpad.net/glance/+bug/1498163
Comment 9 Martin Prpič 2015-10-02 03:31:09 EDT
Created openstack-glance tracking bugs for this issue:

Affects: openstack-rdo [bug 1268208]
Affects: fedora-all [bug 1268209]
Comment 10 Tristan Cacqueray 2015-10-02 09:38:30 EDT
Martin, attachments were correct, it just that this need an extra set of patch to fully address this CVE.

You can preview the upcoming advisory (including all required changes review url) here: https://review.openstack.org/#/c/229950/2/ossa/OSSA-2015-020.yaml
Comment 11 Flavio Percoco 2015-10-05 00:23:37 EDT
Hi, I think we are missing BZs for OSP5/OSP6/OSP7 ?
Comment 12 Martin Prpič 2015-10-05 11:10:57 EDT
(In reply to Tristan Cacqueray from comment #10)
> Martin, attachments were correct, it just that this need an extra set of
> patch to fully address this CVE.
> 
> You can preview the upcoming advisory (including all required changes review
> url) here: https://review.openstack.org/#/c/229950/2/ossa/OSSA-2015-020.yaml

Ah, ok, I thought the ones you linked to were meant to replace the old ones.

(In reply to Flavio Percoco from comment #11)
> Hi, I think we are missing BZs for OSP5/OSP6/OSP7 ?

These will be filed as soon as we're done with the analysis of this issue. Stay tuned!
Comment 14 Summer Long 2015-10-14 20:09:16 EDT
Acknowledgements:

Red Hat would like to thank the OpenStack project for reporting this issue. Upstream acknowledges Mike Fedosin and Alexei Galkin of Mirantis as the original reporters.
Comment 15 errata-xmlrpc 2015-10-15 08:33:25 EDT
This issue has been addressed in the following products:

  OpenStack 5 for RHEL 6
  OpenStack 5 for RHEL 7
  OpenStack 6 for RHEL 7
  OpenStack 7 For RHEL 7

Via RHSA-2015:1897 https://rhn.redhat.com/errata/RHSA-2015-1897.html

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