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

CVE-2026-98653: Linux Kernel KVM Privilege Escalation Flaw

CVE-2026-98653 is a privilege escalation vulnerability in Linux kernel KVM affecting nested guest memory shadowing. This flaw could allow unauthorized privilege elevation in virtualized environments.

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-98653 Overview

CVE-2026-98653 affects the Linux kernel's KVM subsystem on IBM s390 architecture. The flaw resides in the _gaccess_shadow_fault() function used to shadow nested guest memory. When a nested guest page is not present in the parent guest gmap, dat_entry_walk() fails to locate a leaf entry and returns -ENOENT. That error propagates incorrectly to userspace instead of being handled by establishing the mapping. The upstream fix calls gmap_link() manually on the nested guest memory when the mapping is absent.

Critical Impact

Nested KVM guests on s390 systems can trigger incorrect error returns to userspace, destabilizing virtualization workloads that rely on shadowed memory for nested guests.

Affected Products

  • Linux kernel KVM subsystem for IBM s390 architecture
  • Hosts running nested KVM guests on s390 hardware
  • Distributions shipping the vulnerable _gaccess_shadow_fault() implementation prior to the referenced upstream commits

Discovery Timeline

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

Technical Details for CVE-2026-98653

Vulnerability Analysis

The vulnerability lives in the s390 KVM guest-access shadow fault handler. When KVM runs a nested guest, it must shadow guest memory translations through the parent guest's gmap structure. The function _gaccess_shadow_fault() relies on dat_entry_walk() to locate a leaf dynamic address translation (DAT) entry for the nested guest page being shadowed.

If the targeted page is absent from the parent guest gmap, dat_entry_walk() returns -ENOENT. The original code path propagates this error directly back to userspace rather than resolving the missing mapping. The result is an incorrect failure return during legitimate nested virtualization operations, which can disrupt guest execution and KVM state handling.

Root Cause

The root cause is missing fallback logic when a parent gmap entry is not yet established. The handler assumed the mapping would always exist by the time _gaccess_shadow_fault() runs. The upstream fix invokes gmap_link() to create the missing mapping before retrying the walk, aligning the handler with the demand-paging model expected by nested virtualization.

Attack Vector

The condition requires a nested KVM guest configuration on s390 hardware. Code paths running within a parent guest that triggers shadowing of pages not currently mapped in the parent gmap can reach the faulty return path. The issue is primarily a correctness and reliability defect in nested virtualization rather than a documented memory corruption primitive. No CWE has been assigned and no public exploit is available at this time.

For technical details, see the upstream fixes: Kernel Git Commit 94c43c7 and Kernel Git Commit faff4c8.

Detection Methods for CVE-2026-98653

Indicators of Compromise

  • Unexpected -ENOENT return codes surfacing to userspace from KVM ioctl operations on s390 hosts running nested guests.
  • Nested guest crashes or stalls correlated with shadow page-fault handling under memory pressure.

Detection Strategies

  • Inventory s390 hosts running KVM and confirm kernel versions against the fixed commits 94c43c7 and faff4c8.
  • Compare running kernel build identifiers to vendor-provided fixed package versions for each distribution in use.
  • Review KVM and kvm-s390 kernel logs for shadow fault errors tied to nested guest operations.

Monitoring Recommendations

  • Collect kernel ring buffer and dmesg output from s390 virtualization hosts into a centralized logging pipeline.
  • Alert on repeated nested guest termination events or KVM_RUN ioctl failures returning -ENOENT.
  • Track package versions of the kernel across the fleet to detect drift from patched baselines.

How to Mitigate CVE-2026-98653

Immediate Actions Required

  • Apply the upstream Linux kernel patches referenced by commits 94c43c7df46433ed4d1e18f13770b019ba977bd8 and faff4c8ff3dbec6d71b89dd281a0d17c4478fa44.
  • Update s390 virtualization hosts to vendor-released kernels that incorporate the fix.
  • Schedule a reboot cycle for KVM hosts after installing the patched kernel package.

Patch Information

The fix adds a manual call to gmap_link() in _gaccess_shadow_fault() when the mapping for the shadowed nested guest page is not already present. This prevents the stale -ENOENT return from reaching userspace. Review the upstream patches: Kernel Git Commit 94c43c7 and Kernel Git Commit faff4c8. Consult your Linux distribution's security advisories for backported package versions.

Workarounds

  • Avoid running nested KVM guests on affected s390 kernels until the patched kernel is deployed.
  • Restrict access to KVM virtualization management interfaces to trusted administrators to limit exposure of unpatched hosts.
  • Reduce memory pressure on parent guests to lower the frequency of missing gmap mappings on shadowed pages as a temporary measure.

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.