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=1793635484; b=PSeN2/PCYfh075zThHod8zmVhVpiSVpUm7pjykaErImMa42hDHcJIuIwTBH0LOLOOAiD NWGocJi1jJmV2YQFL8vCd+ySyXGC3lQOrja/p5J7mnb7UEB5vIOY8mNimJm/ETbowZvOV RcQ9Fnlu9pIJaSkZpevZlHaz81FNXlqBHC5PgcZxDgat3k8EqjTegjcUL3IJdpjqtxnq4 QMWSPdBS02p/DK65VRJZ50IWOUXvwgNVXaqreUNJbxE6CNZIgJP8MHsswzchxhnx5NEJG j8XKJvSx6pl3DPFHdD+OXrhtfmrrmTPnJVvSzSFTFdFU3Q9F2rxT8VE1NPMmNTlnc+w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793635484; 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=Y20ALBr5s7uUsV5GDQ3UByZpzvBT40bPuPLPOReVdl8=; b=VheCpz/9Hf4t7kzKuT6O6Dcu6JyxNLRoE0l1isLQcAaX2JQJsRbMbgwYyIALd1FWG/OR TSvFLTpnenczG41IyvNvH9jaYEPezMFpqJMOQYSDInwNyaKAoUTQq7T8V/LR02NkRst8v Rkl/HkKy+vYerI4l0daImC9wHykvvd9vmqdbvGv7giGN4MCtgcY9LWJDYojOkmw2IOBr1 dk3mTgQ5tZDUAowSuqm4/oH+FlK70mj5Glq6QjCVifnbub2YOLu77aDw/4o9RMm4QO94S C0WJZTy3FgqN11O1LvpztQDl6OKZ9U438UYPy2XNJDHYwVYo2jJUIyUiZ/1tIiZ7VUw== 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=pXqdU1fV; 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 6DB0B6070398 for ; Mon, 2 Nov 2026 16:04:44 +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=pXqdU1fV Received: by smtp.kernel.org (Postfix) with ESMTPSA id 098131F00A20; Mon, 2 Nov 2026 16:04:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793635484; bh=Y20ALBr5s7uUsV5GDQ3UByZpzvBT40bPuPLPOReVdl8=; h=From:To:Cc:Subject:Date:Reply-To; b=pXqdU1fVUYczAt+VS2Mka5YGGbdHX9RnCR6qjz73WRsOjIuzI0uAbGyGdIxjzUp9U isEXXAY1NvLtKlR2NMCdXRU7RjyOpvXJ1Foe/EFv7akzXSvz9FafTTaqyg3cLvIqoC 6hOoQOJz8vz6DSpbMhC4kRZS5GEDIPnzbboSLoJE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99223: keys: make keyring indexes independent of kernel addresses Date: Mon, 2 Nov 2026 17:04:06 +0100 Message-ID: <2026110203-CVE-2026-99223-471b@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=4642; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AA8kaRIUoT7UpqiEQiQv54Qbb5Wc5JSsNVAGlieYnBg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkvtpQo7dO+GaNzU/5M+d5NBts/nFPJOXLs+S7H0/52g ucK+nvVOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAis5gZ5nDtWH8t29730fXr 7D4cn25wacxaNo1hwYbOJwELWZbGZavXnjN3UV7zaGVaAAA= 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: keys: make keyring indexes independent of kernel addresses KEYCTL_READ returns the serial numbers in a keyring in associative-array traversal order. The first word of the index is a public, deterministic hash of the type pointer, domain pointer and description. An unprivileged user can therefore insert keys with known descriptions, predict their order for each possible KASLR slide, and recover the kernel image address. On an x86-64 build with 16 MiB alignment, 45 user keys suffice to distinguish the candidate slides. Remove the addresses from the whole index, not just its first hash word. Assign each key type and domain a nonzero 64-bit ID and hash those IDs and the description with a once-initialized SipHash key. Use the full IDs in the later index chunks as well. Truncating or hashing the IDs there would lose the guarantee that distinct type/domain/description tuples have a differing index bit. Allocate IDs lazily since private key types need not be registered. Cache them in the index key so tree walks and copies of an existing index do not need to dereference a type descriptor that may have been unregistered. Keep the 32-bit chunk layout and diff_objects() bit offsets consistent, and retain the separate root slot for keyrings used by recursive search. The key comparison, permissions and userspace data format are unchanged; only the address-dependent in-memory ordering is replaced. The Linux kernel CVE team has assigned CVE-2026-99223 to this issue. Affected and fixed versions =========================== Issue introduced in 3.13 with commit b2a4df200d570b2c33a57e1ebfa5896e4bc81b69 and fixed in 5.10.273 with commit 9ebe824d55983c9f063a2c9ef1a08b29812d406f Issue introduced in 3.13 with commit b2a4df200d570b2c33a57e1ebfa5896e4bc81b69 and fixed in 5.15.224 with commit e108b22999edbc6f431466baf6b2016c19b7ed31 Issue introduced in 3.13 with commit b2a4df200d570b2c33a57e1ebfa5896e4bc81b69 and fixed in 6.1.191 with commit 9f084ef0beb68091e96ab96f0e95579aac8a77f9 Issue introduced in 3.13 with commit b2a4df200d570b2c33a57e1ebfa5896e4bc81b69 and fixed in 6.6.161 with commit 8451d4a4c43127c3b9fdf9fc9ff3fea5539a61f9 Issue introduced in 3.13 with commit b2a4df200d570b2c33a57e1ebfa5896e4bc81b69 and fixed in 6.12.115 with commit 13fc051269d670810d9e314061b61c6dd06116a0 Issue introduced in 3.13 with commit b2a4df200d570b2c33a57e1ebfa5896e4bc81b69 and fixed in 6.18.60 with commit 61ac0585d9f4344d3dfb84b5edff1fee7d532897 Issue introduced in 3.13 with commit b2a4df200d570b2c33a57e1ebfa5896e4bc81b69 and fixed in 7.2.14 with commit 84f7c699f8d139f743c7dc11ef41d085690955bb Issue introduced in 3.13 with commit b2a4df200d570b2c33a57e1ebfa5896e4bc81b69 and fixed in 7.3.1 with commit a113eba06bd1183c614d7994864d6e7054140cb9 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-99223 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: include/linux/key-type.h include/linux/key.h security/keys/keyring.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/9ebe824d55983c9f063a2c9ef1a08b29812d406f https://git.kernel.org/stable/c/e108b22999edbc6f431466baf6b2016c19b7ed31 https://git.kernel.org/stable/c/9f084ef0beb68091e96ab96f0e95579aac8a77f9 https://git.kernel.org/stable/c/8451d4a4c43127c3b9fdf9fc9ff3fea5539a61f9 https://git.kernel.org/stable/c/13fc051269d670810d9e314061b61c6dd06116a0 https://git.kernel.org/stable/c/61ac0585d9f4344d3dfb84b5edff1fee7d532897 https://git.kernel.org/stable/c/84f7c699f8d139f743c7dc11ef41d085690955bb https://git.kernel.org/stable/c/a113eba06bd1183c614d7994864d6e7054140cb9 https://git.kernel.org/stable/c/de891c73c1cf41ac8de12c07fa2c84d6a912ad0c