Nova may fail to delete images in resize state

Bug #1489775 reported by Sergey Nikitin
276
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
High
Sergey Nikitin
6.0.x
Fix Released
High
Denis Meltsaykin
6.1.x
Fix Released
High
Sergey Nikitin
7.0.x
Fix Released
High
Alexander Gubanov
8.0.x
Fix Released
High
Sergey Nikitin

Bug Description

If an
authenticated user deletes an instance while it is in resize state,
it will cause the original instance to not be deleted from the
compute node it was running on. An attacker can use this to launch a
denial of service attack. All Nova setups are affected.

Upstream bug: https://bugs.launchpad.net/nova/+bug/1392527

CVE References

Revision history for this message
Sergey Nikitin (snikitin) wrote :
Changed in mos:
status: In Progress → Fix Committed
Revision history for this message
Sergey Nikitin (snikitin) wrote :
description: updated
Revision history for this message
Vitaly Gusev (vgusev) wrote :

Verified on 6.0 with packets *nova*mira35+git.2480ca2.bea7645_all.deb from mirror http://osci-obs.vm.mirantis.net:82/ubuntu-fuel-6.0-updates-stable-11319/ubuntu

Revision history for this message
Vadim Rovachev (vrovachev) wrote :

On 6.1 bug not reproduced after apply patches for bug https://bugs.launchpad.net/mos/+bug/1466077

Revision history for this message
Timur Nurlygayanov (tnurlygayanov) wrote :

Marked as Fix Released for 6.1 based on comments from Vadim

Revision history for this message
Vitaly Sedelnik (vsedelnik) wrote :

Back to Fix Committed - for updates the convention is to set Fix Released after the publication of MU to indicate that the fix could be consumed from updates mirrors

information type: Private Security → Public Security
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Change abandoned on openstack/nova (openstack-ci/fuel-8.0/liberty)

Change abandoned by Roman Podoliaka <email address hidden> on branch: openstack-ci/fuel-8.0/liberty
Review: https://review.fuel-infra.org/13290
Reason: Fixed upstream with another change-id - I9866d8e32e99b9f907921f4b226edf7b62bd83a7

tags: added: on-verification
Revision history for this message
Alexander Gubanov (ogubanov) wrote :

I've verified on MOS7.0 (build 301) - all works fine!
Proof: http://pastebin.com/UpiA10ve

tags: removed: on-verification
Revision history for this message
Alexander Gubanov (ogubanov) wrote :

I've verified on MOS 8.0 (build 429) - works!
Proof http://pastebin.com/UGippZjc

Revision history for this message
Denis Meltsaykin (dmeltsaykin) wrote :

It looks like nobody merged this https://review.fuel-infra.org/#/c/11319/, I'm reopening bug and retargeting it to 6.0-mu-8

Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to openstack/nova (openstack-ci/fuel-6.0-updates/2014.2)

Reviewed: https://review.fuel-infra.org/11319
Submitter: Denis V. Meltsaykin <email address hidden>
Branch: openstack-ci/fuel-6.0-updates/2014.2

Commit: 39826c4227791aa1d0680fc8f40ee6713d886ef4
Author: Sergey Nikitin <email address hidden>
Date: Thu Feb 18 08:25:17 2016

Fixed fail when user tries to delete images in resize state

If InstanceNotFound error is thrown from decorated function,
migration status should be set to 'error', without checking
current migration status.

Conflicts:
        nova/compute/manager.py

Backport patch requires additional method obj_as_admin() in
NovaBase object, so this patch was squashed with
I556d93741f1ee965c960c6099fbf2c57f31c6744

Closes-Bug: #1489775

Change-Id: I95b0ff2be254a2645ab3ddd51b761a8a24c5a751
(cherry picked from commit 500a2372a3921dbb1728fe82c3a6efbb06f373f0)

tags: added: on-automation
Revision history for this message
Alexander Gromov (agromov) wrote :

Link to the automated test: https://review.gerrithub.io/#/c/279919/

tags: added: covered-automated-test
removed: on-automation
tags: added: feature-security
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.