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 EED73134BD for ; Fri, 25 Jul 2025 12:48:21 +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=1753447702; cv=none; b=o9Ob1IvIXC6cKPJg6yOPRKNSz65Z5erY+3ZhI+Fws/KwcbZ/qgRo/iBefMBcbR9KHxxrQoYVl/7JltcT3j4sMWyX2b15ETwumu6WT3hcinLCzdjdW/FgTq/Kk5RzrQs56B19/clY46o0vaRcxvxXIVTFfOQ5mnemolAz85cO9D0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753447702; c=relaxed/simple; bh=LtuzelV69l4Fu/oTm2A49Gpqd8gBw7rbAP1q3JYrIvA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=M6l13tMwWHR6jADblhVPLn7gQQ2wv5d08xioVjstii95Ly7eKkYw4wG05KOg80UsZxRhJ1n++TuzwjyVouYXnF3I1F/hLrWDlbPmILbN4qda4FDqrbR4RtrOKb6RdPlt0nktsKKmTenOOtvYSUYksne+wcJ+583oiZacO5mjSQc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Nc35ZJen; 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="Nc35ZJen" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55128C4CEE7; Fri, 25 Jul 2025 12:48:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753447701; bh=LtuzelV69l4Fu/oTm2A49Gpqd8gBw7rbAP1q3JYrIvA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Nc35ZJenwRa0hoUx04O7/QHtrOo5vYEFZD/HmFNjzjlY9pJ96nvowgxfRZGIWhQze 3ctVys7qRLiDg7NICobiRJ3PJxgS4IHdFm90LOi+F8nBnZUlhYsTDkvkcZnpL4+Rwx 4fhZAP5fxlbMPW0puGyjk8DugFI/FvH8ZXaDWkcs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38366: LoongArch: KVM: Check validity of "num_cpu" from user space Date: Fri, 25 Jul 2025 14:48:07 +0200 Message-ID: <2025072558-CVE-2025-38366-26b8@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=1934; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jhi2Fb06Kwgt8U7GFjZQmmKC4DWdDaYrx3o0E0a/e94=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnNNf94VkTrdSzJ/mezLX1/2JYO9bQPZxw4psw9JKzV3 v1aVP1XRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk9wuGOdzOU7v12nds6z0W Yvj5GCtrp8jZ7QxzxT9bubb88Pv0+wrjZ+WJm2a9X/SOCQA= 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: Check validity of "num_cpu" from user space The maximum supported cpu number is EIOINTC_ROUTE_MAX_VCPUS about irqchip EIOINTC, here add validation about cpu number to avoid array pointer overflow. The Linux kernel CVE team has assigned CVE-2025-38366 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 1ad7efa552fd5cf4e8c49fea863c5c6a5dcf9f00 and fixed in 6.15.5 with commit a3293b4078ee93174f70f36d3ab7618554ce6ab6 Issue introduced in 6.13 with commit 1ad7efa552fd5cf4e8c49fea863c5c6a5dcf9f00 and fixed in 6.16-rc4 with commit cc8d5b209e09d3b52bca1ffe00045876842d96ae 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-38366 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/a3293b4078ee93174f70f36d3ab7618554ce6ab6 https://git.kernel.org/stable/c/cc8d5b209e09d3b52bca1ffe00045876842d96ae