Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793187430; b=S7zNh10sEAyraHbyzzz+0rPELmPpWPu64g9GHZnlia7ZYwwgH3/BFw9oGl/t/H0y8BnK nvACUYLGkOXYcKyYaO6pkf0soLeHL2QKDzMemXbYSTXqrvwrebQyfesXzegZEuDdJmGLW UHuCtEKyv1mXH/dFoElDLVoWUBXeGvHJZ/l/dbNGIRhnDEwts+HphDy+y3zOMFy9B45TC aaHtIj6wOTpteNV02xDwrPnlsZXwbDfirc5w8fjCkLTvCUbHx4PcQdGwuq+tLM9sH33mj I7jts/b5MlDv6HM57ZN0WtpQiDry50GFVqU5ZPWF8K6/u7fkiSTa53+kS1HA6ScbJkA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187430; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=j0oZjrHVcac0uEXLBIvW+SkGs3KrjY5oWDidZ4pcbWc=; b=26uE9XnYf6fPb5QO+tzUMKurrLTUnS3xmaPVf1ublXhEZQqWtY3L/u3zquTPfu9eOrqf znSxPPsO4yaPeUNtaTL4GZptLgNV5OCnxYkPeZaHWPLK/xBtn8n4cr0bwupQp4b3Bo/T9 W16x77cbdST14RnVNBLv8omdSuEf8XebXpfrofrHkAhFV83zH2GRoXJz7N8Z0SPYpGVK7 6s482h4HDujiu8EwiWEBn0h8m11eDjBf5d00/yJTQD2hMLY/JAHF5CZSNVCayvFsWAfrW dIOSjA2gVUNRSVXNvLHMC0Y1bKKj05En5GfHmmFE0m797XdG62sJP7f1CPfGHBKgqkg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=XoXghLYq; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D88A606A31C for ; Wed, 28 Oct 2026 11:37:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=XoXghLYq Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DE5B1F01828; Wed, 28 Oct 2026 11:37:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187429; bh=j0oZjrHVcac0uEXLBIvW+SkGs3KrjY5oWDidZ4pcbWc=; h=From:To:Cc:Subject:Date:Reply-To; b=XoXghLYqhSPbMxoiSoDgk+ZXSe7cehVq4ZULtgerxHnbMYUXJx15AXKNHlHV2f2rw y7JnEQEjLoFCcftHQqKqU7I/cf0Zhe72AfxdvdkBV1co2BraULwESVosoWkkLJ+0oc tilFe+ClkeK+l9XndrZcN9gnDWfh0hCX0G7Dxs1Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99120: KVM: x86/mmu: Cope with the SS bit being set in #NPF exit codes Date: Wed, 28 Oct 2026 11:35:07 +0100 Message-ID: <2026102856-CVE-2026-99120-9a3e@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3819; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ORfIx70DO+N5d2fU1/GSTTKFEibQuJ+rpO/12KE6pIA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz18wjOVoP/T92P87ZhxrVPcEMddsC77hry0eof3mU 4ZsCPOhjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI7jsMcyUS9CZde9Rd+zbl eOaiNy+PaM60CGCYK7xWgf+TuFtWi1OI0HEb5T2y0ySfAgA= 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: x86/mmu: Cope with the SS bit being set in #NPF exit codes When running Hyper-V from Windows 11, KVM is seeing the SS bit set in nested page fault error codes produced for shadowed NPT. The AMD manual is unclear about when SS is set, including whether it can be set when SupervisorShadowStackEn (bit 6) is not set in the MISC_CTL field of the VMCB. Nevertheless, the unexpected SS bit causes out of bounds accesses in permission_fault(), seen as either WARNs or UBSAN reports: kernel: UBSAN: array-index-out-of-bounds in arch/x86/kvm/mmu.h:225:27 kernel: index 34 is out of range for type 'u16 [16]' (in this case, the page fault error code is 34*2=0x44, i.e. SS|U; the report shows SS|U|W happening as well). Fix the handling of unknown error codes by dropping SS and (with a WARN) any bits not among those that permission_fault() expects to receive. At the same time, given the uncertainty about when hardware sets SS, follow the processor's behavior when constructing the fault's error code, and preserve the SS bit as passed to FNAME(walk_addr_generic). While the behavior is surprising, there's a possibility that Hyper-V expects it (Hyper-V does not even enable CET unless it finds MBEC/GMET!), so retain the information when reflecting the fault to L1 instead of unconditionally discarding it. Bisection shows that this started happening with commit 687ee95c1b6d ("KVM: nSVM: enable GMET for guests"), even though SHSTK was available to guests since Linux 6.18. However, this is not because bit 1 of MISC_CTL (GMET) somehow enables reporting the SS bit; rather, it's simply that Hyper-V never uses CET unless GMET is also present. The WARN is reproducible even with gmet=0, with some hacking of kvm-unit-tests's cet.c testcase to ensure that the first access to the shadow stack triggers a page fault. The Linux kernel CVE team has assigned CVE-2026-99120 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 8db428fd5229ba509d515af10d7f33d7d4a54bfe and fixed in 6.18.59 with commit 0caeefed99b37f03251a00eb1fdb403a1cf2cb68 Issue introduced in 6.18 with commit 8db428fd5229ba509d515af10d7f33d7d4a54bfe and fixed in 7.2.13 with commit d6e08ec2fff45e0ec69f11010851650d7c6282b9 Issue introduced in 6.18 with commit 8db428fd5229ba509d515af10d7f33d7d4a54bfe and fixed in 7.3 with commit e90ab3669181c6469e3647ef2b30ae408275f496 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-99120 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/x86/kvm/mmu.h arch/x86/kvm/mmu/paging_tmpl.h 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/0caeefed99b37f03251a00eb1fdb403a1cf2cb68 https://git.kernel.org/stable/c/d6e08ec2fff45e0ec69f11010851650d7c6282b9 https://git.kernel.org/stable/c/e90ab3669181c6469e3647ef2b30ae408275f496