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

Published Sep 16, 2026
·
Updated

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

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

kvmloongarchinit() calls kvmloongarchenvinit() to allocate the per-CPU kvmcontext (vmcs) and kvmloongarchops and to register the perf callbacks, and then calls kvminit(). If kvminit() fails its result is returned directly, but since moduleinit() does not run the moduleexit() stuff on failure, so kvmloongarchenvexit() is never called and those resources are leaked.

So call kvmloongarchenvexit() when kvminit() fails, matching the teardown-on-failure pattern used by riscvkvminit().

Event History

Sep 16, 2026
CVE Published
via MITRE·10:32 AM
Data Sourced
via MITRE·10:32 AM
Description

Frequently Asked Questions

1

Under what condition does the resource leak occur?

The leak occurs when the LoongArch KVM module has completed its environment initialization but kvm_init() subsequently fails. In that failure path, the module exit routine is not run automatically.

2

What resources can remain allocated after the failed initialization?

The affected initialization allocates per-CPU kvm_context (vmcs) data and kvm_loongarch_ops, and registers perf callbacks. These resources were not released when kvm_init() failed.

3

What does the fix change?

The fix calls kvm_loongarch_env_exit() when kvm_init() returns an error. This tears down the initialization resources on failure.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203