CVE-2026-64310 in Linuxinfo

Summary

by MITRE • 07/25/2026

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.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 07/25/2026

The vulnerability resides in the Linux kernel's cryptographic crypto: ccp subsystem, specifically within the Secure Processor (SEV) implementation. This issue affects systems utilizing AMD's Secure Encrypted Virtualization technology where the kernel fails to properly distinguish between SEV-only operations and those requiring SNP (Secure Nested Paging) initialization. When userspace processes interact with /dev/sev device through specific ioctls such as SEV_PDH_GEN, the kernel incorrectly attempts to initialize SNP components even when they are not required for these particular operations.

The technical flaw manifests in the sev_move_to_init_state() function which handles multiple SEV firmware commands that do not actually require SNP initialization. This function previously executed SNP initialization routines regardless of whether the specific ioctl operation needed those features, leading to potential system instability. The vulnerability becomes particularly critical when SEV initialization fails during active KVM virtual machine operations, as it could cause a userspace process to trigger code paths that zero out the MSR_VM_HSAVE_PA register globally.

The operational impact of this vulnerability extends beyond simple error handling to potential host system crashes and data integrity issues. When the kernel incorrectly initializes SNP components for SEV-only ioctls, it can corrupt global system state registers that are essential for virtual machine execution. As noted by Sashiko, this scenario could lead to general protection faults during VMRUN execution, resulting in complete host system crashes. The vulnerability affects the fundamental stability of virtualized environments where multiple VMs are actively running and relies on proper separation between SEV and SNP initialization states.

The fix implemented addresses both the immediate technical flaw and improves error reporting mechanisms within the kernel's SEV subsystem. By introducing conditional initialization through __sev_platform_init_locked() instead of always attempting full SNP initialization, the patch prevents the corruption of MSR_VM_HSAVE_PA register values that are critical for system stability. The change also properly surfaces underlying firmware errors rather than masking them with hardcoded INVALID_PLATFORM_STATE return codes, which provides better diagnostic information for system administrators and developers. Additionally, the solution maintains backward compatibility by ensuring that __sev_firmware_shutdown() can still be called safely since it intelligently skips SNP shutdown procedures when SNP was never initialized.

This vulnerability aligns with CWE-248 Uncontrolled Format String and CWE-362 Concurrent Execution Using Shared Resource with Improper Synchronization, as it involves improper resource management during concurrent virtual machine operations. From an ATT&CK perspective, this represents a privilege escalation vector through kernel exploitation (T1068) that could lead to system compromise and denial of service conditions. The vulnerability demonstrates poor separation of concerns in the kernel's virtualization subsystem where different security features are not properly isolated during ioctl handling operations.

Security implications extend to enterprise virtualization environments where multiple tenants operate on shared infrastructure, as this flaw could potentially be exploited to cause cross-tenant data leakage or system-wide outages. The patch effectively mitigates these risks by ensuring proper initialization state management and error propagation, maintaining the integrity of both SEV and SNP subsystems within the AMD Secure Processor framework. Organizations running virtualized workloads on AMD processors should prioritize this update to prevent potential exploitation scenarios that could lead to complete system compromise.

The technical resolution demonstrates sound kernel development practices by implementing conditional logic based on actual operational requirements rather than blanket initialization procedures. This approach prevents unnecessary resource consumption while maintaining security boundaries between different virtualization features. The error handling improvements ensure that administrators can properly diagnose SEV firmware issues without being misled by incorrect return values, supporting more effective incident response and system maintenance activities.

From a compliance standpoint, this vulnerability addresses requirements in security frameworks such as NIST SP 800-53 where proper error handling and resource management are critical for maintaining system integrity. The fix ensures that the kernel's virtualization subsystem properly implements separation of duties between SEV and SNP initialization processes, preventing unauthorized access patterns that could be exploited by malicious actors. The mitigation approach aligns with industry best practices for kernel security hardening and demonstrates responsible vulnerability disclosure and remediation processes that protect enterprise computing environments from potential exploitation.

Responsible

Linux

Reservation

07/19/2026

Disclosure

07/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!