CVE-2026-89909

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

State
Published
Severity
Not scored
Published
Sep 16, 2026
Updated
Oct 19, 2026
Reserved
Sep 11, 2026

Read the record on cve.org

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().

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 2bd6ac68726131da32ace9717aa63ff68cf6605c to before 6bbbd7b719233645a5c120557a9ca1422e6b7a48Affected
  • 2bd6ac68726131da32ace9717aa63ff68cf6605c to before 6b78786ee7260d9818cf1d7a245b7a655ef83076Affected
  • 2bd6ac68726131da32ace9717aa63ff68cf6605c to before 3bf6f5e2e1007d38a5f35bd37e94ab645a0c40bcAffected
  • 2bd6ac68726131da32ace9717aa63ff68cf6605c to before f7a1064cce3b100b54780c68529176232d8eb01eAffected
LinuxLinux
  • 6.7Affected
  • before 6.7Not affected
  • 6.12.110 through 6.12.*Not affected
  • 6.18.51 through 6.18.*Not affected
  • 7.2.5 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.