Bug 1231817 (CVE-2015-1851)

Summary: CVE-2015-1851 openstack-cinder: Host file disclosure through qcow2 backing file
Product: [Other] Security Response Reporter: Vasyl Kaigorodov <vkaigoro>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact: nlevinki <nlevinki>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: abaron, aortega, apevec, apevec, ayoung, carnil, chrisw, dallan, eharney, gkotton, gmollett, itamar, karlthered, lhh, lpeer, markmc, mmagr, p, rbryant, sclewis, security-response-team, srevivo
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
A flaw was found in the OpenStack Block Storage (cinder) upload-to-image functionality. When processing a malicious qcow2 header, cinder could be tricked into reading an arbitrary file from the cinder host.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-19 00:44:01 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: 1231821, 1231822, 1232925, 1232926, 1232927, 1232928    
Bug Blocks: 1231818    

Description Vasyl Kaigorodov 2015-06-15 12:49:37 UTC
Title: Host file disclosure through qcow2 backing file
Reporter: Bastian Blank (credativ)
Products: Cinder and Nova
Affects: up to 2014.1.4 and 2014.2 versions through 2014.2.2

Description:
Bastian Blank from credativ reported a vulnerability in Cinder and Nova.
By overwriting an image with a malicious qcow2 header, an authenticated
user may mislead Cinder upload-to-image action, resulting in disclosure
of any file from the Cinder server. A similar vulnerability in Nova can
also be used by an authenticated user to trick Nova during a snapshot
upload, resulting in disclosure of any file for which the Nova process
user has access to. All Cinder and Nova setups are affected.

Upstream bug: https://bugs.launchpad.net/cinder/+bug/1415087
Suggested patches can be found here:
https://bugs.launchpad.net/cinder/+bug/1415087/+attachment/4362440/+files/0001-Disallow-backing-files-when-uploading-volumes-to-ima.patch
https://bugs.launchpad.net/cinder/+bug/1415087/+attachment/4340460/+files/0001-Require-source-image-format-for-convert_image-calls.patch

Comment 1 Vasyl Kaigorodov 2015-06-15 12:52:24 UTC
Created openstack-cinder tracking bugs for this issue:

Affects: fedora-all [bug 1231821]
Affects: openstack-rdo [bug 1231822]

Comment 4 errata-xmlrpc 2015-07-02 21:30:55 UTC
This issue has been addressed in the following products:

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

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