Skip to main content

Linux Kernel CVE-2026-31588

| EUVDEUVD-2026-25481 HIGH
Use After Free (CWE-416)
2026-04-24 Linux GHSA-g8q5-fwjh-4q25
8.8
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local access with VM creation privileges
  2. Delivery
    Deploy malicious guest VM
  3. Exploit
    Trigger cross-page MMIO write with stack source
  4. Execution
    Race KVM_RUN calls across tasks
  5. Persist
    Exploit use-after-free for memory corruption
  6. Impact
    Escalate to host kernel execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires: (1) local authenticated access to a Linux system with KVM enabled where the attacker can create and run virtual machines, (2) guest VM executing code that performs MMIO write operations crossing a page boundary where both pages map to MMIO regions (non-default memory layout requiring specific device emulation configuration), (3) KVM emulator using on-stack local variables as the MMIO write data source (implementation-specific behavior), (4) precise timing to ensure the second MMIO fragment KVM_RUN ioctl is executed either by a different task than the initiating task or after the original stack frame has been unwound, creating the use-after-free condition. Exploitation is limited by: requirement for PR:L (low privilege local authentication) on the host system, need for precise control over guest memory layout and MMIO access patterns, dependence on rare race condition timing between vcpu task scheduling, and specific KVM emulator code paths that use stack variables for write operations. Default KVM configurations and single-threaded KVM_RUN patterns significantly reduce exploitability.

Impact

Real-world exploitation risk is low despite the high CVSS base score of 8.8. The CVSS vector (AV:L/AC:L/PR:L/UI:N/S:C) indicates local access with low privileges, but multiple specific conditions must align: the attack requires a guest VM executing emulated code that performs MMIO writes crossing page boundaries where both pages are MMIO regions, using stack variables as the data source, and the second fragment being processed by a different task or after stack unwinding. The EPSS score of 0.02% (5th percentile) reflects that this is a complex race condition requiring precise timing and memory layout knowledge to exploit reliably. The scope change (S:C) in CVSS correctly identifies that this could allow guest-to-host escape in virtualized environments, which is the primary concern. However, the attack complexity is higher than CVSS AC:L suggests because it requires controlled guest code execution, precise memory manipulation, and race condition timing. No KEV listing or public exploit code exists, and the vulnerability requires authenticated local access to a system where the attacker can already run VMs. SSVC decision tree would likely categorize this as 'scheduled' rather than 'immediate' patch priority for most environments, with exceptions for high-value multi-tenant cloud infrastructure where guest-to-host isolation is critical. Patches are available from the vendor (confirmed by multiple git.kernel.org commit references), reducing residual risk for organizations with active patch management.

Exploit ScenarioDerived

An attacker with local authenticated access to a Linux host running KVM creates a malicious guest VM. The attacker crafts guest code that triggers emulated MMIO write operations designed to cross page boundaries between two MMIO-mapped regions, using carefully controlled stack variable placement. By coordinating multiple vcpu threads within the guest and timing KVM_RUN ioctl calls from different host-side tasks, the attacker triggers the use-after-free condition when the second MMIO fragment references freed stack memory. This could allow reading sensitive host kernel memory (information disclosure) or potentially achieving guest-to-host escape with code execution in the host kernel context, depending on memory layout and heap spray techniques.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 27, 2026

Use-after-free in Linux kernel KVM x86 MMIO emulation allows local authenticated users with low privileges to potentially execute arbitrary code, escalate privileges, or cause denial of service. The flaw occurs when KVM's emulator initiates MMIO writes using on-stack variables that cross page boundaries between two MMIO pages, creating dangling pointers when fragments are processed across separate KVM_RUN calls, especially when different tasks handle subsequent runs. EPSS exploitation probability is very low (0.02%, 5th percentile), and vendor patches are available for kernel versions 6.12.83, 6.18.24, 6.19.14, and 7.0.1. No active exploitation or public POC identified at time of analysis.

RemediationAI

Update to patched Linux kernel versions: 7.0.1, 6.19.14, 6.18.24, or 6.12.83 depending on your kernel branch. Vendor patches available from kernel.org stable git repository at commit references b5a02d37eb0739f462fa12df449ab9b3480c783b (mainline), 22d2ff69d487a32a8b88f9c970120fc2daa08a77, 2b83d91e9ae92fe1258d7040a32430bbb3bb7d6e, and 3a7b6d75c8f85b09dea893f64a85a356bcf6c3fe for respective stable branches. Distribution-specific updates: check vendor security advisories for backported fixes in RHEL, Ubuntu, Debian, and SUSE kernels. For environments where immediate kernel updates are not feasible, consider these compensating controls with trade-offs: disable nested virtualization if not required (reduces attack surface but eliminates legitimate nested VM use cases), restrict KVM device access permissions to highly trusted users only via /dev/kvm ACLs (limits who can create VMs but may break legitimate multi-user virtualization workflows), or implement kernel page table isolation (KPTI) if not already enabled (adds performance overhead of 2-5% but provides additional memory isolation). Note that workarounds do not fully eliminate the vulnerability and patches remain the primary remediation. Full advisory and patch details at https://nvd.nist.gov/vuln/detail/CVE-2026-31588.

