{"id":"CVE-2026-89909","state":"PUBLISHED","title":"LoongArch: KVM: Free init resources if kvm_init() fails","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nLoongArch: KVM: Free init resources if kvm_init() fails\n\nkvm_loongarch_init() calls kvm_loongarch_env_init() to allocate the\nper-CPU kvm_context (vmcs) and kvm_loongarch_ops and to register the\nperf callbacks, and then calls kvm_init(). If kvm_init() fails its\nresult is returned directly, but since module_init() does not run the\nmodule_exit() stuff on failure, so kvm_loongarch_env_exit() is never\ncalled and those resources are leaked.\n\nSo call kvm_loongarch_env_exit() when kvm_init() fails, matching the\nteardown-on-failure pattern used by riscv_kvm_init().","publishedAt":"2026-09-16T10:32:07.278Z","updatedAt":"2026-10-19T08:54:42.797Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2bd6ac68726131da32ace9717aa63ff68cf6605c","status":"affected","lessThan":"6bbbd7b719233645a5c120557a9ca1422e6b7a48","versionType":"git"},{"version":"2bd6ac68726131da32ace9717aa63ff68cf6605c","status":"affected","lessThan":"6b78786ee7260d9818cf1d7a245b7a655ef83076","versionType":"git"},{"version":"2bd6ac68726131da32ace9717aa63ff68cf6605c","status":"affected","lessThan":"3bf6f5e2e1007d38a5f35bd37e94ab645a0c40bc","versionType":"git"},{"version":"2bd6ac68726131da32ace9717aa63ff68cf6605c","status":"affected","lessThan":"f7a1064cce3b100b54780c68529176232d8eb01e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/loongarch/kvm/main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.51","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.5","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/loongarch/kvm/main.c"]}],"references":["https://git.kernel.org/stable/c/6bbbd7b719233645a5c120557a9ca1422e6b7a48","https://git.kernel.org/stable/c/6b78786ee7260d9818cf1d7a245b7a655ef83076","https://git.kernel.org/stable/c/3bf6f5e2e1007d38a5f35bd37e94ab645a0c40bc","https://git.kernel.org/stable/c/f7a1064cce3b100b54780c68529176232d8eb01e"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:26.108Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/89xxx/CVE-2026-89909.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-89909","state":"PUBLISHED","datePublished":"2026-09-16T10:32:07.278Z","dateUpdated":"2026-10-19T08:54:42.797Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.774Z"},"containers":{"cna":{"title":"LoongArch: KVM: Free init resources if kvm_init() fails","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nLoongArch: KVM: Free init resources if kvm_init() fails\n\nkvm_loongarch_init() calls kvm_loongarch_env_init() to allocate the\nper-CPU kvm_context (vmcs) and kvm_loongarch_ops and to register the\nperf callbacks, and then calls kvm_init(). If kvm_init() fails its\nresult is returned directly, but since module_init() does not run the\nmodule_exit() stuff on failure, so kvm_loongarch_env_exit() is never\ncalled and those resources are leaked.\n\nSo call kvm_loongarch_env_exit() when kvm_init() fails, matching the\nteardown-on-failure pattern used by riscv_kvm_init()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2bd6ac68726131da32ace9717aa63ff68cf6605c","status":"affected","lessThan":"6bbbd7b719233645a5c120557a9ca1422e6b7a48","versionType":"git"},{"version":"2bd6ac68726131da32ace9717aa63ff68cf6605c","status":"affected","lessThan":"6b78786ee7260d9818cf1d7a245b7a655ef83076","versionType":"git"},{"version":"2bd6ac68726131da32ace9717aa63ff68cf6605c","status":"affected","lessThan":"3bf6f5e2e1007d38a5f35bd37e94ab645a0c40bc","versionType":"git"},{"version":"2bd6ac68726131da32ace9717aa63ff68cf6605c","status":"affected","lessThan":"f7a1064cce3b100b54780c68529176232d8eb01e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/loongarch/kvm/main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.51","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.5","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/loongarch/kvm/main.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/6bbbd7b719233645a5c120557a9ca1422e6b7a48"},{"url":"https://git.kernel.org/stable/c/6b78786ee7260d9818cf1d7a245b7a655ef83076"},{"url":"https://git.kernel.org/stable/c/3bf6f5e2e1007d38a5f35bd37e94ab645a0c40bc"},{"url":"https://git.kernel.org/stable/c/f7a1064cce3b100b54780c68529176232d8eb01e"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T08:54:42.797Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.12.110"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.18.51"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"7.2.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}