CVE-2026-64310
crypto: ccp - Do not initialize SNP for SEV ioctls
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.
INFO
Published Date :
July 25, 2026, 10:17 a.m.
Last Modified :
Aug. 17, 2026, 5:17 a.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
- Update the Linux kernel to the latest version.
- Apply the provided patch for the crypto/ccp module.
- Verify SNP initialization behavior.
- Test SEV ioctl functionality.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-64310.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-64310 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-64310
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-64310 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-64310 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Aug. 17, 2026
Action Type Old Value New Value Changed Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '1c3506ea8599a3ad1b9aae5cbd573134f8d18db7', 'lessThan': '5181e88da99c3d1d41e25db3472a62b8d4b42cdd', 'versionType': 'git'}, {'status': 'affected', 'version': 'ceac7fb89e8da465aec3ac3c20477f912f5c3a6c', 'lessThan': '9e983d0a74a6a2348e4ce61647ec8a4dfbe198ac', 'versionType': 'git'}, {'status': 'affected', 'version': 'ceac7fb89e8da465aec3ac3c20477f912f5c3a6c', 'lessThan': 'd51207735e7c224cf591fa260c557a451a69a5cf', 'versionType': 'git'}, {'status': 'affected', 'version': 'ceac7fb89e8da465aec3ac3c20477f912f5c3a6c', 'lessThan': 'fb1758e74b8061aacfbce7bbb7a7cc650537e167', 'versionType': 'git'}, {'status': 'affected', 'version': '6.12.75', 'lessThan': '6.12.96', 'versionType': 'semver'}], 'programFiles': ['drivers/crypto/ccp/sev-dev.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.16'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.16', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.12.96', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.39', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.4', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/crypto/ccp/sev-dev.c'], 'defaultStatus': 'affected'}] [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '1c3506ea8599a3ad1b9aae5cbd573134f8d18db7', 'lessThan': '5181e88da99c3d1d41e25db3472a62b8d4b42cdd', 'versionType': 'git'}, {'status': 'affected', 'version': 'ceac7fb89e8da465aec3ac3c20477f912f5c3a6c', 'lessThan': '9e983d0a74a6a2348e4ce61647ec8a4dfbe198ac', 'versionType': 'git'}, {'status': 'affected', 'version': 'ceac7fb89e8da465aec3ac3c20477f912f5c3a6c', 'lessThan': 'd51207735e7c224cf591fa260c557a451a69a5cf', 'versionType': 'git'}, {'status': 'affected', 'version': 'ceac7fb89e8da465aec3ac3c20477f912f5c3a6c', 'lessThan': 'fb1758e74b8061aacfbce7bbb7a7cc650537e167', 'versionType': 'git'}, {'status': 'affected', 'version': '6.12.75', 'lessThan': '6.12.96', 'versionType': 'semver'}], 'programFiles': ['drivers/crypto/ccp/sev-dev.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.16'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.16', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.12.96', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.39', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.4', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/crypto/ccp/sev-dev.c'], 'defaultStatus': 'affected'}] -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jul. 25, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '1c3506ea8599a3ad1b9aae5cbd573134f8d18db7', 'lessThan': '5181e88da99c3d1d41e25db3472a62b8d4b42cdd', 'versionType': 'git'}, {'status': 'affected', 'version': 'ceac7fb89e8da465aec3ac3c20477f912f5c3a6c', 'lessThan': '9e983d0a74a6a2348e4ce61647ec8a4dfbe198ac', 'versionType': 'git'}, {'status': 'affected', 'version': 'ceac7fb89e8da465aec3ac3c20477f912f5c3a6c', 'lessThan': 'd51207735e7c224cf591fa260c557a451a69a5cf', 'versionType': 'git'}, {'status': 'affected', 'version': 'ceac7fb89e8da465aec3ac3c20477f912f5c3a6c', 'lessThan': 'fb1758e74b8061aacfbce7bbb7a7cc650537e167', 'versionType': 'git'}, {'status': 'affected', 'version': '6.12.75', 'lessThan': '6.12.96', 'versionType': 'semver'}], 'programFiles': ['drivers/crypto/ccp/sev-dev.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.16'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.16', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.12.96', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.39', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.4', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/crypto/ccp/sev-dev.c'], 'defaultStatus': 'affected'}] 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. Added Reference https://git.kernel.org/stable/c/5181e88da99c3d1d41e25db3472a62b8d4b42cdd Added Reference https://git.kernel.org/stable/c/9e983d0a74a6a2348e4ce61647ec8a4dfbe198ac Added Reference https://git.kernel.org/stable/c/d51207735e7c224cf591fa260c557a451a69a5cf Added Reference https://git.kernel.org/stable/c/fb1758e74b8061aacfbce7bbb7a7cc650537e167