Affected VersionsENISA

Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <22d2ff69d487a32a8b88f9c970120fc2daa08a77
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <3a7b6d75c8f85b09dea893f64a85a356bcf6c3fe
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <2b83d91e9ae92fe1258d7040a32430bbb3bb7d6e
Linux patch: 7.0.1
Linux patch: 6.18.24
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <b5a02d37eb0739f462fa12df449ab9b3480c783b
Linux patch: 6.19.14
Linux patch: 6.12.83

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability affects the Kernel Virtual Machine (KVM) hypervisor's x86 architecture emulation layer, specifically the Memory-Mapped I/O (MMIO) fragment handling code path. KVM emulates MMIO operations by trapping guest memory accesses and forwarding them to userspace (typically QEMU). The Linux kernel's KVM implementation splits MMIO accesses that cross page boundaries into separate fragments because the KVM ABI only supports physically contiguous MMIO requests. The vulnerable code path uses direct pointers to emulator source data (often stack-allocated local variables) when generating these fragments. When an MMIO write operation spans two MMIO pages, KVM creates two fragments and exits to userspace sequentially. If the second KVM_RUN ioctl is executed by a different task than the one that initiated the emulation, or if the original task's stack frame has been unwound, the pointer to the on-stack source data becomes invalid, creating a use-after-free condition. The fix implements a scratch buffer within the MMIO fragment structure itself to copy small (≤8 bytes) write values, eliminating the dangling pointer issue while maintaining performance for common small write operations.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Linux) PRIMARY 8.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
SUSE HIGH
Red Hat 6.5 MEDIUM

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Patch released
Apr 28, 2026 - 20:42 nvd
Patch available
CVSS changed
Apr 27, 2026 - 15:22 NVD
8.8 (HIGH)
Patch available
Apr 24, 2026 - 16:16 EUVD
CVE Published
Apr 24, 2026 - 14:42 nvd
HIGH 8.8

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

KVM: x86: Use scratch field in MMIO fragment to hold small write values

When exiting to userspace to service an emulated MMIO write, copy the to-be-written value to a scratch field in the MMIO fragment if the size of the data payload is 8 bytes or less, i.e. can fit in a single chunk, instead of pointing the fragment directly at the source value.

This fixes a class of use-after-free bugs that occur when the emulator initiates a write using an on-stack, local variable as the source, the write splits a page boundary, *and* both pages are MMIO pages. Because KVM's ABI only allows for physically contiguous MMIO requests, accesses that split MMIO pages are separated into two fragments, and are sent to userspace one at a time. When KVM attempts to complete userspace MMIO in response to KVM_RUN after the first fragment, KVM will detect the second fragment and generate a second userspace exit, and reference the on-stack variable.

The issue is most visible if the second KVM_RUN is performed by a separate task, in which case the stack of the initiating task can show up as truly freed data.

============== BUG: KASAN: use-after-free in complete_emulated_mmio+0x305/0x420 Read of size 1 at addr ffff888009c378d1 by task syz-executor417/984

CPU: 1 PID: 984 Comm: syz-executor417 Not tainted 5.10.0-182.0.0.95.h2627.eulerosv2r13.x86_64 #3 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.15.0-0-g2dd4b9b3f840-prebuilt.qemu.org 04/01/2014 Call Trace: dump_stack+0xbe/0xfd print_address_description.constprop.0+0x19/0x170 __kasan_report.cold+0x6c/0x84 kasan_report+0x3a/0x50 check_memory_region+0xfd/0x1f0 memcpy+0x20/0x60 complete_emulated_mmio+0x305/0x420 kvm_arch_vcpu_ioctl_run+0x63f/0x6d0 kvm_vcpu_ioctl+0x413/0xb20 __se_sys_ioctl+0x111/0x160 do_syscall_64+0x30/0x40 entry_SYSCALL_64_after_hwframe+0x67/0xd1 RIP: 0033:0x42477d Code: <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007faa8e6890e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00000000004d7338 RCX: 000000000042477d RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000005 RBP: 00000000004d7330 R08: 00007fff28d546df R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004d733c R13: 0000000000000000 R14: 000000000040a200 R15: 00007fff28d54720

The buggy address belongs to the page: page:0000000029f6a428 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x9c37 flags: 0xfffffc0000000(node=0|zone=1|lastcpupid=0x1fffff) raw: 000fffffc0000000 0000000000000000 ffffea0000270dc8 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected

Memory state around the buggy address: ffff888009c37780: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888009c37800: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff888009c37880: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff888009c37900: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff888009c37980: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==============

The bug can also be reproduced with a targeted KVM-Unit-Test by hacking KVM to fill a large on-stack variable in complete_emulated_mmio(), i.e. by overwrite the data value with garbage.

Limit the use of the scratch fields to 8-byte or smaller accesses, and to just writes, as larger accesses and reads are not affected thanks to implementation details in the emulator, but add a sanity check to ensure those details don't change in the future. Specifically, KVM never uses on-stack variables for accesses larger that 8 bytes, e.g. uses an operand in the emulator context, and *al ---truncated---

Executive ViewAI

Why It Matters

CVE-2026-31588 is a use-after-free vulnerability in Linux kernel KVM that allows authenticated local users to execute arbitrary code or escalate privileges through malformed MMIO operations. This affects organizations running virtualization environments on vulnerable kernel versions and requires patching to eliminate local privilege escalation risk, though current exploitation likelihood is minimal.

Business Impact: High
Compensating Controls

Apply vendor patch. Interim mitigation: restrict local user access to KVM hypervisor systems and enforce principle of least privilege for accounts with KVM_RUN permissions; however, patching is the definitive remediation.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy