Skip to main content
Vulnerability Database/CVE-2026-98650

CVE-2026-98650: Linux Kernel KVM s390 Race Condition Flaw

CVE-2026-98650 is a race condition flaw in Linux kernel KVM s390 dat skey functions that can lead to system crashes. This post covers the technical details, affected versions, security impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98650 Overview

CVE-2026-98650 is a race condition vulnerability in the Linux kernel's KVM (Kernel-based Virtual Machine) subsystem for the s390 architecture. The flaw resides in the Dynamic Address Translation (DAT) storage key functions used when managing guest memory. Specifically, dat_cond_set_storage_key(), dat_set_storage_key(), dat_get_storage_key(), and dat_reset_reference_bit() can race with concurrent large-page splitting operations. When a large page is split between the DAT entry walk and the subsequent key operation, the code may dereference a Combined Region/Segment Table Entry (CRSTE) that no longer designates a large page, causing kernel crashes.

Critical Impact

A race between DAT entry walks and large-page splitting in s390 KVM can cause kernel crashes, resulting in denial of service on affected hypervisor hosts.

Affected Products

  • Linux kernel on IBM s390 (s390x) architecture
  • KVM virtualization subsystem for s390 guests
  • Distributions shipping affected kernel versions prior to the upstream fix

Discovery Timeline

  • 2026-10-18 - CVE-2026-98650 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-98650

Vulnerability Analysis

The vulnerability affects the s390 KVM storage key management path. Storage keys on s390 are 7-bit values associated with each 4 KB frame of absolute memory and are used to control access and track reference/change state. When KVM operates on guest memory backed by large pages, the DAT helper functions walk the guest page tables and then act on the resolved frame.

In dat_cond_set_storage_key(), after dat_entry_walk() identifies a large page, the code calls large_crste_to_phys() on the CRSTE to resolve the absolute address. Between those two operations, another CPU can split the large page. The CRSTE then no longer describes a large page, and large_crste_to_phys() operates on invalid input, triggering a crash. The same pattern exists in dat_set_storage_key().

The companion functions dat_get_storage_key() and dat_reset_reference_bit() did attempt to detect concurrent splits, but handled the race incorrectly, leaving a residual window where incorrect state is used.

Root Cause

The root cause is a time-of-check to time-of-use (TOCTOU) race condition [CWE-367]. The DAT helpers dereference the CRSTE pointer multiple times without snapshotting its value. A concurrent large-page split modifies the entry between dereferences, so later checks and address calculations operate on inconsistent state.

Attack Vector

Exploitation requires the ability to trigger KVM storage key operations on guest memory while another thread forces large-page splits on the same memory region. In practice, this can occur under legitimate guest workloads that mix storage key operations with memory management activity on an s390 host. The resulting crash denies service to the hypervisor and all co-located guests. There are no public reports of exploitation in the wild, and the EPSS score is low.

No verified exploit code is available. See the upstream commits for the fix details: Kernel Git Commit 27554b9505d and Kernel Git Commit c958f049889.

Detection Methods for CVE-2026-98650

Indicators of Compromise

  • Unexpected kernel oops or panic messages originating from dat_cond_set_storage_key, dat_set_storage_key, dat_get_storage_key, or dat_reset_reference_bit in s390 KVM stack traces.
  • Host-side hypervisor crashes coinciding with guest memory activity involving storage key instructions such as SSKE, ISKE, or RRBE.

Detection Strategies

  • Collect and inspect kernel crash dumps on s390 KVM hosts for signatures involving large_crste_to_phys() called from the DAT storage key helpers.
  • Correlate hypervisor reboots or guest terminations with concurrent large-page split events in memory management logs.
  • Track installed kernel package versions across the s390 fleet and flag hosts that do not yet include the referenced upstream commits.

Monitoring Recommendations

  • Monitor s390 hypervisor host availability and kernel panic telemetry via centralized logging.
  • Alert on repeated guest crashes or host reboots on identical kernel versions, which may indicate a reproducible race trigger.
  • Review dmesg and kdump outputs after any unplanned host restart on s390 systems.

How to Mitigate CVE-2026-98650

Immediate Actions Required

  • Inventory s390/s390x systems running KVM and identify kernels that predate the upstream fix.
  • Schedule patching of affected hypervisor hosts with vendor-provided kernel updates that include the fix commits.
  • Where patching is delayed, reduce exposure by limiting untrusted or memory-intensive guest workloads on vulnerable hosts.

Patch Information

The fix snapshots the CRSTE pointer with READ_ONCE(), validates the snapshot, and operates on the local copy instead of re-dereferencing the pointer. If a concurrent split is detected, the code retries dat_entry_walk(). Apply kernel updates incorporating Kernel Git Commit 27554b9505d and Kernel Git Commit c958f049889, or install vendor backports for your distribution.

Workarounds

  • No supported configuration workaround fully eliminates the race; apply the kernel patch as the primary remediation.
  • Reduce workload concurrency on s390 KVM hosts to lower the probability of triggering the race until patches are deployed.
  • Ensure crash dump collection (kdump) is enabled so any residual crashes can be diagnosed and reported.
bash
# Check running kernel version on an s390 host
uname -r

# Verify kernel package provides the fix (example for RPM-based distros)
rpm -q --changelog kernel | grep -E '27554b9505d|c958f049889'

# Verify on DEB-based distros
dpkg -s linux-image-$(uname -r) | grep -i version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.