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 13E163AEF21 for ; Thu, 28 May 2026 09:39:37 +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=1779961178; cv=none; b=YcutrUWi7H6OL8UKWWHnX8TucNsCcWhxi6jq8ftBmL+nsihU9k999SNmVxm264lARHe5UoC45CgD9aJ28mrEY0xh4owqx9hE1USZCNHtP7id3Lj5ZktshyIUJkOcTne5qhspTHqnLrx3f3Db8mgO/etY8zQKqqjFGuoEUVtgy1o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961178; c=relaxed/simple; bh=AUuEhiWrBC6KjV7CkIcG4Zfcxnb3OzaT5eXb7MWS8WE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kF32Xvczr/rXT1y1VMbb+qFNJKgZaKaFB55XEr+vYnH1fmJwJZb3pAVc8M1/AkMaUf/sRr2LOnw8CKWflKKTgx+5HzAGqWsKbU4qU47s7pDNZEyOPcNgptqCMsQ+wGm6yhPJ52MsWEZVaNoBmF49V7izCb0yIPO4aAvBq0XyJeA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fdHc1oiA; 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="fdHc1oiA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5E7B21F00A3A; Thu, 28 May 2026 09:39:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779961177; bh=4zaP1rec1QwKUYzu9yanCtsvfUiyd00BBXVSKDvTe2s=; h=From:To:Cc:Subject:Date:Reply-To; b=fdHc1oiA++Vu/zCLe624PtuaPyrZB2Uc3p8TyG2ZVF8rLX4Px9r3vU+dv6qDCVyoE dafJwQC0q7I7As41i01Yzhblna/54XBDxecK8ZfMQSpTvxX/kS/GtHTh0y/1AbepBW UT3Rva+qPesPpGld5mVHY0ZECzv0OqjEv25Qt9Eo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46147: KVM: arm64: Fix pin leak and publication ordering in __pkvm_init_vcpu() Date: Thu, 28 May 2026 11:36:52 +0200 Message-ID: <2026052821-CVE-2026-46147-9b7f@gregkh> X-Mailer: git-send-email 2.54.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=2899; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HCVCh2WM3uv6WSwaJ9dJ1HdaKXnrNdA5/3Bw0VTWgPY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkSPFNnc6xo3PMwbKLZke9BH5q2fXDeLPKo6GPy4qy5G jnXC/wWd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEOB8zzK/yvHD6cFfh/b3L N4edtvJNlv9U3Mcw3//70YLdTKob5bZdvr3z1OI197xulgIA 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 pin leak and publication ordering in __pkvm_init_vcpu() Two bugs exist in the vCPU initialisation path: 1. If a check fails after hyp_pin_shared_mem() succeeds, the cleanup path jumps to 'unlock' without calling unpin_host_vcpu() or unpin_host_sve_state(), permanently leaking pin references on the host vCPU and SVE state pages. Extract a register_hyp_vcpu() helper that performs the checks and the store. When register_hyp_vcpu() returns an error, call unpin_host_vcpu() and unpin_host_sve_state() inline before falling through to the existing 'unlock' label. 2. register_hyp_vcpu() publishes the new vCPU pointer into 'hyp_vm->vcpus[]' with a bare store, allowing a concurrent caller of pkvm_load_hyp_vcpu() to observe a partially initialised vCPU object. Ensure the store uses smp_store_release() and the load uses smp_load_acquire(). While 'vm_table_lock' currently serialises the store and the load, these barriers ensure the reader sees the fully initialised 'hyp_vcpu' object even if there were a lockless path or if the lock's own ordering guarantees were insufficient for nested object initialization. The Linux kernel CVE team has assigned CVE-2026-46147 to this issue. Affected and fixed versions =========================== Fixed in 6.18.30 with commit 7d3c27b54253cda91dc4d2c1bfc109c490837ab9 Fixed in 7.0.7 with commit 6d69c0ed978f7f0efd053fc98390f25ab77c1aea Fixed in 7.1-rc2 with commit 73b9c1e5da84cd69b1a86e374e450817cd051371 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-46147 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/7d3c27b54253cda91dc4d2c1bfc109c490837ab9 https://git.kernel.org/stable/c/6d69c0ed978f7f0efd053fc98390f25ab77c1aea https://git.kernel.org/stable/c/73b9c1e5da84cd69b1a86e374e450817cd051371