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 5231D2D8393 for ; Tue, 16 Sep 2025 13:00:54 +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=1758027655; cv=none; b=g7WqVzhJ33wjS4n/FvX4bw8pR26j+QXgwg13VPAL46E3SQyH+QgfSRi4E07qU3WhjZk1YMskNX/SB0jvZwG1TlX3YRfwtSZVHC5h6647hQElIQq8HG2EQnDmBmNBuCMjxgkNxokxI/AtNtEQ3TD8sKKkxHRNJ8gAVb+haeLQL3E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758027655; c=relaxed/simple; bh=ztf8HfWBSviYjFHtMV3Xzq9hGzVtkjucflymBv6x7dE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=l7mig0Ops9VIgRnHRY/3c5hk9QzgO/tHEYuCxtSGfBq458Qe9Gu6uEKIVNS32ALzFLGEcmSvi9qVnnJw1pgJnBRceMWTPMs3qyLnug0OXMkP4FQ4vv/8vmvzQ+B7ZwvBcXn4mh6rorh2yRIpwXjbiMjPC9i9MCCwU5vlJ/GNhFo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MYoTSskt; 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="MYoTSskt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60DECC4CEF0; Tue, 16 Sep 2025 13:00:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758027654; bh=ztf8HfWBSviYjFHtMV3Xzq9hGzVtkjucflymBv6x7dE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=MYoTSsktJTntOTr3omKeWyeAZ//8aX8dR4+FzX1H5iz3BOBCxqdKZ0oqZN6tEtfa8 fgjVsePc+QohLOsAdCQ6K7TDah/HQBjazfBpzrFrYiKRQWiccEVybCia8hYR2vB56o jsBb+HxD90c6DZq55ms8OuhXQwO3ZtWOLk4kqn50= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39823: KVM: x86: use array_index_nospec with indices that come from guest Date: Tue, 16 Sep 2025 15:00:29 +0200 Message-ID: <2025091616-CVE-2025-39823-f9bf@gregkh> X-Mailer: git-send-email 2.51.0 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=3338; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2yecwZQeNKTjsVNyAJOoFtwV62ox6XOSijsFGHggFEc=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkn4xNEZS6x9T3mvXJn1/UHp/gqLtidqDjosKosqvM6z zYr47sqHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRLS8Z5hdvUOVgm/vddabE 3Hmmd/mPty7aIsKwYELHwUknAhy5l3V2bz+vriAR9v/DHQA= 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: KVM: x86: use array_index_nospec with indices that come from guest min and dest_id are guest-controlled indices. Using array_index_nospec() after the bounds checks clamps these values to mitigate speculative execution side-channels. The Linux kernel CVE team has assigned CVE-2025-39823 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit 4180bf1b655a791a0a6ef93a2ffffc762722c782 and fixed in 5.4.298 with commit 72777fc31aa7ab2ce00f44bfa3929c6eabbeaf48 Issue introduced in 4.19 with commit 4180bf1b655a791a0a6ef93a2ffffc762722c782 and fixed in 5.10.242 with commit 31a0ad2f60cb4816e06218b63e695eb72ce74974 Issue introduced in 4.19 with commit 4180bf1b655a791a0a6ef93a2ffffc762722c782 and fixed in 5.15.191 with commit d51e381beed5e2f50f85f49f6c90e023754efa12 Issue introduced in 4.19 with commit 4180bf1b655a791a0a6ef93a2ffffc762722c782 and fixed in 6.1.150 with commit 33e974c2d5a82b2f9d9ba0ad9cbaabc1c8e3985f Issue introduced in 4.19 with commit 4180bf1b655a791a0a6ef93a2ffffc762722c782 and fixed in 6.6.104 with commit f49161646e03d107ce81a99c6ca5da682fe5fb69 Issue introduced in 4.19 with commit 4180bf1b655a791a0a6ef93a2ffffc762722c782 and fixed in 6.12.45 with commit 67a05679621b7f721bdba37a5d18665d3aceb695 Issue introduced in 4.19 with commit 4180bf1b655a791a0a6ef93a2ffffc762722c782 and fixed in 6.16.5 with commit f57a4bd8d6cb5af05b8ac1be9098e249034639fb Issue introduced in 4.19 with commit 4180bf1b655a791a0a6ef93a2ffffc762722c782 and fixed in 6.17-rc4 with commit c87bd4dd43a624109c3cc42d843138378a7f4548 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-39823 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/x86/kvm/lapic.c arch/x86/kvm/x86.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/72777fc31aa7ab2ce00f44bfa3929c6eabbeaf48 https://git.kernel.org/stable/c/31a0ad2f60cb4816e06218b63e695eb72ce74974 https://git.kernel.org/stable/c/d51e381beed5e2f50f85f49f6c90e023754efa12 https://git.kernel.org/stable/c/33e974c2d5a82b2f9d9ba0ad9cbaabc1c8e3985f https://git.kernel.org/stable/c/f49161646e03d107ce81a99c6ca5da682fe5fb69 https://git.kernel.org/stable/c/67a05679621b7f721bdba37a5d18665d3aceb695 https://git.kernel.org/stable/c/f57a4bd8d6cb5af05b8ac1be9098e249034639fb https://git.kernel.org/stable/c/c87bd4dd43a624109c3cc42d843138378a7f4548