* [PATCH v2] docs: migration: Clarify the security posture
@ 2026-11-24 13:06 Fabiano Rosas
2026-11-24 13:18 ` Peter Maydell
0 siblings, 1 reply; 4+ messages in thread
From: Fabiano Rosas @ 2026-11-24 13:06 UTC (permalink / raw)
To: qemu-devel
Cc: Peter Xu, Daniel P . Berrangé, Peter Maydell,
Pierrick Bouvier
We have documented[0] the scenarios in which a migration bug is
considered for a security vulnerability but some ambiguity still
remains, mostly because of the mention of live migration in the
untrusted entities list. Remove that mention and expand the "Security
boundary scope" and "Sensitive configurations" sections with migration
content.
0 - commit 8b6405a493a ("docs: Add security considerations for migration")
Co-authored-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
---
v2:
Picked PeterM's version for the "Security boundary scope" part.
---
docs/system/security.rst | 46 +++++++++++++++++++++++++++++++---------
1 file changed, 36 insertions(+), 10 deletions(-)
diff --git a/docs/system/security.rst b/docs/system/security.rst
index c0254fef113..917cd8bbf83 100644
--- a/docs/system/security.rst
+++ b/docs/system/security.rst
@@ -28,7 +28,7 @@ malicious:
- Guest
- User-facing interfaces (e.g. VNC, SPICE, WebSocket)
-- Network protocols (e.g. NBD, live migration)
+- Network protocols (e.g. NBD)
- User-supplied files (e.g. disk images, kernels, device trees)
- Passthrough devices (e.g. PCI, USB)
@@ -133,15 +133,21 @@ an issue as a normal bug.
that affect the level 0 QEMU process. While these bugs should be
fixed, they will not be triaged as security flaws at this time.
-* **migration/snapshots**. Migration failures and snapshot load
- failures are considered part of normal operation as long as the
- source virtual machine and savevm file, respectively, are still
- functional. Aborting the QEMU process at the migration/snapshot
- destination is similarly not considered a security issue. The
- migration stream is assumed to be secure as long as the design
- principles described in the Architecture section are held, in
- which case plain manipulation of the stream is not considered as
- an attack vector.
+* **migration/snapshots**. The user must deploy QEMU following the
+ design principles described in the Architecture section to ensure
+ that the migration stream is secure. Plain manipulation of the
+ stream is not considered to be an attack vector. This means that:
+
+ * Migration failures and snapshot load failures are part of normal
+ operation; these are not bugs as long as the source virtual
+ machine or savevm file are still functional.
+ * Aborts, crashes or misbehaviour of the destination QEMU due to an
+ externally manipulated migration stream are bugs, but not security
+ issues.
+ * A crash of the destination QEMU that can be triggered by a guest
+ manipulating a device on the source QEMU before a migration may be
+ a security issue, if it meets the other criteria we document for
+ security issues.
* **uninitialized stack variables**. If the bug scenario relies on
undefined behaviour from stack variables that lack explicit
@@ -343,3 +349,23 @@ authenticated client to send the bytes that will trigger any QEMU
misbehavior. Use of a hardened connection is therefore an
environmental factor used in determining the risk and severity of a
network-triggered bug.
+
+Migration (including live updates and snapshots)
+''''''''''''''''''''''''''''''''''''''''''''''''
+
+The act of moving a guest around via the various migration mechanisms
+requires careful consideration of security boundaries being crossed.
+A live migration must only be allowed to occur if measures are in
+place to secure the transport being used against access or
+modification. In some configurations QEMU supports encryption of the
+migration stream. For setups that don't make use of this feature, it's
+the network owner's responsibility to provide proper isolation.
+
+For the non-live modalities such as snapshots, the media used to store
+the migration data (e.g. qcow2 file) must be accessible only to the
+entity in control of the migration infrastructure (e.g. cloud
+administrator or virtual machine management software). The guest owner
+is explicitly excluded in order to safeguard the infrastructure
+provider as well as avoid security policy conflicts. Moreover, end
+users operating QEMU directly should take care to only load a snapshot
+or migration from media originating from a trusted source.
--
2.53.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2] docs: migration: Clarify the security posture
2026-11-24 13:06 [PATCH v2] docs: migration: Clarify the security posture Fabiano Rosas
@ 2026-11-24 13:18 ` Peter Maydell
2026-11-24 13:43 ` Peter Xu
0 siblings, 1 reply; 4+ messages in thread
From: Peter Maydell @ 2026-11-24 13:18 UTC (permalink / raw)
To: Fabiano Rosas
Cc: qemu-devel, Peter Xu, Daniel P . Berrangé, Pierrick Bouvier
On Tue, 24 Nov 2026 at 13:06, Fabiano Rosas <farosas@suse.de> wrote:
>
> We have documented[0] the scenarios in which a migration bug is
> considered for a security vulnerability but some ambiguity still
> remains, mostly because of the mention of live migration in the
> untrusted entities list. Remove that mention and expand the "Security
> boundary scope" and "Sensitive configurations" sections with migration
> content.
>
> 0 - commit 8b6405a493a ("docs: Add security considerations for migration")
What's this line ?
>
> Co-authored-by: Peter Maydell <peter.maydell@linaro.org>
> Signed-off-by: Fabiano Rosas <farosas@suse.de>
> ---
> v2:
> Picked PeterM's version for the "Security boundary scope" part.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] docs: migration: Clarify the security posture
2026-11-24 13:18 ` Peter Maydell
@ 2026-11-24 13:43 ` Peter Xu
2026-11-24 14:00 ` Fabiano Rosas
0 siblings, 1 reply; 4+ messages in thread
From: Peter Xu @ 2026-11-24 13:43 UTC (permalink / raw)
To: Peter Maydell
Cc: Fabiano Rosas, qemu-devel, Daniel P . Berrangé,
Pierrick Bouvier
On Tue, Nov 24, 2026 at 01:18:45PM +0000, Peter Maydell wrote:
> On Tue, 24 Nov 2026 at 13:06, Fabiano Rosas <farosas@suse.de> wrote:
> >
> > We have documented[0] the scenarios in which a migration bug is
^^^
> > considered for a security vulnerability but some ambiguity still
> > remains, mostly because of the mention of live migration in the
> > untrusted entities list. Remove that mention and expand the "Security
> > boundary scope" and "Sensitive configurations" sections with migration
> > content.
> >
> > 0 - commit 8b6405a493a ("docs: Add security considerations for migration")
>
> What's this line ?
My bet is the reference [0] used above.
>
> >
> > Co-authored-by: Peter Maydell <peter.maydell@linaro.org>
> > Signed-off-by: Fabiano Rosas <farosas@suse.de>
> > ---
> > v2:
> > Picked PeterM's version for the "Security boundary scope" part.
>
> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
--
Peter Xu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] docs: migration: Clarify the security posture
2026-11-24 13:43 ` Peter Xu
@ 2026-11-24 14:00 ` Fabiano Rosas
0 siblings, 0 replies; 4+ messages in thread
From: Fabiano Rosas @ 2026-11-24 14:00 UTC (permalink / raw)
To: Peter Xu, Peter Maydell
Cc: qemu-devel, Daniel P . Berrangé, Pierrick Bouvier
Peter Xu <peterx@redhat.com> writes:
> On Tue, Nov 24, 2026 at 01:18:45PM +0000, Peter Maydell wrote:
>> On Tue, 24 Nov 2026 at 13:06, Fabiano Rosas <farosas@suse.de> wrote:
>> >
>> > We have documented[0] the scenarios in which a migration bug is
> ^^^
>
>> > considered for a security vulnerability but some ambiguity still
>> > remains, mostly because of the mention of live migration in the
>> > untrusted entities list. Remove that mention and expand the "Security
>> > boundary scope" and "Sensitive configurations" sections with migration
>> > content.
>> >
>> > 0 - commit 8b6405a493a ("docs: Add security considerations for migration")
>>
>> What's this line ?
>
> My bet is the reference [0] used above.
>
Yeah, I think the commit reference in the middle of the paragraph makes
it harder to read.
>>
>> >
>> > Co-authored-by: Peter Maydell <peter.maydell@linaro.org>
>> > Signed-off-by: Fabiano Rosas <farosas@suse.de>
>> > ---
>> > v2:
>> > Picked PeterM's version for the "Security boundary scope" part.
>>
>> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
>
> Reviewed-by: Peter Xu <peterx@redhat.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-24 14:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 13:06 [PATCH v2] docs: migration: Clarify the security posture Fabiano Rosas
2026-11-24 13:18 ` Peter Maydell
2026-11-24 13:43 ` Peter Xu
2026-11-24 14:00 ` Fabiano Rosas
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.