KernelScan.io

HIGH Introduced in 7.0

kvm Gmap Race

CVE-2026-98649

CVSS 7.0 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

01

In the Linux kernel, the following vulnerability has been resolved: KVM: s390: Fix race in _destroy_pages_crste() Use READ_ONCE() in _destroy_pages_crste() to read the crste, avoid dereferencing the pointer multiple times.

02

Engine v0.9.0

Risk summary

A race condition in the KVM s390 guest map (gmap) code allows a malicious guest or privileged host process to corrupt kernel memory by exploiting concurrent access to a control register segment table entry (CRSTE). Successful exploitation could lead to host kernel privilege escalation or denial of service. The vulnerability affects s390 systems running KVM virtualization.

Affectedarch/s390/kvm/gmap/gmap.c (KVM s390 guest map)

Vulnerability analysis

The _destroy_pages_crste() function reads a CRSTE structure multiple times without atomic access. Between the initial field checks (format code and page reference) and the subsequent origin address calculation, another CPU or thread can modify the same CRSTE, causing the function to operate on inconsistent data. This time-of-check-time-of-use race can result in incorrect page table walk boundaries, leading to memory corruption in the host kernel. The fix reads the entire CRSTE once using READ_ONCE() into a local variable, ensuring a consistent snapshot for all subsequent operations. The bug is reachable from guest virtual machines on s390 systems with KVM enabled, as guest memory activity triggers gmap operations in the host kernel. Exploitation requires precise timing to win the race window, making it difficult but feasible for a determined attacker with guest access.

03

BranchIntroducedFixed inPatch commit
7.27.07.2.990bd832b2bc3
mainline7.07.34ca00a9154f9