{"id":"CVE-2026-89909","summary":"LoongArch: KVM: Free init resources if kvm_init() fails","details":"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().","modified":"2026-09-17T03:47:27.197799223Z","published":"2026-09-16T10:32:07.278Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89909.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3bf6f5e2e1007d38a5f35bd37e94ab645a0c40bc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6b78786ee7260d9818cf1d7a245b7a655ef83076"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6bbbd7b719233645a5c120557a9ca1422e6b7a48"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f7a1064cce3b100b54780c68529176232d8eb01e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89909.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89909"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2bd6ac68726131da32ace9717aa63ff68cf6605c"},{"fixed":"6bbbd7b719233645a5c120557a9ca1422e6b7a48"},{"fixed":"6b78786ee7260d9818cf1d7a245b7a655ef83076"},{"fixed":"3bf6f5e2e1007d38a5f35bd37e94ab645a0c40bc"},{"fixed":"f7a1064cce3b100b54780c68529176232d8eb01e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89909.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.110"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.51"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89909.json"}}],"schema_version":"1.9.0"}