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 D71EA3DFC80 for ; Tue, 6 Oct 2026 10:25:59 +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=1791282361; cv=none; b=rVUxOPxyLiuBkqnu9m4276cPGOrkDvlLkMtMLyMXbTIm9rgIxbYHfgNdx+JZ9LdfkLunyvgvv6csiAGgN5DztiDvMrI0j+YohcAYqZ9PL5OqWqRqCZFj2hzTogVQAG4qsoQN8sR3tmaZW4KlE2HSG/BKq3synWfjDlfkFKE+TaU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282361; c=relaxed/simple; bh=fDypzeEnx24A8ZGsU0CedOrFYMIzno42ZNgoWi3GvOI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=s9a7MiDfK05ebq563niU2kI4M6RYMLopE15n3PTyYbuaXtL1wufseQ6unHDjiJqJ7GQryrMOGX8K3x/qnPnmmqKpJ53Fl92PmROFD1zSuC30IMdNwe+7aE7id54Rn0fA33IZ3F6jOEkmRmcJKdiFSKY24bYf7QtoRa0nR2lA8k4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=b9jrF7Nf; 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="b9jrF7Nf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E64B1F000FF; Tue, 6 Oct 2026 10:25:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791282359; bh=ZiqHn5vXA2TYWydu7vOGXEocIEs9JroCcig9UVEgi3U=; h=From:To:Cc:Subject:Date:Reply-To; b=b9jrF7Nfu6t+IOpa23Ql5SWI/rPLJutrn+YEXglnfyJZrzVSi1TPYHBH/ckOdJvrJ P2bYxLrHh8K52hBcphiKegZZrziDUClebXB4aYz+M0aKW5fDEHhAMojlc5ByPPfivO XIWRajdvcI/vox7ruZQgJ9XkG21+V373+ieQd6cw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98283: KVM: PPC: Book3S HV: fix use-after-free in kvmhv_emulate_tlbie_all_lpid() Date: Tue, 6 Oct 2026 10:46:24 +0200 Message-ID: <2026100605-CVE-2026-98283-c986@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=3701; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=q9csLl2bsRcPY+8W8AwjMlsBZjzyFRdzgoGFfPf++HE=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtgp+meQ58XirZSJT3Qp17fCO81yLQsqd78x4rCkX8 /6DLeOnjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIaD/DgsWBih9zuR2Wqn88 L3NU9l7UzFlvZzDMFde1dY5+s1C0MaRBPDeQJfXHr3NiAA== 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: PPC: Book3S HV: fix use-after-free in kvmhv_emulate_tlbie_all_lpid() kvmhv_emulate_tlbie_all_lpid() iterates the nested-guest IDR and drops mmu_lock before calling kvmhv_emulate_tlbie_lpid(), but does not hold a reference on the kvm_nested_guest pointer obtained from the IDR. A concurrent vCPU issuing a single-LPID tlbie (is=2, ric=2) can race through kvmhv_flush_nested() -> kvmhv_remove_nested() -> idr_remove / --refcnt -> kvmhv_release_nested() -> kfree(gp) in that window, leaving the iterating vCPU with a dangling pointer. The subsequent mutex_lock(&gp->tlb_lock) and accesses to gp->shadow_pgtable, gp->shadow_lpid and gp->l1_host all touch freed memory. The free path is fully L1-controlled. Fix this by incrementing gp->refcnt inside the loop before dropping mmu_lock, mirroring what kvmhv_get_nested() does, and releasing the reference with kvmhv_put_nested() after the per-guest work completes. This is the same get/put discipline already used at every other call site that drops mmu_lock while holding a nested-guest pointer. The Linux kernel CVE team has assigned CVE-2026-98283 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit e3b6b4661527e821ffbe3db83952fdb1e6e47c49 and fixed in 6.1.189 with commit 4d8f7b1f586375df8bce23a0909566ad5e852259 Issue introduced in 4.20 with commit e3b6b4661527e821ffbe3db83952fdb1e6e47c49 and fixed in 6.6.158 with commit e37fba1ba69385cff2d0e60b371ee19e7d1852d1 Issue introduced in 4.20 with commit e3b6b4661527e821ffbe3db83952fdb1e6e47c49 and fixed in 6.12.112 with commit 24b634852413229bb8340d908b115c3365f3a247 Issue introduced in 4.20 with commit e3b6b4661527e821ffbe3db83952fdb1e6e47c49 and fixed in 6.18.54 with commit fbf69b7d0555ee83c871f58750770f74b7179ad1 Issue introduced in 4.20 with commit e3b6b4661527e821ffbe3db83952fdb1e6e47c49 and fixed in 7.2.8 with commit ec2d7a52b3996ae81131617b4afc0af31583c1b4 Issue introduced in 4.20 with commit e3b6b4661527e821ffbe3db83952fdb1e6e47c49 and fixed in 7.3-rc4 with commit 51938dfa8a51a4f85328413fca9b6e21f9d2d088 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-98283 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/powerpc/kvm/book3s_hv_nested.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/4d8f7b1f586375df8bce23a0909566ad5e852259 https://git.kernel.org/stable/c/e37fba1ba69385cff2d0e60b371ee19e7d1852d1 https://git.kernel.org/stable/c/24b634852413229bb8340d908b115c3365f3a247 https://git.kernel.org/stable/c/fbf69b7d0555ee83c871f58750770f74b7179ad1 https://git.kernel.org/stable/c/ec2d7a52b3996ae81131617b4afc0af31583c1b4 https://git.kernel.org/stable/c/51938dfa8a51a4f85328413fca9b6e21f9d2d088