{"id":"CVE-2021-47062","published":"2024-02-29T22:37:36Z","modified":"2026-05-11T13:47:20Z","title":"KVM: SVM: Use online_vcpus, not created_vcpus, to iterate over vCPUs","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: SVM: Use online_vcpus, not created_vcpus, to iterate over vCPUs\n\nUse the kvm_for_each_vcpu() helper to iterate over vCPUs when encrypting\nVMSAs for SEV, which effectively switches to use online_vcpus instead of\ncreated_vcpus.  This fixes a possible null-pointer dereference as\ncreated_vcpus does not guarantee a vCPU exists, since it is updated at\nthe very beginning of KVM_CREATE_VCPU.  created_vcpus exists to allow the\nbulk of vCPU creation to run in parallel, while still correctly\nrestricting the max number of max vCPUs.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00222,"percentile":0.07558,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/bd0cced2ae93195668f983d443f7f17e8efd24d2","tags":[]},{"url":"https://git.kernel.org/stable/c/ba7bf5d6336aa9c0d977b161bfa420c56d46ee40","tags":[]},{"url":"https://git.kernel.org/stable/c/c36b16d29f3af5f32fc1b2a3401bf48f71cabee1","tags":[]}],"priority":{"score":1.5,"factors":[{"name":"EPSS percentile","points":1.51}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= ad73109ae7ec30d5bfb76be108e304f9f0af4829, < bd0cced2ae93195668f983d443f7f17e8efd24d2",">= ad73109ae7ec30d5bfb76be108e304f9f0af4829, < ba7bf5d6336aa9c0d977b161bfa420c56d46ee40",">= ad73109ae7ec30d5bfb76be108e304f9f0af4829, < c36b16d29f3af5f32fc1b2a3401bf48f71cabee1"]},{"vendor":"Linux","product":"Linux","versions":["5.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-03-05T22:14:24.335971Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-33710","exploited":false,"provenance":"source"}}