Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 903D7134BD for ; Fri, 25 Jul 2025 12:48:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753447705; cv=none; b=SZeqpfgAtP8ZbfbEXVdYQBSe92CgXECOOxbmX2uIFfm9TTN/U8tE/QonIgNG1jRUqwBwJ3zPh14iwgiGdxidweMvkaiZTMrD0YuftQ5NGceb8XrpsJrBGkKeXM1zPhcVnMnYsVNaz0b6WXv3GNfLgZRPx6dZmfFIwBUxyB/BHXo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753447705; c=relaxed/simple; bh=QNtPU3yFL4JM7WjENhHil7Xqb+KBNPc/P+8HXiejeGE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AbMh1ZBxI+lWjNKdcI/yigVNJ3+QMg6dFimr1m14c364T+L7WG0R4RJTsuPA4Cn3e49B9x3gUVYUPKZH19KXpEJzvG/g7QdqlnQrKA8dNVYhCW9VTbxodAlvY+rr5Lj6ltCUGVH1Y2yXoUESpYSsZp33LDp8z9p9rbgz+mKUNyA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=O7qYv0mu; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="O7qYv0mu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E67FBC4CEE7; Fri, 25 Jul 2025 12:48:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753447705; bh=QNtPU3yFL4JM7WjENhHil7Xqb+KBNPc/P+8HXiejeGE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=O7qYv0mu9gxcG0Fr7BD4sQ2GEgYsJ3+OjxLod9ytoAFmeHNAWlNoyACHIxgePjy/q aNv6AeIaO+ZiX7NwSFwiaQfP7Vk6tXLym1F4le3idGPxsbXxogd1DPd4PsYAPyAAge rWu0R+wTbZN1LHvZnr7eJlDQoTsMKlJc3DBIfQ8s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38367: LoongArch: KVM: Avoid overflow with array index Date: Fri, 25 Jul 2025 14:48:08 +0200 Message-ID: <2025072558-CVE-2025-38367-df91@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=1906; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NZFg7Nespdm4//N/CpQnq/g4mmZgiTC8D6NHW3saErc=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnNNf9Z9RRCNn6XuWq72+vH3a25y7LeGPTbcOdlRM/2/ KPsnRLbEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNJzmSYK+jlKttZr7Piyve7 09b25V/mf+CkxbDg6IdOflVdEYWSrCf+Xxsqu7bN2icNAA== 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: Avoid overflow with array index The variable index is modified and reused as array index when modify register EIOINTC_ENABLE. There will be array index overflow problem. The Linux kernel CVE team has assigned CVE-2025-38367 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 3956a52bc05bd811082a3c9d2b423ee957e6fefc and fixed in 6.15.5 with commit 2cc84c4b0d70d42e291862ecc848890d18e1004a Issue introduced in 6.13 with commit 3956a52bc05bd811082a3c9d2b423ee957e6fefc and fixed in 6.16-rc4 with commit 080e8d2ecdfde588897aa8a87a8884061f4dbbbb 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-2025-38367 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/intc/eiointc.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/2cc84c4b0d70d42e291862ecc848890d18e1004a https://git.kernel.org/stable/c/080e8d2ecdfde588897aa8a87a8884061f4dbbbb