Skip to contentSkip to conversation

CVE-2026-63937: KVM: SEV: Use READ_ONCE() when reading entries/indices from PSC buffer

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

KVM: SEV: Use READ_ONCE() when reading entries/indices from PSC buffer

Use READ_ONCE() when reading entries/indices from the guest-accessible Page State Change buffer to defend against TOCTOU bugs.

Don't bother with READ_ONCE()/WRITE_ONCE() for cases where KVM is writing (and not consuming the result!), as the guest isn't supposed to touch the buffer while it's being processed. I.e. using READ_ONCE() is all about protecting against misbehaving guests.

The Linux kernel CVE team has assigned CVE-2026-63937 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.11 with commit 9b54e248d2644be71cb394eb85f31ad99e023a05 and fixed in 6.12.93 with commit bd232801ef1d1fd985d2d4ca3cd1d888303ca86f
	Issue introduced in 6.11 with commit 9b54e248d2644be71cb394eb85f31ad99e023a05 and fixed in 6.18.35 with commit b1dfaa6f7a957726a6800135be3659fbe4bbf2a4
	Issue introduced in 6.11 with commit 9b54e248d2644be71cb394eb85f31ad99e023a05 and fixed in 7.0.12 with commit edbbe88f83b524434974e84808d3093199d67c24
	Issue introduced in 6.11 with commit 9b54e248d2644be71cb394eb85f31ad99e023a05 and fixed in 7.1 with commit c8cc238093ca6c99267032f6cfe78f59389f3157

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-63937

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/bd232801ef1d1fd985d2d4ca3cd1d888303ca86f
	https://git.kernel.org/stable/c/b1dfaa6f7a957726a6800135be3659fbe4bbf2a4
	https://git.kernel.org/stable/c/edbbe88f83b524434974e84808d3093199d67c24
	https://git.kernel.org/stable/c/c8cc238093ca6c99267032f6cfe78f59389f3157