CVE-2026-64310

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

History

24 Oct 2026, 13:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: crypto: ccp - No inicializar SNP para ioctls de SEV Notas de Sashiko: > si la inicialización de SEV falla y KVM está ejecutando activamente VMs normales, ¿podría un > proceso de espacio de usuario activar esta ruta de código a través de ioctls de /dev/sev (p. ej., > SEV_PDH_GEN) y poner a cero MSR_VM_HSAVE_PA globalmente? ¿La siguiente ejecución de VMRUN > para una VM activa activaría una falla de protección general y colapsaría el > host? sev_move_to_init_state() se llama para ioctls que requieren solo firmware de SEV: SEV_PEK_GEN, SEV_PDH_GEN, SEV_PEK_CSR, SEV_PEK_CERT_IMPORT y SEV_PDH_CERT_EXPORT. Después del comando de firmware, realiza SEV_SHUTDOWN en el firmware de SEV. Dado que estos comandos no requieren que SNP sea inicializado, se omite llamando a __sev_platform_init_locked() que solo inicializa el firmware de SEV. De esta manera, SNP no se inicializa en absoluto, y HSAVE_PA no se borra. El código anterior guardaba cualquier error de firmware de inicialización de SEV en init_args.error y luego lo descartaba y codificaba el valor de retorno de INVALID_PLATFORM_STATE independientemente del error real del firmware. Este parche lo cambia para mostrar el error subyacente, lo que, con suerte, es más útil y no causa ningún problema. Tenga en cuenta que sigue siendo seguro llamar a __sev_firmware_shutdown() directamente: llama a __sev_snp_shutdown_locked(), que omite el apagado de SNP si SNP no fue inicializado.

Information

Published : 2026-07-25 10:17

Updated : 2026-10-24 13:10


NVD link : CVE-2026-64310

Mitre link : CVE-2026-64310

CVE.ORG link : CVE-2026-64310


JSON object : View

Products Affected

linux

  • linux_kernel