CVE-2026-64310
kernel: crypto: ccp - Do not initialize SNP for SEV ioctls
Overview
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.
Source: OX vulnerability database
Severity
5.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 35 fixes
Oracle Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 9 | kernel-uek +34 | 6.12.0-206.104.3.3.el9uek |
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 5.0 | bpftool +7 | 6.12.96-1.ph5 |
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 9 | bpftool +105 | affected |
SUSE Linux Enterprise 1 release · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | cluster-md-kmp-default +2 | 6.12.0-160000.38.1 | SUSE-SU-2026:23897-1 |
| 16.0 | kernel-64kb +23 | 6.12.0-160000.38.1 | SUSE-SU-2026:23902-1 |
| 16.0 | kernel-default-base | 6.12.0-160000.38.1.160000.2.23 | SUSE-SU-2026:23902-1 |
SUSE Linux Enterprise Micro 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 6.2 | kernel-64kb +11 | 6.12.0-160000.38.1 | SUSE-SU-2026:23887-1 |
| 6.2 | kernel-default-base | 6.12.0-160000.38.1.160000.2.23 | SUSE-SU-2026:23887-1 |
debian 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 12 | linux-6-12 | 6.12.100-1~deb12u1 |
| 13 | linux | 6.12.96-1 |
| 14 | linux | 7.1.4-1 |
echo 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| linux-6-12 | 6.12.100-1~deb12u1 | |
| linux | 6.12.96-1 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | kernel-devel +3 | 7.1.7-1.1 | openSUSE-SU-2026:11476-1 |
openSUSE Leap 2 releases · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | cluster-md-kmp-64kb +74 | 6.12.0-160000.38.1 | openSUSE-SU-2026:21910-1 |
| 16.0 | kernel-default-base | 6.12.0-160000.38.1.160000.2.22 | openSUSE-SU-2026:21910-1 |
| 16.1 | cluster-md-kmp-64kb +74 | 6.12.0-160100.9.1 | openSUSE-SU-2026:22309-1 |
| 16.1 | kernel-default-base | 6.12.0-160100.9.1.160100.3.14 | openSUSE-SU-2026:22309-1 |
ubuntu 2 releases · 17 packages
| Release | Package | Fixed in |
|---|---|---|
| 24.04 | linux-gcp-7-0 +1 | 7.0.0-1011.11~24.04.1 |
| 24.04 | linux-aws-7-0 | 7.0.0-1012.12~24.04.1 |
| 24.04 | linux-azure-fde-7-0 | 7.0.0-1013.13~24.04.1 |
| 24.04 | linux-azure-7-0 | 7.0.0-1014.14~24.04.1 |
| 24.04 | linux-nvidia-7-0 | 7.0.0-1018.18~24.04.1 |
| 24.04 | linux-riscv-7-0 | 7.0.0-31.31.1~24.04.1 |
11 more rows
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-64310
- git.kernel.org https://git.kernel.org/linus/fb1758e74b8061aacfbce7bbb7a7cc650537e167 (7.2-rc1)
- git.kernel.org https://git.kernel.org/stable/c/5181e88da99c3d1d41e25db3472a62b8d4b42cdd
- git.kernel.org https://git.kernel.org/stable/c/9e983d0a74a6a2348e4ce61647ec8a4dfbe198ac
- git.kernel.org https://git.kernel.org/stable/c/d51207735e7c224cf591fa260c557a451a69a5cf
- git.kernel.org https://git.kernel.org/stable/c/fb1758e74b8061aacfbce7bbb7a7cc650537e167
- kernelcve.org https://kernelcve.org/list/?q=CVE-2026-64310
- linux.oracle.com https://linux.oracle.com/cve/CVE-2026-64310.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2026-500248.html
- lore.kernel.org https://lore.kernel.org/linux-cve-announce/2026072509-CVE-2026-64310-3761@gregkh/T
Show all 23 references
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-64310
- ubuntu.com https://ubuntu.com/security/notices/USN-8726-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8726-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8726-3
- ubuntu.com https://ubuntu.com/security/notices/USN-8726-4
- ubuntu.com https://ubuntu.com/security/notices/USN-8727-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8728-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8728-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8728-3
- ubuntu.com https://ubuntu.com/security/notices/USN-8760-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8760-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8800-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-64310
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.