{"id":"CVE-2026-31591","state":"PUBLISHED","title":"KVM: SEV: Lock all vCPUs when synchronzing VMSAs for SNP launch finish","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: SEV: Lock all vCPUs when synchronzing VMSAs for SNP launch finish\n\nLock all vCPUs when synchronizing and encrypting VMSAs for SNP guests, as\nallowing userspace to manipulate and/or run a vCPU while its state is being\nsynchronized would at best corrupt vCPU state, and at worst crash the host\nkernel.\n\nOpportunistically assert that vcpu->mutex is held when synchronizing its\nVMSA (the SEV-ES path already locks vCPUs).","publishedAt":"2026-04-24T14:42:18.276Z","updatedAt":"2026-06-14T17:42:31.923Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ad27ce155566f2b4400fa865859834592bd18777","status":"affected","lessThan":"30fd9d8c82087742168db779929d8be0459b0716","versionType":"git"},{"version":"ad27ce155566f2b4400fa865859834592bd18777","status":"affected","lessThan":"4df77742e8b9a6b935bdf46f02fd0aca4d4ee7f5","versionType":"git"},{"version":"ad27ce155566f2b4400fa865859834592bd18777","status":"affected","lessThan":"c87938fc7d99a06a7e5477c45b4e5a4148f85d66","versionType":"git"},{"version":"ad27ce155566f2b4400fa865859834592bd18777","status":"affected","lessThan":"cb923ee6a80f4e604e6242a4702b59251e61a380","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/x86/kvm/svm/sev.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.18.24","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.14","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0.1","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/x86/kvm/svm/sev.c"]}],"references":["https://git.kernel.org/stable/c/30fd9d8c82087742168db779929d8be0459b0716","https://git.kernel.org/stable/c/4df77742e8b9a6b935bdf46f02fd0aca4d4ee7f5","https://git.kernel.org/stable/c/c87938fc7d99a06a7e5477c45b4e5a4148f85d66","https://git.kernel.org/stable/c/cb923ee6a80f4e604e6242a4702b59251e61a380"],"weaknesses":[],"ingestedAt":"2026-10-29T20:11:40.391Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/31xxx/CVE-2026-31591.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-31591","state":"PUBLISHED","datePublished":"2026-04-24T14:42:18.276Z","dateUpdated":"2026-06-14T17:42:31.923Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-03-09T15:48:24.120Z"},"containers":{"cna":{"title":"KVM: SEV: Lock all vCPUs when synchronzing VMSAs for SNP launch finish","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: SEV: Lock all vCPUs when synchronzing VMSAs for SNP launch finish\n\nLock all vCPUs when synchronizing and encrypting VMSAs for SNP guests, as\nallowing userspace to manipulate and/or run a vCPU while its state is being\nsynchronized would at best corrupt vCPU state, and at worst crash the host\nkernel.\n\nOpportunistically assert that vcpu->mutex is held when synchronizing its\nVMSA (the SEV-ES path already locks vCPUs)."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ad27ce155566f2b4400fa865859834592bd18777","status":"affected","lessThan":"30fd9d8c82087742168db779929d8be0459b0716","versionType":"git"},{"version":"ad27ce155566f2b4400fa865859834592bd18777","status":"affected","lessThan":"4df77742e8b9a6b935bdf46f02fd0aca4d4ee7f5","versionType":"git"},{"version":"ad27ce155566f2b4400fa865859834592bd18777","status":"affected","lessThan":"c87938fc7d99a06a7e5477c45b4e5a4148f85d66","versionType":"git"},{"version":"ad27ce155566f2b4400fa865859834592bd18777","status":"affected","lessThan":"cb923ee6a80f4e604e6242a4702b59251e61a380","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/x86/kvm/svm/sev.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.18.24","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.14","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0.1","status":"unaffected","lessThanOrEqual":"7.0.*","versionType":"semver"},{"version":"7.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/x86/kvm/svm/sev.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/30fd9d8c82087742168db779929d8be0459b0716"},{"url":"https://git.kernel.org/stable/c/4df77742e8b9a6b935bdf46f02fd0aca4d4ee7f5"},{"url":"https://git.kernel.org/stable/c/c87938fc7d99a06a7e5477c45b4e5a4148f85d66"},{"url":"https://git.kernel.org/stable/c/cb923ee6a80f4e604e6242a4702b59251e61a380"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-06-14T17:42:31.923Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.18.24"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.19.14"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.0.1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}