From e2bf3afa356ed22bbde816077ec92f016955b658 Mon Sep 17 00:00:00 2001 From: Fernando Rodrigues Date: Mon, 7 Sep 2026 21:11:17 +1000 Subject: [PATCH] xen: patch with XSA-512 Xen Security Advisory CVE-2026-79604 / XSA-512 version 3 oxenstored: Unbounded accumulation of watches Oxenstored maintains two datastructures about watches; one global trie, and one hashtable tracked per domain. When a xenbus reconnect is requested, watches are not cleared out of the global trie. A guest can cause unbounded memory usage in oxenstored. This can lead to a system-wide DoS. This is the Xen oxenstored patch. https://xenbits.xenproject.org/xsa/advisory-512.html Signed-off-by: Fernando Rodrigues (cherry picked from commit a36b0d5d62e07851b4a9bd65d5f1617d11604593) --- pkgs/by-name/xe/xen/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/xe/xen/package.nix b/pkgs/by-name/xe/xen/package.nix index 7e090379405b..dbf92bb8e9ee 100644 --- a/pkgs/by-name/xe/xen/package.nix +++ b/pkgs/by-name/xe/xen/package.nix @@ -200,6 +200,15 @@ stdenv.mkDerivation (finalAttrs: { url = "https://xenbits.xenproject.org/xsa/xsa511-4.20.patch"; hash = "sha256-rQTQ0UmDKo5Oi8THUHfb8W6/1OY2S3VEowmJf7Tb+1o="; }) + + (fetchpatch { + url = "https://xenbits.xenproject.org/xsa/xsa512-1.patch"; + hash = "sha256-Xky7ddRSd1d+Y/voEmsyiyMsU7NX/WM2/yOviaLv5gU="; + }) + (fetchpatch { + url = "https://xenbits.xenproject.org/xsa/xsa512-2.patch"; + hash = "sha256-4LgqC1F22kFjiVWgiSb1hZazbBF2Fziiif0Scv+ynho="; + }) ] ++ optionals (versionOlder finalAttrs.version "4.21") [ # Patch `libxl` to search for `qemu-system-i386` properly.