xen: patch with XSA-476

Xen Security Advisory CVE-2025-58149 / XSA-476

         Incorrect removal of permissions on PCI device unplug

When passing through PCI devices, the detach logic in libxl won't remove
access permissions to any 64bit memory BARs the device might have.  As a
result a domain can still have access any 64bit memory BAR when such
device is no longer assigned to the domain.

For PV domains the permission leak allows the domain itself to map the memory
in the page-tables.  For HVM it would require a compromised device model or
stubdomain to map the leaked memory into the HVM domain p2m.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>

(cherry picked from commit ecbfebd5f8)
This commit is contained in:
Fernando Rodrigues
2025-10-24 23:27:04 +11:00
parent e948360ccb
commit da8fcbb06f

View File

@@ -44,5 +44,11 @@ buildXenPackage.override { inherit python3Packages; } {
url = "https://xenbits.xen.org/xsa/xsa475-4.19-2.patch";
hash = "sha256-257GucAOUoK0gNSDglU7F+qvaT47FebFPW8hYzMp9XE=";
})
# XSA 476
(fetchpatch {
url = "https://xenbits.xen.org/xsa/xsa476-4.20.patch";
hash = "sha256-nZUHcMr9RpQqrazG+RtTw+/s1gzqN1D565RuQjuALTQ=";
})
];
}