Skip to content
Heist/ feed
Back to feed
UnratedFix available

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

Type: advisorySources: OSV

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

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.110, 6.18.51, 7.2.5
CVEs
CVE-2026-89909
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 17:36 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 16 Sept 2026, 10:32 UTC

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

osv:CVE-2026-89909

Kernel

Fixed versions: 6.12.110, 6.18.51, 7.2.5

Complete source record
{
  "id": "b00d35cae0afc836679d0e7dd633268672a0125115f76a6314b0a9f3ff15cd5f",
  "url": "https://osv.dev/vulnerability/CVE-2026-89909",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "LoongArch: KVM: Free init resources if kvm_init() fails",
    "summary": "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().",
    "evidence": "osv:CVE-2026-89909",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.12.110",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.51",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.2.5",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-89909",
      "aliases": [
        "CVE-2026-89909"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "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"
          }
        },
        {
          "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"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89909.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.867065489Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/3bf6f5e2e1007d38a5f35bd37e94ab645a0c40bc",
        "https://git.kernel.org/stable/c/6b78786ee7260d9818cf1d7a245b7a655ef83076",
        "https://git.kernel.org/stable/c/6bbbd7b719233645a5c120557a9ca1422e6b7a48",
        "https://git.kernel.org/stable/c/f7a1064cce3b100b54780c68529176232d8eb01e",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89909.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-89909",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89909.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-89909",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 505378,
  "published_at": "2026-09-16T10:32:07.278+00:00"
}