[OSSA 2015-011] Format-guessing and file disclosure in image convert (CVE-2015-1850, CVE-2015-1851)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
High
|
Eric Harney | ||
Icehouse |
Fix Released
|
High
|
Eric Harney | ||
Juno |
Fix Released
|
High
|
Eric Harney | ||
Kilo |
Fix Released
|
High
|
Eric Harney | ||
OpenStack Compute (nova) |
Invalid
|
High
|
Tony Breeds | ||
OpenStack Security Advisory |
Fix Released
|
High
|
Tristan Cacqueray |
Bug Description
Cinder does not provide input format to several calls of "qemu-img convert". This allows the attacker to play the format guessing by providing a volume with a qcow2 signature. If this signature contains a base file, this file will be read by a process running as root and embedded in the output. This bug is similar to CVE-2013-1922.
Tested with: lvm backed volume storage, it may apply to others as well
Steps to reproduce:
- create volume and attach to vm,
- create a qcow2 signature with base-file[1] from within the vm and
- trigger upload to glance with "cinder upload-to-image --disk-type qcow2"[2].
The image uploaded to glance will have /etc/passwd from the cinder-volume host embedded.
Affected versions: tested on 2014.1.3, found while reading 2014.2.1
Fix: Always specify both input "-f" and output format "-O" to "qemu-img convert". The code is in module cinder.
Bastian Blank
[1]: qemu-img create -f qcow2 -b /etc/passwd /dev/vdb
[2]: The disk-type != raw triggers the use of "qemu-img convert"
Changed in cinder: | |
status: | New → Confirmed |
Changed in cinder: | |
assignee: | nobody → Mike Perez (thingee) |
Changed in nova: | |
status: | Confirmed → Triaged |
Changed in cinder: | |
status: | Confirmed → Triaged |
Changed in ossa: | |
status: | Confirmed → Triaged |
assignee: | nobody → Tristan Cacqueray (tristan-cacqueray) |
summary: |
- Format-guessing and file disclosure in image convert + Format-guessing and file disclosure in image convert (CVE-2015-1850) |
description: | updated |
Changed in cinder: | |
assignee: | Tristan Cacqueray (tristan-cacqueray) → Eric Harney (eharney) |
Changed in ossa: | |
status: | Triaged → In Progress |
summary: |
- Format-guessing and file disclosure in image convert (CVE-2015-1850) + [OSSA 2015-011] Format-guessing and file disclosure in image convert + (CVE-2015-1850) |
Changed in ossa: | |
status: | In Progress → Fix Committed |
Changed in cinder: | |
milestone: | none → liberty-1 |
Changed in cinder: | |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | liberty-1 → 7.0.0 |
Since this report concerns a possible security risk, an incomplete security advisory task has been added while the core security reviewers for the affected project or projects confirm the bug and discuss the scope of any vulnerability along with potential solutions.