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 F2A1539F191 for ; Sun, 18 Oct 2026 15:36:27 +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=1792337790; cv=none; b=dy7taIClrjzvwc6zoNCe/CIVISoNOQLMWv18zDtQwHqMtgIfuaDhKoDqlA9J1B0v1Eu8rXcnigCRbWPSHt0A1yjbYRHGB2rKMw9lJNZt0gGtBAW8f1R3ufXM5H3jslZYHzEM0Bd0WuYU+ThBbtgprLsWlH3/xfyT97jOAoEw7Xw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337790; c=relaxed/simple; bh=/49XGryD2PUpCac4U2xfuQhN2rlK5oRD1jiA05j3tXY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=D0vdb6oy7DskKKmelhlHO03GMAk74lVQmvqSJTQk3A01RjOGWIt9dEahuuPOLra3YGmWlOamBAsknm8NU2WOPDJVgVTkAdFmXt382ZBqFifd+/5Jz5Z77qZmkuUO2cWnzKh0Y5xMPnVlvIZMU1n/sDmzMFJOSw5v/9ctJuCA6/k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MHum6fow; 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="MHum6fow" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 689481F000C4; Sun, 18 Oct 2026 15:36:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792337787; bh=GPLADKmM8LcPEO8nQTGofPhYsF+/PxhYzb7/amkIP5g=; h=From:To:Cc:Subject:Date:Reply-To; b=MHum6fowqf/k9B8TXLzy05fw3O3Zc1g9K29p3JgHKCeNmW436GXayFdHD47mUyGqx AJaE71sdrRDvqxTiCH4Uq/tqPDajsG87Vr3PHI/3cgAl0tEXpdv7wX1G+2tiQuiNHA f7BltifU8475IqIToAn309EfJBkGeGpky+qjXiE4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98638: KVM: arm64: Validate the SVE vector length in pkvm_vcpu_init_sve() Date: Sun, 18 Oct 2026 17:18:22 +0200 Message-ID: <2026101845-CVE-2026-98638-115e@gregkh> X-Mailer: git-send-email 2.56.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=2436; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=x+L51CMnuPYf+xVv5uqThiBKMUdpE8wPG1h93PPwvL4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHi1c0dG6vOh539UT1iWO53Z7/VN9ePbJ7qUPX/WeO acY/GK9ZEcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMZKsnwzzled+ELn4+t6pq 32sm4+nZhUJneB8wzE/INuiyd8uYsOJ+ywyXBT0Ts8xvsgAA 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: arm64: Validate the SVE vector length in pkvm_vcpu_init_sve() pkvm_vcpu_init_sve() clamps only the upper bound of the host-provided sve_max_vl, so an invalid vector length reaches sve_state_size_from_vl() and the WARN_ON() there, which is fatal at EL2. The existing !sve_state_size test rejects such a length, but only after the macro has run. Check sve_vl_valid() before deriving the state size. A valid length cannot yield a zero size, so the !sve_state_size test goes with it. The Linux kernel CVE team has assigned CVE-2026-98638 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 5db1bef933427aa467ad89c7b695a84a6b4afe16 and fixed in 6.18.55 with commit faf66e55e87498ab4bf88cdf9a629e61b3f2d3bc Issue introduced in 6.16 with commit 5db1bef933427aa467ad89c7b695a84a6b4afe16 and fixed in 7.2.9 with commit bae3e4493046de4fefa15f809d9b8dc114e84a3d Issue introduced in 6.16 with commit 5db1bef933427aa467ad89c7b695a84a6b4afe16 and fixed in 7.3-rc5 with commit 2a2eb10795a1e495aebc7f829ccecb72c05b4fd9 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-98638 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/arm64/kvm/hyp/nvhe/pkvm.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/faf66e55e87498ab4bf88cdf9a629e61b3f2d3bc https://git.kernel.org/stable/c/bae3e4493046de4fefa15f809d9b8dc114e84a3d https://git.kernel.org/stable/c/2a2eb10795a1e495aebc7f829ccecb72c05b4fd9