CVE-2026-99177

KVM: SEV: Fix page dirtying in sev_gmem_post_populate()

Published Oct 28, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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]

Analysis

AI-generated

Technical impact

The Linux kernel contains a race condition in the KVM Secure Encrypted Virtualization subsystem. During SEV page population, the function sev_gmem_post_populate() marks a page as dirty using set_page_dirty() without holding the necessary page lock. Because the page is obtained via get_user_pages_fast(), its mapping may be altered concurrently, leading to memory corruption or inadvertent changes to kernel data structures. This flaw does not directly enable code execution but can trigger crashes or data loss when the race succeeds.

Affected Systems

All Linux kernel installations that run KVM with Secure Encrypted Virtualization enabled are affected. Any kernel version that lacks the commit introducing set_page_dirty_lock() for sev_gmem_post_populate() is considered vulnerable; the glitch exists before that patch across all releases.

Risk and Exploitability

The CVSS score is 7.8 and the EPSS score is < 1%. The vulnerability is not listed in CISA KEV, indicating no documented exploitation. Exploitation requires privileged, kernel-level access and the ability to trigger the race during SEV page population, which constrains the threat space. The risk is therefore low to moderate until the kernel is upgraded, as accidental corruption could occur during normal SEV operation but cannot be reliably targeted by an attacker without host privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a release that includes the set_page_dirty_lock() change in sev_gmem_post_populate()
  • Reboot the host after installing the updated kernel to activate the fix
  • If a kernel upgrade is not immediately possible, disable KVM Secure Encrypted Virtualization or restrict management access to reduce the likelihood of the race occurring

Generated by OpenCVE AI on November 3, 2026 at 01:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
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]
Title KVM: SEV: Fix page dirtying in sev_gmem_post_populate()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-413

    Improper Resource Locking

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 31, 2026, 12:44 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 28, 2026, 11:17 AM
Modified
Oct 31, 2026, 1:17 PM
Severity
Moderate
Public date
Oct 28, 2026, 10:35 AM