Skip to contentSkip to conversation

Xen Security Advisory 514 v2 (CVE-2026-79607) - Xenstore: Guests can crash xenstored during Live Update

PATCH Xen.org security team 1 participant 1 message Oct 13

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Xen Security Advisory CVE-2026-79607 / XSA-514
version 2

Xenstore: Guests can crash xenstored during Live Update

UPDATES IN VERSION 2
====================

Public release.

ISSUE DESCRIPTION
=================

During Xenstore live update the state record for a Xenstore watch with specified watch depth is written with two bytes missing. This results in an inconsistent state when reading the state back in the new Xenstore, causing a crash of Xenstore or wrong Xenstore data.

IMPACT
======

An unprivileged guest can cause the Xenstore service to crash or to get corrupted during a live update of Xenstore, causing a DoS of the host regarding further domain administration actions.

VULNERABLE SYSTEMS
==================

Only systems running Xen 4.22 are vulnerable. Systems running Xen 4.21 or older are not vulnerable.

Only systems running C xenstore either as daemon or as stubdom are vulnerable. Systems running oxenstored are not vulnerable.

MITIGATION
==========

Not doing a live update of Xenstore avoids the vulnerability.

Switching to oxenstored avoids the vulnerability.

CREDITS
=======

This issue was discovered by Andrii Sultanov of Vates.

RESOLUTION
==========

Applying the attached patch resolves this issue.

Note that patches for released versions are generally prepared to apply to the stable branches, and may not apply cleanly to the most recent release tarball. Downstreams are encouraged to update to the tip of the stable branch before applying these patches.

xsa514.patch xen-unstable - Xen 4.22.x

$ sha256sum xsa514*
8774d9b45db75851560db70a9be06d5e379311bd3042d9049bc29456e141ae7d  xsa514.patch
$

DEPLOYMENT DURING EMBARGO
=========================

Deployment of the patches described above (or others which are substantially similar) is permitted during the embargo, even on public-facing systems with untrusted guest users and administrators. Not doing a live update of Xenstore as a mitigation is permitted. Switching to oxenstored is not permitted, as this is a guest visible configuration change.

But: Distribution of updated software is prohibited (except to other members of the predisclosure list).

Predisclosure list members who wish to deploy significantly different patches and/or mitigations, please contact the Xen Project Security Team.

(Note: this during-embargo deployment notice is retained in post-embargo publicly released Xen Project advisories, even though it is then no longer applicable. This is to enable the community to have oversight of the Xen Project Security Team's decisionmaking.)

For more information about permissible uses of embargoed information, consult the Xen Project community's agreed Security Policy:
http://www.xenproject.org/security-policy.html
-----BEGIN PGP SIGNATURE-----

iQFABAEBCAAqFiEEI+MiLBRfRHX6gGCng/4UyVfoK9kFAmrOIa8MHHBncEB4ZW4u b3JnAAoJEIP+FMlX6CvZB5YH+wf2251Z1DOOtQcCB1LV9vsunIaEGd5l7pHdIZ3a 3j9A6r/KGc+RtSgDB9TWCMgjKLbBfwivOxBHHhxjhejsfnUKUJNryJFLn86plFdu VRrdk5pHmypNgb9mCf3KQ8BQputnuAu36QuIlw3F5z5XAanmyurT1QJKV0RXLrQF J3ROkGAGYp6gHhPDBFwCi/dWE/I1PRfvi53oyPPflj2kAh3DPwycpPQV0JZommjC ljh1uvyPMnwr76nnh5e4LmismWa9Gks/p3BQuF01w3Prj/vR4wRxLEMCPjhK6xV6 PLcKgrt+DGn/xwj7fEdaAVlXyh4YcxQlmUWHzaNm94Knq+8=
=BuOZ
-----END PGP SIGNATURE-----

From 68163e7329949f509d60c239e04e5ed7f0c6bc0e Mon Sep 17 00:00:00 2001
From: Juergen Gross <[email protected]>
Date: Fri, 18 Sep 2026 12:25:07 +0200
Subject: [PATCH] tools/xenstored: fix live update with watches specifying
depth

Due to a typo the state record for a watch specifying a depth is written only partially. Instead of using the correct length of the xs_state_watch_ext structure only the length of the xs_state_watch structure was used when writing the data.

Fix that by using the correct length.

This is XSA-514 / CVE-2026-79607

Fixes db98de120cb8 ("tools/xenstored: add depth information to watches")
---
 tools/xenstored/watch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/xenstored/watch.c +1 -1
index c143e6fbcf..7097ab0b0d 100644
@@ -354,7 +354,7 @@ const char *dump_state_watches(FILE *fp, struct connection *conn,
 			return "Dump watch state error";
 
 		if (watch->depth >= 0) {
-			if (fwrite(&swe, sizeof(sw), 1, fp) != 1)
+			if (fwrite(&swe, sizeof(swe), 1, fp) != 1)
 				return "Dump watch state ext error";
 		} else {
 			if (fwrite(&sw, sizeof(sw), 1, fp) != 1)
Signature · 1 line
2.55.0