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 A3EF2224B1B for ; Thu, 29 May 2025 13:16:18 +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=1748524578; cv=none; b=JjG1QSNaQg5IWIQwnODoBrQSG+YaZAtSYnAuYJylrvpA8a/kgL5llrWUPXCUljQJ2p/DIqkcnUrj+BNQmNyH9abM+fERzWo9Rq2ZhlgamW+Rtp0Iahn84ZT587uDDzXW+fsx55M60JX9JLOckj1czTjANRevIDTPGgLsuwlWrsY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748524578; c=relaxed/simple; bh=Z746VxaTfAjAkJGX8FJaqOg+8JFIIuPy3UGZr3ZCppg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lsLOFmC+pxB4egKf+rsw8dWeFoQ+f0WpSOgvxdGV8Z6/jtJ2qTT/lNLIoO1/uPW6XXHKuUq8CQc9IkbznS4Dbrn+29s+yWqZQDpTtTV94rpnNCUJfDzxzLjBteuj+vbPAlri0lcFzQaXpQiQ8VkYFtXsK40ChALaEJF20dnvcz4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DvApBYdg; 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="DvApBYdg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F306CC4CEEB; Thu, 29 May 2025 13:16:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748524578; bh=Z746VxaTfAjAkJGX8FJaqOg+8JFIIuPy3UGZr3ZCppg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DvApBYdgc241bR68Oh5djUsp6Y6lkmv7lvliyOKqkV1OAVAvPuQa764UijUZAhDuM h1pRw/DCc/7V9zU4k7BEdf1fBw3cv38JkmX+/CHrFhCEk+PWRtzVIav3/+O+MRVK6v 9yWn05dBjPLMwhW32H47eTwIjc/gRJimGUQrV5vM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37996: KVM: arm64: Fix uninitialized memcache pointer in user_mem_abort() Date: Thu, 29 May 2025 15:16:03 +0200 Message-ID: <2025052902-CVE-2025-37996-0018@gregkh> X-Mailer: git-send-email 2.49.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=2185; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Pu5ykLQmn1xLHp8ibby3XF6x32JS14AYEM++utksu7o=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkWcUKH3mtU281KWs51/Z67qUfXSrPKOI0nmx6EcAZ2f ddfF/+0I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZidpdhflrGyQCPmRxPxV5X zG0N5L5zYapnMcOCyTJWZnNPax/lKHKSUKrbEPvue9INAA== 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: Fix uninitialized memcache pointer in user_mem_abort() Commit fce886a60207 ("KVM: arm64: Plumb the pKVM MMU in KVM") made the initialization of the local memcache variable in user_mem_abort() conditional, leaving a codepath where it is used uninitialized via kvm_pgtable_stage2_map(). This can fail on any path that requires a stage-2 allocation without transition via a permission fault or dirty logging. Fix this by making sure that memcache is always valid. The Linux kernel CVE team has assigned CVE-2025-37996 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit fce886a6020734d6253c2c5a3bc285e385cc5496 and fixed in 6.14.7 with commit a26d50f8a4a5049e956984797b5d0dedea4bbb18 Issue introduced in 6.14 with commit fce886a6020734d6253c2c5a3bc285e385cc5496 and fixed in 6.15 with commit 157dbc4a321f5bb6f8b6c724d12ba720a90f1a7c 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-37996 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/mmu.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/a26d50f8a4a5049e956984797b5d0dedea4bbb18 https://git.kernel.org/stable/c/157dbc4a321f5bb6f8b6c724d12ba720a90f1a7c