From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8F4554FECD6 for ; Wed, 16 Sep 2026 10:38:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555114; cv=none; b=AgJqR4FUVzoPlSTqaljYQ/WSyjQRVWlJLGiTsPO/zIWfxqGm5q4KxXFO0lquqgMtyqW2UmwvtqG/nuHyD0YiDrNvmukgOvzHBkE0irzJqSeDPQF+rJ8hteWDQFkxsqCqDJnpjDvnRD+FPS+wxHf48uMvIaA7a7S1PNSCQ15g/K8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555114; c=relaxed/simple; bh=ozxy24zVYoFfmzWFBWjIj4g0UuH3+QuGstZ4BcA02WU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VUTrCWaWHVFAMygnAHL+IcDtxNwRvNcjaGXG7eIAJzAFVbgZSvCO6A/ZDYIE4sqgv80g4XkO9bdPP6le1fbrvvGXj3Q2lQUPPby8Mt3nAAGhhMbu4VZhGCNbBqRe4tl3Bqbws21kxqNRrhjWfsuqG4ERIvCzquotLPGutWHud3M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tpP/npET; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="tpP/npET" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D82F01F00893; Wed, 16 Sep 2026 10:38:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789555111; bh=zGbtHM0pnTaWgIXyZ7h20Pnqs6whXDPtQGvCx3r9qNw=; h=From:To:Cc:Subject:Date:Reply-To; b=tpP/npET4qnFUGz3D9WByoUB4ZIhFfiuSdxaGnwzn8BiwEtDgQLHdxu/oW33ornry oLrkGqCY+RrbPxcTb6pkIq98k4fqw7NriR8S93VPuaBBLlg3l5bkH/WwT8UlvdAbVQ IhRHn20dNh4bm8PTkikD2mt223T+bhcGEYQHVS80= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89909: LoongArch: KVM: Free init resources if kvm_init() fails Date: Wed, 16 Sep 2026 11:30:39 +0100 Message-ID: <2026091640-CVE-2026-89909-4fab@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2734; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cx4ZPNbCB9dm7fYsdsrS3QJcPt/I/6Q2c1NiIuOlzdI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8qfIvTTetTskxm3vjeMtoX/aVirVXsp5aFc56WdJ2 LG79+LKOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiS38wzNPvami9tPD+/3er FXvZzOb0P73qJsCwYK1z/DQp1Q+aWi4navSaz/eGTzs7BQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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(). The Linux kernel CVE team has assigned CVE-2026-89909 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 2bd6ac68726131da32ace9717aa63ff68cf6605c and fixed in 6.12.110 with commit 6bbbd7b719233645a5c120557a9ca1422e6b7a48 Issue introduced in 6.7 with commit 2bd6ac68726131da32ace9717aa63ff68cf6605c and fixed in 6.18.51 with commit 6b78786ee7260d9818cf1d7a245b7a655ef83076 Issue introduced in 6.7 with commit 2bd6ac68726131da32ace9717aa63ff68cf6605c and fixed in 7.2.5 with commit 3bf6f5e2e1007d38a5f35bd37e94ab645a0c40bc Issue introduced in 6.7 with commit 2bd6ac68726131da32ace9717aa63ff68cf6605c and fixed in 7.3-rc2 with commit f7a1064cce3b100b54780c68529176232d8eb01e Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-89909 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: arch/loongarch/kvm/main.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: 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