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 6E38B4FECD7 for ; Wed, 16 Sep 2026 10:39:05 +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=1789555160; cv=none; b=B7hw6c8r9U84d5/M32MhJGX/aU5sg1o5X6DeJLoC7nHF6Wmjat/1ZTOxZg/PA5AAU+r7TauYY6LAd920lwsthIJiYuuldMKDhrhFtyapx6VbqEze+3LYdw1x/RAKNYJdXJOw+SfrFuZ4GdIM4Udtx1RRrVH15XHtGti0+QZYcyM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555160; c=relaxed/simple; bh=bhrcXYYrlATOxtLqXAKWI5Op8YKVOJk0HZMf36WRj8g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kSeRh5LBAJ6KgFnjCfqd/deIQAI8IYVwsedFRnyw/+BR6/S5NkQO2Qoe6lr2pKAd50EnnE7QkmL3z3xQhFfGHBnJYumNlU9ncnYJE6uR6FM3kE127/IUU42/NyTuY2KgP0c8Oud1UIMWKzub4MLlxf8h15XaN6vRkkQQmJcArqI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bapvm173; 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="bapvm173" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DF761F0089E; Wed, 16 Sep 2026 10:38:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789555138; bh=2M7ueUafgisjk07wRX9nOoLFPN7ZMm3vxf9NZItGd6U=; h=From:To:Cc:Subject:Date:Reply-To; b=bapvm173CwaWw50/Huf2AGF4Y3ZwKhto1nN2Pz+ZMAg68BUdryMPNKTH/f0s3PONb yxnjZ9wSCB+sANSYM1xWWjzRSm1/B1mojGiPAnBB8k0dA0KkIpT45dZSHC9aYLojP0 6vmmubbjy/yqoE+9bad5kWrNVB1Ppavs5ZVc+f9Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89917: KVM: arm64: Handle VNCR TLB invalidation race with vcpu_put() VNCR unmapping Date: Wed, 16 Sep 2026 11:30:47 +0100 Message-ID: <2026091642-CVE-2026-89917-9e19@gregkh> X-Mailer: git-send-email 2.55.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=2976; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=s8LRLoBjR+YiH5HSvAad4CCXlnYeVxArrTPg7Kz7E7o=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8qed/1wqplJ2ZUVA2qKDDdMzNLiuvWVa+Yd1h9CU/ Cmm7y81dsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEZmYzLNh716HjXPI+u8gu 72ea9zZs2WbX+45hwRE/l2WXcq/IzIpZVOv6cILeybnO5wE= 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: Handle VNCR TLB invalidation race with vcpu_put() VNCR unmapping While VNCR TLB invalidation always occurs under the MMU lock, vcpu_put() doesn't, while it unmaps the VNCR page. The problem is that the invalidation evaluates vncr_tlb::cpu to decide whether an unmapping needs to take place (cpu != -1) before performing it. On the other hand, this_cpu_reset_vncr_fixmap() unconditionally unmaps if L1_VNCR_MAPPED is set. These two obviously can race, with a TOCTOU pattern on the TLBI path, and a BUG_ON() on the vcpu_put() path. And the two can end-up calling vncr_fixmap(-1), with extra lethal effects. Move the reset of vncr_tlb::cpu to -1 to a common function, and make this update atomic so that only a single thread can reset the field and perform the corresponding unmap. The vcpu_put() still need to unconditionally unmap the current VNCR to close another ugly race. Finally, the assignment of vncr_tlb::cpu is moved to be kept in sync with the actual mapping, similar to L1_VNCR_MAPPED being set. The Linux kernel CVE team has assigned CVE-2026-89917 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 7270cc9157f474dfc46750a34c9d7defc686b2eb and fixed in 6.18.52 with commit 5cbd8761d001c11ada73b1753d772c4745a70e72 Issue introduced in 6.16 with commit 7270cc9157f474dfc46750a34c9d7defc686b2eb and fixed in 7.2.5 with commit 9065c1261f8a05c6a7a2d90048c7c0665ab2896d Issue introduced in 6.16 with commit 7270cc9157f474dfc46750a34c9d7defc686b2eb and fixed in 7.3-rc1 with commit 38640bc32be3fcf9526d477155bc19d3f146231f 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-89917 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/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/5cbd8761d001c11ada73b1753d772c4745a70e72 https://git.kernel.org/stable/c/9065c1261f8a05c6a7a2d90048c7c0665ab2896d https://git.kernel.org/stable/c/38640bc32be3fcf9526d477155bc19d3f146231f