CVE-2026-64310

Source
https://cve.org/CVERecord?id=CVE-2026-64310
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64310.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64310
Downstream
Published
2026-07-25T08:49:42.683Z
Modified
2026-07-27T04:03:21.251543422Z
Summary
crypto: ccp - Do not initialize SNP for SEV ioctls
Details

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., SEVPDHGEN) and zero out MSRVMHSAVE_PA globally? Would the next VMRUN execution for an active VM trigger a general protection fault and crash the host?

sevmovetoinitstate() is called for ioctls requiring only SEV firmware: SEVPEKGEN, SEVPDHGEN, SEVPEKCSR, SEVPEKCERTIMPORT, and SEVPDHCERTEXPORT. 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 __sevplatforminitlocked() which only initializes the SEV firmware. This way SNP is not Initialized at all, and HSAVEPA is not cleared.

The previous code saved any SEV initialization firmware error to initargs.error and then threw it away and hardcoded the return value of INVALIDPLATFORM_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 __sevfirmwareshutdown() directly: it calls _sevsnpshutdownlocked(), which skips SNP shutdown if SNP was not initialized.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64310.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1c3506ea8599a3ad1b9aae5cbd573134f8d18db7
Fixed
5181e88da99c3d1d41e25db3472a62b8d4b42cdd
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ceac7fb89e8da465aec3ac3c20477f912f5c3a6c
Fixed
9e983d0a74a6a2348e4ce61647ec8a4dfbe198ac
Fixed
d51207735e7c224cf591fa260c557a451a69a5cf
Fixed
fb1758e74b8061aacfbce7bbb7a7cc650537e167
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6.12.75
Fixed
6.12.96

Affected versions

v6.*
v6.12.75
v6.12.76
v6.12.77
v6.12.78
v6.12.79
v6.12.80
v6.12.81
v6.12.82
v6.12.83
v6.12.84
v6.12.85
v6.12.86
v6.12.87
v6.12.88
v6.12.89
v6.12.90
v6.12.91
v6.12.92
v6.12.93
v6.12.94
v6.12.95

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64310.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.12.96
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.39
Type
ECOSYSTEM
Events
Introduced
6.16.0
Fixed
7.1.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64310.json"