Out-of-bounds write in Xen - CVE-2025-58147

 

Out-of-bounds write in Xen - CVE-2025-58147

Published: October 21, 2025


Vulnerability identifier: #VU117432
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-58147
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a malicious guest to escalate privileges on the system.

The vulnerability exists due to a boundary error within the vpmask_set() function when processing HV_VP_SET Sparse format. A malicious guest can initiate  hypercall to trigger an out-of-bounds write and execute arbitrary code on the hypervisor. 


Affected software

Xen
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP6
Debian Linux
SUSE Manager Server 4.3
SUSE Manager Retail Branch Server 4.3
SUSE Manager Proxy 4.3
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Linux Enterprise Micro
SUSE Linux Enterprise Micro for Rancher
Basesystem Module
Server Applications Module
openSUSE Leap
Fedora
Citrix XenServer
xen-libs-64bit
xen-libs
xen-devel
xen-tools-domU
xen-tools-domU-debuginfo
xen-libs-debuginfo
xen-debugsource
xen-libs-32bit
xen-libs-32bit-debuginfo
xen-doc-html
xen
xen-tools-debuginfo
xen-tools
xen-tools-xendomains-wait-disk
xen-libs-64bit-debuginfo
xen (Debian package)

How to mitigate CVE-2025-58147

Install updates from vendor's website.

xen-libs-64bit - addressed in versions 4.16.7_04-150400.4.75.1, 4.17.5_12-150500.3.53.1, 4.18.5_06-150600.3.31.2, 4.18.5_08-150600.3.34.2
xen-libs - addressed in versions 4.16.7_04-150400.4.75.1, 4.17.5_12-150500.3.53.1, 4.18.5_06-150600.3.31.2, 4.18.5_08-150600.3.34.2, 4.20.1_06-150700.3.14.1
xen-devel - addressed in versions 4.16.7_04-150400.4.75.1, 4.17.5_12-150500.3.53.1, 4.18.5_06-150600.3.31.2, 4.18.5_08-150600.3.34.2, 4.20.1_06-150700.3.14.1
xen-tools-domU - addressed in versions 4.16.7_04-150400.4.75.1, 4.17.5_12-150500.3.53.1, 4.18.5_06-150600.3.31.2, 4.18.5_08-150600.3.34.2, 4.20.1_06-150700.3.14.1
xen-tools-domU-debuginfo - addressed in versions 4.16.7_04-150400.4.75.1, 4.17.5_12-150500.3.53.1, 4.18.5_06-150600.3.31.2, 4.18.5_08-150600.3.34.2, 4.20.1_06-150700.3.14.1
xen-libs-debuginfo - addressed in versions 4.16.7_04-150400.4.75.1, 4.17.5_12-150500.3.53.1, 4.18.5_06-150600.3.31.2, 4.18.5_08-150600.3.34.2, 4.20.1_06-150700.3.14.1
xen-debugsource - addressed in versions 4.16.7_04-150400.4.75.1, 4.17.5_12-150500.3.53.1, 4.18.5_06-150600.3.31.2, 4.18.5_08-150600.3.34.2, 4.20.1_06-150700.3.14.1
xen-libs-32bit - addressed in versions 4.16.7_04-150400.4.75.1, 4.17.5_12-150500.3.53.1, 4.18.5_06-150600.3.31.2, 4.18.5_08-150600.3.34.2
xen-libs-32bit-debuginfo - addressed in versions 4.16.7_04-150400.4.75.1, 4.17.5_12-150500.3.53.1, 4.18.5_06-150600.3.31.2, 4.18.5_08-150600.3.34.2
xen-doc-html - addressed in versions 4.16.7_04-150400.4.75.1, 4.17.5_12-150500.3.53.1, 4.18.5_06-150600.3.31.2, 4.18.5_08-150600.3.34.2
xen - addressed in versions 4.16.7_04-150400.4.75.1, 4.17.5_12-150500.3.53.1, 4.18.5_06-150600.3.31.2, 4.18.5_08-150600.3.34.2, 4.20.1_06-150700.3.14.1
xen-tools-debuginfo - addressed in versions 4.16.7_04-150400.4.75.1, 4.17.5_12-150500.3.53.1, 4.18.5_06-150600.3.31.2, 4.18.5_08-150600.3.34.2, 4.20.1_06-150700.3.14.1
xen-tools - addressed in versions 4.16.7_04-150400.4.75.1, 4.17.5_12-150500.3.53.1, 4.18.5_06-150600.3.31.2, 4.18.5_08-150600.3.34.2, 4.20.1_06-150700.3.14.1
xen-tools-xendomains-wait-disk - addressed in versions 4.16.7_04-150400.4.75.1, 4.17.5_12-150500.3.53.1, 4.18.5_06-150600.3.31.2, 4.18.5_08-150600.3.34.2, 4.20.1_06-150700.3.14.1
xen-libs-64bit-debuginfo - addressed in versions 4.16.7_04-150400.4.75.1, 4.17.5_12-150500.3.53.1, 4.18.5_06-150600.3.31.2, 4.18.5_08-150600.3.34.2
xen (Debian package) - addressed in versions 4.17.5+72-g01140da4e8-1, 4.20.2+7-g1badcf5035-0+deb13u1
xen - addressed in versions 4.19.3-5.fc41, 4.19.3-6.fc42, 4.19.3-7.fc41, 4.19.3-8.fc42, 4.20.1-7.fc43, 4.20.1-8.fc43

External References

Related Security Bulletins