CVE-2026-99177: KVM: SEV: Fix page dirtying in sev_gmem_post_populate()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
KVM: SEV: Fix page dirtying in sev_gmem_post_populate()
set_page_dirty() requires that the caller holds some kind of lock to ensure that the page's mapping does not concurrently go away. That is not the case for a random page we got from get_user_pages_fast(), so use set_page_dirty_lock().
[sean: tag for stable]
The Linux kernel CVE team has assigned CVE-2026-99177 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.2 with commit 97cd21d57e9bd2da79845178d9250cfd19289cd4 and fixed in 7.2.13 with commit 184382f9852d433af21de96c334ecf43b8414ed8 Issue introduced in 7.2 with commit 97cd21d57e9bd2da79845178d9250cfd19289cd4 and fixed in 7.3 with commit 97818b2fa7082e940ddd36dab12a68615300e798
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-99177
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/184382f9852d433af21de96c334ecf43b8414ed8 https://git.kernel.org/stable/c/97818b2fa7082e940ddd36dab12a68615300e798