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

crypto: ccp - Do not initialize SNP for SEV ioctls

Sashiko notes:

> if SEV initialization fails and KVM is actively running normal VMs, could a
> userspace process trigger this code path via /dev/sev ioctls (e.g.,
> SEV_PDH_GEN) and zero out MSR_VM_HSAVE_PA globally? Would the next VMRUN
> execution for an active VM trigger a general protection fault and crash the
> host?

sev_move_to_init_state() is called for ioctls requiring only SEV firmware:
SEV_PEK_GEN, SEV_PDH_GEN, SEV_PEK_CSR, SEV_PEK_CERT_IMPORT, and
SEV_PDH_CERT_EXPORT. After the firmware command, it does SEV_SHUTDOWN on
the SEV firmware. Since these commands do not require SNP to be
initialized, skip it by calling __sev_platform_init_locked() which only
initializes the SEV firmware. This way SNP is not Initialized at all, and
HSAVE_PA is not cleared.

The previous code saved any SEV initialization firmware error to
init_args.error and then threw it away and hardcoded the return value of
INVALID_PLATFORM_STATE regardless of the real firmware error. This patch
changes it to surface the underlying error, which is hopefully both more
useful and doesn't cause any problems.

Note that it is still safe to call __sev_firmware_shutdown() directly: it
calls __sev_snp_shutdown_locked(), which skips SNP shutdown if SNP was not
initialized.
Published: 2026-07-25
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw originates in the Linux kernel’s SEV (Secure Encrypted Virtualization) handling when SNP (Secure Nested Paging) is omitted during certain ioctls that only need SEV firmware commands. This omission allows a userspace process to invoke a SEV ioctl, such as SEV_PDH_GEN, that triggers a firmware shutdown sequence which clears the MSR_VM_HSAVE_PA register globally. If normal virtual machines are running, the next VMRUN executes with a zeroed register, causing a general‑protection fault and crashing the host. The effect is a local denial‑of‑service that brings the entire virtualized host down. The root cause is improper error handling that discards real firmware errors and always returns INVALID_PLATFORM_STATE. The flaw is an instance of CWE-909.

Affected Systems

All Linux kernel releases that support Intel Secure Encrypted Virtualization (SEV) and expose the /dev/sev device. This includes any kernel image with SEV support, regardless of specific version, that could execute the affected SEV firmware commands before SNP is initialized.

Risk and Exploitability

The vulnerability carries a CVSS score of 5.5, indicating moderate severity, and an EPSS score of < 1%; it is not listed in KEV. However, the impact—host‑wide denial of service—is high. Based on the description, it is inferred that a local attacker would need access to the /dev/sev interface, which is typically restricted to privileged users. If the flaw is triggered, the host will fault on the next VMRUN and crash. Operators should prioritize applying the kernel patch or limiting /dev/sev access to mitigate the risk.

Generated by OpenCVE AI on August 4, 2026 at 14:45 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the kernel patch that restores proper error handling and requires SNP initialization for affected SEV ioctls.
  • Limit access to the /dev/sev device so that only privileged or trusted users can issue ioctl commands.
  • Disable SEV functionality or the /dev/sev interface on hosts that do not need SEV if the patch cannot be applied immediately.

Generated by OpenCVE AI on August 4, 2026 at 14:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4724-1 linux-6.12 new package
History

Sun, 02 Aug 2026 13:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-665

Thu, 30 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-909
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate


Mon, 27 Jul 2026 06:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-665

Sat, 25 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: crypto: ccp - Do not initialize SNP for SEV ioctls Sashiko notes: > if SEV initialization fails and KVM is actively running normal VMs, could a > userspace process trigger this code path via /dev/sev ioctls (e.g., > SEV_PDH_GEN) and zero out MSR_VM_HSAVE_PA globally? Would the next VMRUN > execution for an active VM trigger a general protection fault and crash the > host? sev_move_to_init_state() is called for ioctls requiring only SEV firmware: SEV_PEK_GEN, SEV_PDH_GEN, SEV_PEK_CSR, SEV_PEK_CERT_IMPORT, and SEV_PDH_CERT_EXPORT. After the firmware command, it does SEV_SHUTDOWN on the SEV firmware. Since these commands do not require SNP to be initialized, skip it by calling __sev_platform_init_locked() which only initializes the SEV firmware. This way SNP is not Initialized at all, and HSAVE_PA is not cleared. The previous code saved any SEV initialization firmware error to init_args.error and then threw it away and hardcoded the return value of INVALID_PLATFORM_STATE regardless of the real firmware error. This patch changes it to surface the underlying error, which is hopefully both more useful and doesn't cause any problems. Note that it is still safe to call __sev_firmware_shutdown() directly: it calls __sev_snp_shutdown_locked(), which skips SNP shutdown if SNP was not initialized.
Title crypto: ccp - Do not initialize SNP for SEV ioctls
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-25T08:49:42.683Z

Reserved: 2026-07-19T15:36:31.779Z

Link: CVE-2026-64310

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-25T10:17:12.147

Modified: 2026-08-11T15:00:57.447

Link: CVE-2026-64310

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-25T00:00:00Z

Links: CVE-2026-64310 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T15:00:13Z

Weaknesses
  • CWE-909

    Missing Initialization of Resource