CVE-2021-47062
publishedKVM: SVM: Use online_vcpus, not created_vcpus, to iterate over vCPUs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxad73109ae7ec30d5bfb76be108e304f9f0af4829 to < bd0cced2ae93195668f983d443f7f17e8efd24d2 · ad73109ae7ec30d5bfb76be108e304f9f0af4829 to < ba7bf5d6336aa9c0d977b161bfa420c56d46ee40 · ad73109ae7ec30d5bfb76be108e304f9f0af4829 to < c36b16d29f3af5f32fc1b2a3401bf48f71cabee1 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.11 (affected) · 0 to < 5.11 (unaffected · semver) · 5.11.21 through 5.11.* (unaffected · semver) · 5.12.4 through 5.12.* (unaffected · semver) · 5.13 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: KVM: SVM: Use online_vcpus, not created_vcpus, to iterate over vCPUs Use the kvm_for_each_vcpu() helper to iterate over vCPUs when encrypting VMSAs for SEV, which effectively switches to use online_vcpus instead of created_vcpus. This fixes a possible null-pointer dereference as created_vcpus does not guarantee a vCPU exists, since it is updated at the very beginning of KVM_CREATE_VCPU. created_vcpus exists to allow the bulk of vCPU creation to run in parallel, while still correctly restricting the max number of max vCPUs.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | ad73109ae7ec30d5bfb76be108e304f9f0af4829 to < bd0cced2ae93195668f983d443f7f17e8efd24d2 (affected · git)ad73109ae7ec30d5bfb76be108e304f9f0af4829 to < ba7bf5d6336aa9c0d977b161bfa420c56d46ee40 (affected · git)ad73109ae7ec30d5bfb76be108e304f9f0af4829 to < c36b16d29f3af5f32fc1b2a3401bf48f71cabee1 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.11 (affected)0 to < 5.11 (unaffected · semver)5.11.21 through 5.11.* (unaffected · semver)5.12.4 through 5.12.* (unaffected · semver)5.13 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
3Linux · cna
KVM: SVM: Use online_vcpus, not created_vcpus, to iterate over vCPUs
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0e463a5c3a548da863bcdfebee707102a463a2e3e5a39966e37e65549d7debaa
- Ingested
- 23 Sep 2026, 07:57:04 UTC
- Source record
- Official CVE record