CVE-2025-58150: 
Linux Debian vulnerability analysis and mitigation

Overview

CVE-2025-58150 is a buffer overrun vulnerability in the Xen hypervisor's x86 shadow paging tracing code, tracked as Xen Security Advisory XSA-477. The flaw exists because shadow mode tracing uses per-CPU variables written with guest-controlled data of guest-controllable size, without bounding the writes — allowing an out-of-bounds write condition. Only x86 systems running HVM guests in shadow paging mode with tracing enabled are affected; ARM systems are not vulnerable. It was publicly disclosed on January 27–28, 2026, and carries a CVSS v3.1 base score of 8.8 (High) (XSA-477 Advisory, Red Hat CVE).

Technical details

The root cause is classified as CWE-787 (Out-of-bounds Write) and CWE-120 (Buffer Copy without Checking Size of Input). The shadow mode tracing subsystem in Xen's x86 code uses per-CPU variables to pass data between functions; some of these variables are populated with guest-supplied data of guest-controlled size, but no bounds checking was applied to ensure the write size did not exceed the variable's allocated space. Exploitation requires a low-privileged local attacker operating within an HVM guest running in shadow paging mode, with tracing enabled on the host (e.g., via the tbuf_size= command-line option or tools such as xentrace or xenbaked). The vulnerability was discovered by Jan Beulich of SUSE (Openwall OSS-Sec, Red Hat Bugzilla).

Impact

The exact impact depends on what data is adjacent to the overwritten per-CPU variables in a given Xen build. The most likely outcome is corruption of trace data, but the advisory explicitly states that privilege escalation, information leaks, and denial of service cannot be excluded without detailed analysis of the specific build. With a CVSS scope of "Changed," a successful exploit could affect the hypervisor itself beyond the guest boundary, potentially compromising the confidentiality, integrity, and availability of the host and other co-located guests (XSA-477 Advisory, Openwall OSS-Sec).

Exploitability

There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of disclosure. The EPSS score is approximately 0.012% (0.000120), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation is constrained by the requirement that the target system must have shadow paging mode and tracing simultaneously enabled, which is a non-default configuration (Openwall OSS-Sec, Red Hat CVE).

Exploitation steps

  1. Identify target configuration: Confirm the target Xen host is running x86 architecture with HVM guests in shadow paging mode and tracing enabled (e.g., tbuf_size= kernel parameter set, or xentrace/xenbaked running in Dom0).
  2. Gain low-privileged guest access: Obtain a low-privileged account or process within an HVM guest on the target Xen host.
  3. Trigger oversized write: From within the guest, perform operations that cause the shadow mode tracing code to write guest-controlled data of guest-controlled size into the per-CPU tracing variables, exceeding their allocated bounds.
  4. Achieve out-of-bounds write: The missing size bound check allows data to overflow into adjacent memory regions in the hypervisor's per-CPU data area, potentially corrupting hypervisor state, other guests' data, or enabling privilege escalation depending on the specific Xen build's memory layout (XSA-477 Advisory, Openwall OSS-Sec).

Indicators of compromise

  • Logs: Unexpected or malformed entries in Xen trace buffers (/dev/xen/evtchn or xentrace output); Xen hypervisor crash logs or oops messages referencing shadow paging or tracing subsystems.
  • Process: Unusual behavior of xentrace or xenbaked in Dom0; unexpected Dom0 process crashes or hangs correlated with HVM guest activity.
  • System: Unexplained hypervisor instability, guest crashes, or memory corruption symptoms on x86 Xen hosts with shadow paging and tracing enabled; unexpected changes in per-CPU variable state observable via Xen debugging tools.

Mitigation and workarounds

Xen has released patches for affected versions: xsa477.patch for xen-unstable through Xen 4.19.x, and xsa477-4.18.patch for Xen 4.18.x. Downstream distributions including SUSE, Fedora, Mageia, and Debian have issued updated packages. As immediate workarounds: (1) run HVM guests in HAP (Hardware Assisted Paging) mode instead of shadow paging mode, or (2) disable tracing by not setting tbuf_size= and ensuring xentrace/xenbaked are not running (note: stopping tracing only prevents future exploitation; prior damage may have already occurred). Applying the vendor patch is the recommended permanent fix (XSA-477 Advisory, Openwall OSS-Sec).

Community reactions

The vulnerability was discussed on the oss-security mailing list upon public release of XSA-477, with the Xen Project Security Team coordinating disclosure. The Hacker Wire covered the vulnerability with a dedicated article on the shadow mode tracing guest-controlled overwrite. SUSE credited Jan Beulich as the discoverer and promptly issued a security update (SUSE-2026:0304-1). Multiple Linux distributions including Fedora, Mageia, and Debian issued advisories and updated packages shortly after disclosure (Openwall OSS-Sec, The Hacker Wire).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

xen: 4.17.7-0+deb12u1

Fixed

sid

xen: 4.20.2+37-g61ff35323e-1

Fixed

trixie

xen: 4.20.2+37-g61ff35323e-0+deb13u1

Fixed

Ubuntu

Unknown

bionic (esm-infra)

xen

Unknown

devel

xen

Unknown

focal (esm-apps)

xen

Unknown

jammy

xen

Unknown

jammy (esm-apps)

xen

Unknown

noble

xen

Unknown

noble (esm-apps)

xen

Unknown

resolute

xen

Unknown

Alpine

Fixed

edge

xen: 4.21.0-r2

Fixed

v3.20

xen: 4.18.5-r4

Fixed

v3.21

xen: 4.19.4-r1

Fixed

v3.22

xen: 4.20.2-r1

Fixed

v3.23

xen: 4.20.2-r1

Fixed

Source: This report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-116612HIGH7.8
  • Linux Debian logoLinux Debian
  • gstreamer-editing-services1.0
NoYesOct 26, 2026
CVE-2026-115909HIGH7.5
  • Linux Debian logoLinux Debian
  • rust-zip
NoNoOct 26, 2026
CVE-2026-115907HIGH7.5
  • Linux Debian logoLinux Debian
  • rust-zip
NoNoOct 26, 2026
CVE-2026-115910MEDIUM6.8
  • Python logoPython
  • social-auth-core
NoYesOct 26, 2026
CVE-2026-2270MEDIUM5.9
  • NixOS logoNixOS
  • kubernetes
NoYesOct 26, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management