CVE-2026-63938: KVM: SEV: Check PSC request indices against the actual size of the buffer
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
KVM: SEV: Check PSC request indices against the actual size of the buffer
When processing Page State Change (PSC) requests, validate the PSC buffer against the effective size of the scratch area, which could be less than the maximum size if the guest provided a pointer that isn't exactly at the start of the GHCB shared buffer.
The Linux kernel CVE team has assigned CVE-2026-63938 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.11 with commit 9b54e248d2644be71cb394eb85f31ad99e023a05 and fixed in 6.12.93 with commit 5198f70c09a5f6e9e5f5a0a2c6b388f24294b176 Issue introduced in 6.11 with commit 9b54e248d2644be71cb394eb85f31ad99e023a05 and fixed in 6.18.35 with commit 75c8d1d7291268b479794fba5808971dc2f5eaf3 Issue introduced in 6.11 with commit 9b54e248d2644be71cb394eb85f31ad99e023a05 and fixed in 7.0.12 with commit 505a3b94535583e4265360e2621734e355ef263d Issue introduced in 6.11 with commit 9b54e248d2644be71cb394eb85f31ad99e023a05 and fixed in 7.1 with commit 121d88de56bc5c0ba0ce2f6381af67f948a7e7c1
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-63938
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
arch/x86/kvm/svm/sev.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/5198f70c09a5f6e9e5f5a0a2c6b388f24294b176 https://git.kernel.org/stable/c/75c8d1d7291268b479794fba5808971dc2f5eaf3 https://git.kernel.org/stable/c/505a3b94535583e4265360e2621734e355ef263d https://git.kernel.org/stable/c/121d88de56bc5c0ba0ce2f6381af67f948a7e7c1