KVM: arm64: nv: Fix life cycle of the nested_mmus array
In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: nv: Fix life cycle of the nested_mmus array The nested_mmus array holds the shadow page tables that are used when a guest is running a nested context. These structures are allocated on VCPU_INIT for whole guest, which implies that they may have to be relocated as the array grows. Should a VCPU_INIT occur whilst a vcpu is actively running an L2 and that the allocation requires relocation, that vcpu will still be running with a pointer to the previous structure, which will have been freed. Fix this by turning the array of structures to an array of pointers, which is now allocated at VM creation, sized to the absolute maximum that KVM can handle. In turn, each VCPU_INIT contributes S2_MMU_PER_VCPU to the pool. No reallocation is ever performed, and the life cycle of each object is much clearer: - the nested_mmus array is allocated in kvm_init_nested(), and freed in kvm_arch_destroy_vm() - s2_mmu structures are allocated in kvm_vcpu_init_nested(), and freed on kvm_arch_flush_shadow_all() Finally, the freeing of vcpu->arch.vncr_array is made consistent rather than being done on some failure paths, but not others.
CVE-2026-98927
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-98927
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "4f128f8e1aaac189f83d0f828bcdb2986d8d2e51",
"lessThan": "ea242bdc29e8a8ff0e2447a64b3841114779f3af",
"versionType": "git"
},
{
"status": "affected",
"version": "4f128f8e1aaac189f83d0f828bcdb2986d8d2e51",
"lessThan": "81e3f065a6485626f816d791dfd5e00ddd12eff5",
"versionType": "git"
},
{
"status": "affected",
"version": "4f128f8e1aaac189f83d0f828bcdb2986d8d2e51",
"lessThan": "512c93f4461b9a3735987f48423d438a9cd49e6a",
"versionType": "git"
},
{
"status": "affected",
"version": "4f128f8e1aaac189f83d0f828bcdb2986d8d2e51",
"lessThan": "33346f8960c7bb6a3b4e273b5cfe25c5a8be349f",
"versionType": "git"
}
],
"programFiles": [
"arch/arm64/include/asm/kvm_host.h",
"arch/arm64/include/asm/kvm_nested.h",
"arch/arm64/kvm/arm.c",
"arch/arm64/kvm/nested.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.11"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.11",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.12.113",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.56",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.9",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"arch/arm64/include/asm/kvm_host.h",
"arch/arm64/include/asm/kvm_nested.h",
"arch/arm64/kvm/arm.c",
"arch/arm64/kvm/nested.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-98927
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #55705 · Revision 1
- Added to Heist Feed
- Publisher date