HIGH Introduced in 7.0
kvm Gmap Race
CVE-2026-98649
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
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.
02KernelScan AI Analysis
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.
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.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 7.2 | 7.0 | 7.2.9 | 90bd832b2bc3 |
| mainline | 7.0 | 7.3 | 4ca00a9154f9 |