[OSSA 2012-020] create_lvm_image allocates dirty blocks (CVE-2012-5625)
Bug #1070539 reported by
Erica Windisch
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Thierry Carrez | ||
Folsom |
Fix Released
|
Medium
|
Thierry Carrez | ||
OpenStack Security Advisory |
Fix Released
|
Undecided
|
Thierry Carrez |
Bug Description
libvirt's create_lvm_image function will create LVM images on new logical volumes.
Logical volumes are simply linear mappings on a physical volume (PV).
Previously deleted logical volumes leave their dirty blocks (containing user and image data) on the PV. They are not zero'ed.
New LVs will make basic linear mappings to these blocks, leading information disclosure as these LVs are passed to guest virtual machines. LVM's lvcreate does not zero these blocks, nor does the device-mapper configuration used by LVM create any snapshots by default.
One solution may be to use dm-zero as a base image, apply dm-snapshot to a newly-created LV, and pass the snapshot's block device to the guest.
Changed in nova: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
information type: | Private Security → Public Security |
Changed in nova: | |
milestone: | none → grizzly-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-2 → 2013.1 |
summary: |
- create_lvm_image allocates dirty blocks + [OSSA 2012-020] create_lvm_image allocates dirty blocks (CVE-2012-5625) |
Changed in ossa: | |
status: | New → Fix Released |
assignee: | nobody → Thierry Carrez (ttx) |
To post a comment you must log in.
Hmm, thought we had that covered. Pulling in Vish to discuss.
Eric: I suspect that would affect Folsom as well, how about Essex or Diablo ?