CVE-2026-72239

x86/virt/sev: Revert "Drop WBINVD before setting MSR_AMD64_SYSCFG_SNP_EN"

Published Aug 15, 2026 CVSS 3.1 · 9.3 Critical EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

x86/virt/sev: Revert "Drop WBINVD before setting MSR_AMD64_SYSCFG_SNP_EN"

Revert

99cf1fb58e68 ("x86/virt/sev: Drop WBINVD before setting MSR_AMD64_SYSCFG_SNP_EN").

Section 8.8 of the SNP spec says:

Before invoking SNP_INIT_EX with INIT_RMP set to 1, software must ensure
that no CPUs contain dirty cache lines for the memory containing the RMP.

Cachelines can be moved from cache to cache in a dirty state. The
wbinvd_on_all_cpus() before SNP_INIT_EX flushes the caches for each CPU, but
if the IPIs for WBINVD race with this dirty cacheline movement, it is possible
that they may not get flushed, violating the firmware requirement.

Doing wbinvd_on_all_cpus() before setting SNPEn is safer since the RMP
table is not yet in use.

[ Heroically bisected by Srikanth. ]
[ bp: Massage commit message. ]

Analysis

AI-generated

Technical impact

The vulnerability is a race condition in the Linux kernel’s x86/virt SEV‑ES code caused by removing the required WBINVD instruction before initializing the Secure Nested Paging (SNP) RMP table. Because CPU caches were no longer flushed when the RMP was loaded, dirty cache lines could remain visible to a guest VM that had not yet been protected by firmware, allowing a malicious VM to read memory it should not access. This represents a serious information‑leakage weakness, corresponding to CWE-366.

Affected Systems

All Linux kernel installations that enable AMD SEV‑ES virtualization on processors supporting the AMD64 SNP feature are affected. The defect exists in the generic x86/virt module and applies whenever SEV‑ES is active, regardless of the specific kernel version. Versions are not restricted in the advisory, so every recent kernel that supports SEV‑ES on compatible hardware is potentially vulnerable.

Risk and Exploitability

The CVSS score of 9.3 indicates a critical severity, yet the EPSS score of <1% and the absence from CISA KEV suggest a low likelihood of exploitation. The likely attack vector is inferred to involve a malicious guest attempting to time inter‑processor interrupts and the cache flush during SNP initialization to capture dirty data; this inference is not explicitly stated in the CVE data. Practical exploitation would require precise timing of a race condition, making it difficult but not impossible, and thus the overall risk remains high for environments that rely on SEV‑ES for isolation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that restores the safe WBINVD behavior before SNP initialization (commit 4c2509f3b79756679a02bea649c6a7501b58f52c)
  • If a kernel update is not immediately possible, disable SEV‑ES or the SNP configuration in the BIOS or kernel configuration to eliminate the race condition
  • Continuously review vendor advisories and kernel changelogs for any additional security updates related to SEV‑ES and cache flushing

Generated by OpenCVE AI on August 22, 2026 at 10:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

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

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

Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: x86/virt/sev: Revert "Drop WBINVD before setting MSR_AMD64_SYSCFG_SNP_EN" Revert 99cf1fb58e68 ("x86/virt/sev: Drop WBINVD before setting MSR_AMD64_SYSCFG_SNP_EN"). Section 8.8 of the SNP spec says: Before invoking SNP_INIT_EX with INIT_RMP set to 1, software must ensure that no CPUs contain dirty cache lines for the memory containing the RMP. Cachelines can be moved from cache to cache in a dirty state. The wbinvd_on_all_cpus() before SNP_INIT_EX flushes the caches for each CPU, but if the IPIs for WBINVD race with this dirty cacheline movement, it is possible that they may not get flushed, violating the firmware requirement. Doing wbinvd_on_all_cpus() before setting SNPEn is safer since the RMP table is not yet in use. [ Heroically bisected by Srikanth. ] [ bp: Massage commit message. ]
Title x86/virt/sev: Revert "Drop WBINVD before setting MSR_AMD64_SYSCFG_SNP_EN"
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-366

    Race Condition within a Thread

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 17, 2026, 5:41 AM
Reserved
Aug 9, 2026, 3:40 AM
Status
Received
Published
Aug 15, 2026, 6:21 AM
Modified
Aug 17, 2026, 6:18 AM
Severity
Moderate
Public date
Aug 15, 2026, 12:00 AM