From a8cdacffc2cf6ef449a913ba86eed7a1f3220aea Mon Sep 17 00:00:00 2001 From: Fernando Rodrigues Date: Tue, 17 Mar 2026 22:48:56 +1100 Subject: [PATCH] xen: patch with XSA-480 Xen Security Advisory CVE-2026-23554 / XSA-480 version 3 Use after free of paging structures in EPT The Intel EPT paging code uses an optimization to defer flushing of any cached EPT state until the p2m lock is dropped, so that multiple modifications done under the same locked region only issue a single flush. Freeing of paging structures however is not deferred until the flushing is done, and can result in freed pages transiently being present in cached state. Such stale entries can point to memory ranges not owned by the guest, thus allowing access to unintended memory regions. Privilege escalation, Denial of Service (DoS) affecting the entire host, and information leaks are possible impacts of this vulnerability. Signed-off-by: Fernando Rodrigues --- pkgs/by-name/xe/xen/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/xe/xen/package.nix b/pkgs/by-name/xe/xen/package.nix index 08e60651d81c..737d93638b19 100644 --- a/pkgs/by-name/xe/xen/package.nix +++ b/pkgs/by-name/xe/xen/package.nix @@ -198,6 +198,12 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-2o6RYyT4Nrg1le6BUOQ3AwedorCvxvKao2uMYWrUV1Y="; }) + # XSA #480 + (fetchpatch { + url = "https://xenbits.xenproject.org/xsa/xsa480.patch"; + hash = "sha256-mHoY+Y8klwLYOo4LZCwYcNsB1BcBbSa1nQOn3NueDdI="; + }) + # patch `libxl` to search for `qemu-system-i386` properly. (Before 4.21) (fetchpatch { url = "https://github.com/xen-project/xen/commit/f6281291704aa356489f4bd927cc7348a920bd01.diff?full_index=1";