CVE-2025-38469
NoneCVSS
—
EPSS
0.2%
Published
Jul 28, 2025
CISA due date
—
Cloudanix analysis
A bug in the Linux kernel's handling of certain virtual-machine scheduling requests can let a compromised guest corrupt memory on the host, potentially crashing systems or allowing attackers to gain higher privileges.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Denial Of Service
- Component
- OS kernel
- Class
- Memory Corruption
- Remediation
- Patch
- Effort
- Low
- Patch risk
- Low
What it actually does
Improper error handling after kmalloc_array in kvm_xen_schedop_poll causes control flow to bypass the out label on kvm_read_guest_virt failure, resulting in use of uninitialized memory or leaked kernel allocations during Xen schedop poll hypercall emulation.
Why it matters to the business
Guest VMs can trigger kernel memory corruption on hosts using Xen-on-KVM, leading to crashes, denial of service, or local privilege escalation in virtualized Linux environments; high prevalence in upstream kernel trees increases exposure for cloud and enterprise deployments.
How an attack unfolds
An attacker with guest access crafts a schedop poll hypercall requesting multiple event channels (nr_ports > 1), triggers the kmalloc path, then forces an error in kvm_read_guest_virt so execution skips the required cleanup label, corrupting kernel memory structures that can be leveraged for privilege escalation or further attacks.
How to fix it
Apply the upstream fix commit 3ee59c38ae7369ad1f7b846e05633ccf0d159fab or later; rebuild and deploy the patched kernel; for Debian 13/14 systems update libssh packages to 0.11.2-1 once the dependency chain is resolved.
How to confirm the fix worked
Confirm kernel source contains commit 3ee59c38ae7369ad1f7b846e05633ccf0d159fab; run targeted hypercall fuzzing or unit tests exercising kvm_xen_schedop_poll error paths; verify no kmalloc leaks via kmemleak after hypercall sequences.
Typical attack path
- Obtain code execution inside a KVM guest configured with Xen emulation
- Issue Xen schedop poll hypercall with nr_ports > 1
- Arrange for kvm_read_guest_virt to fail after kmalloc_array
- Trigger subsequent use of the improperly cleaned allocation to corrupt kernel memory
- Escalate to host privileges or cause denial of service
How to detect it
Review kernel logs for Xen schedop poll related oops or warnings; inspect dmesg and audit logs around hypercall emulation failures; correlate with guest activity showing repeated multi-port poll attempts; search for memory-leak reports tied to kvm_xen_schedop_poll.
What your security team should do
- Prioritize patching kernel packages on all Xen-on-KVM hosts within 30 days given active exploitation campaigns targeting similar kernel CVEs
- Audit guest configurations for Xen emulation usage and restrict hypercall interfaces where possible
- Enable kernel memory debugging and logging for hypercall paths in production
- Monitor EPSS trend and threat actor activity for related privilege-escalation chains
The record
In the Linux kernel, the following vulnerability has been resolved: KVM: x86/xen: Fix cleanup logic in emulation of Xen schedop poll hypercalls kvm_xen_schedop_poll does a kmalloc_array() when a VM polls the host for more than one event channel potr (nr_ports > 1). After the kmalloc_array(), the error paths need to go through the "out" label, but the call to kvm_read_guest_virt() does not. [Adjusted commit message. - Paolo]
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:13 | linux | 0 | 6.12.41-1 |
| Debian:14 | linux | 0 | No fix |
| Debian:14 | linux | 0 | 6.16.3-1 |
| Linux | Kernel | 6.2.0 | 6.6.100 |
| Mageia:9 | kernel | 0 | 6.6.101-1.mga9 |
| Mageia:9 | kernel-linus | 0 | 6.6.101-1.mga9 |
| Mageia:9 | kmod-virtualbox | 0 | 7.1.10-7.mga9 |
| Mageia:9 | kmod-xtables-addons | 0 | 3.24-83.mga9 |
| Mageia:9 | wireless-regdb | 0 | 20250710-1.mga9 |
Related vulnerabilities
- CVE-2025-39885 In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix recursive… Also affects linux
- CVE-2025-39883 In the Linux kernel, the following vulnerability has been resolved: mm/memory-failure… Also affects linux
- CVE-2025-39884 In the Linux kernel, the following vulnerability has been resolved: btrfs: fix subvolume… Also affects linux
- CVE-2025-39886 In the Linux kernel, the following vulnerability has been resolved: bpf: Tell memcg to… Also affects linux
- CVE-2025-39876 In the Linux kernel, the following vulnerability has been resolved: net: fec: Fix… Also affects linux
- CVE-2025-39880 In the Linux kernel, the following vulnerability has been resolved: libceph: fix invalid… Also affects linux
- CVE-2025-39881 In the Linux kernel, the following vulnerability has been resolved: kernfs: Fix UAF in… Also affects linux
- CVE-2025-39882 In the Linux kernel, the following vulnerability has been resolved: drm/mediatek: fix… Also affects linux