# CVE-2026-89909: LoongArch: KVM: Free init resources if kvm_init() fails

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-09-16T10:32:07.278Z
- Modified: 2026-10-19T09:18:36.343Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

LoongArch: KVM: Free init resources if kvm_init() fails

kvm_loongarch_init() calls kvm_loongarch_env_init() to allocate the
per-CPU kvm_context (vmcs) and kvm_loongarch_ops and to register the
perf callbacks, and then calls kvm_init(). If kvm_init() fails its
result is returned directly, but since module_init() does not run the
module_exit() stuff on failure, so kvm_loongarch_env_exit() is never
called and those resources are leaked.

So call kvm_loongarch_env_exit() when kvm_init() fails, matching the
teardown-on-failure pattern used by riscv_kvm_init().

(As written by CVE List.)

## Affected

- Linux Linux: from 2bd6ac68726131da32ace9717aa63ff68cf6605c before 6bbbd7b719233645a5c120557a9ca1422e6b7a48; from 2bd6ac68726131da32ace9717aa63ff68cf6605c before 6b78786ee7260d9818cf1d7a245b7a655ef83076; from 2bd6ac68726131da32ace9717aa63ff68cf6605c before 3bf6f5e2e1007d38a5f35bd37e94ab645a0c40bc; from 2bd6ac68726131da32ace9717aa63ff68cf6605c before f7a1064cce3b100b54780c68529176232d8eb01e; 6.7 (not affected: before 6.7; from 6.12.110 up to 6.12.*; from 6.18.51 up to 6.18.*; from 7.2.5 up to 7.2.*; from 7.3 up to *)

## 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>

## Sources

- CVE List: [CVE-2026-89909](https://www.cve.org/CVERecord?id=CVE-2026-89909), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-89909](https://nvd.nist.gov/vuln/detail/CVE-2026-89909), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-89909 · Whole record: https://cve.day/CVE-2026-89909.json · Rebuilt by cve.day 2026-11-25T22:59:38.975Z
