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=1793635480; b=LxOJa2QbZwqYu50c/KVcMCVKwKerYG1cPWvweHUBf5pnQYty/T/EyhAciadHJTCauU6l +R9zxlebQfhjFJTvoJVoFAi6Oe9Kts/1z7/BScyl8qkBubgqxp4e8//BS8M00SSwyj9Hb zFvi5Y5jE+1UGxYyTHxx1zdm/DLt87hBX0trf4Ee7v9b5U0CiIeaYcZm4aGbZ3Osdk7cv 9vpnZCfucKmSHqHFF98RqrW4KN4SiHHp5VwaRTWrauYErM9j01IX8/ZQWfYLKSocoVxQb a2xvgDfu4l7C/zugdN/K2sDkNUS381pmCFa/HoSrZyI4TePj1F1C8wRRf2ECMq375Sw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793635480; 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=8QL0lVd9a3yQv3SoA5Ho60hSL4Y6d74cgo5opuJ+mC4=; b=HvnLmTgQuFNcAbiKtF8mSsOiDp0bWV37Ey6yJM/tE0je9AaCfbCj/kjrvIS6C0F4MqoH ePLTfXITRKN/XCuAyEvOKmP8h5SyPutiqk45J+Eea9Q72F0KOk35ptwZIdyWcagWwfGvH FWyxB3uhW/dHMDMbrqMZkomCpklEDlq1XakvppBICWFJX+CIOMoWwFRdxNbWKLF0Vytuk P/Gqgq1zpH3L95dbUrPQJatken7g9L8/aqmDfjQDkxjb8K+Nq3ZHte28GlFdL+Fwtp6Un UirAmHwgfQ36lxN8XzJwPJRWReoRUlVa37BN4KM8lFt4AWg+xMNboCs41SRaC+ECCcQ== 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="NWYP/ag7"; 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 A242E6070395 for ; Mon, 2 Nov 2026 16:04:39 +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=NWYP/ag7 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 405F71F00A16; Mon, 2 Nov 2026 16:04:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793635479; bh=8QL0lVd9a3yQv3SoA5Ho60hSL4Y6d74cgo5opuJ+mC4=; h=From:To:Cc:Subject:Date:Reply-To; b=NWYP/ag7mod8Pmw/SCHdJKinKVOTtRbQVMPV3XyIGOKSbH2UPm+7GjJOiBa1v55Ng s63gEXO3+co4DCycckRgvmhPZwU1RPkF0O9y3Tj07+ONGARwtxMuv6yLASJWtJE0jV mfuhAYyTUpHYz4BtCwoTZCBH7inK+GX83TDnUp3I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99220: asymmetric_keys: reject trust keys without IDs Date: Mon, 2 Nov 2026 17:04:03 +0100 Message-ID: <2026110202-CVE-2026-99220-53ef@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=3951; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=C1+cwm77y2sAdAxkauISN7AgZ/u2YRxNi5oeaXEnFZY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkvthT92z6/IkHIwoZ/08d8nY+iygs96tdsaPkU6JUuz Slftk29I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbSfYphnpZ7+Jq/bSKmT8wu BbFITLkv5r1Hi2HBiVwDDVWXx8s7s2d91L1sclzfwvQXAA== 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: asymmetric_keys: reject trust keys without IDs The PKCS#8 parser deliberately leaves the asym_key_ids payload slot empty. key_or_keyring_common() unconditionally dereferences that slot when a PKCS#8 key is supplied to a key_or_keyring restriction. Both the plain and :chain forms reach this branch, allowing an unprivileged caller to trigger a NULL pointer dereference through KEYCTL_RESTRICT_KEYRING followed by add_key(). Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000 KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] RIP: 0010:key_or_keyring_common (crypto/asymmetric_keys/restrict.c:205 crypto/asymmetric_keys/restrict.c:279) Call Trace: __key_create_or_update (security/keys/key.c:884) key_create_or_update (security/keys/key.c:1021) __do_sys_add_key (security/keys/keyctl.c:134) do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) Kernel panic - not syncing: Fatal exception Reject an asymmetric restriction key without key IDs. A PKCS#8 private key cannot identify the signer of a candidate certificate and is not a valid trust anchor. The Linux kernel CVE team has assigned CVE-2026-99220 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit 3c58b2362ba828ee2970c66c6a6fd7b04fde4413 and fixed in 6.1.191 with commit 889a2293a95f6c2880bf73b67f9b0af23251a128 Issue introduced in 4.20 with commit 3c58b2362ba828ee2970c66c6a6fd7b04fde4413 and fixed in 6.6.161 with commit 7f0728ba89624e25df2bb80ff59bbfb545060935 Issue introduced in 4.20 with commit 3c58b2362ba828ee2970c66c6a6fd7b04fde4413 and fixed in 6.12.115 with commit 2a40bdd4409567de4c2a141ac66439dc238af752 Issue introduced in 4.20 with commit 3c58b2362ba828ee2970c66c6a6fd7b04fde4413 and fixed in 6.18.60 with commit 1aa0c7aa4c2554a5b6d74ae1924508ca4718234b Issue introduced in 4.20 with commit 3c58b2362ba828ee2970c66c6a6fd7b04fde4413 and fixed in 7.2.14 with commit 33a078f04e264eb71aa9f209cb334e4010123818 Issue introduced in 4.20 with commit 3c58b2362ba828ee2970c66c6a6fd7b04fde4413 and fixed in 7.3.1 with commit 57e54b6939c6539d90a81c7e57531901d5991651 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-99220 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: crypto/asymmetric_keys/restrict.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/889a2293a95f6c2880bf73b67f9b0af23251a128 https://git.kernel.org/stable/c/7f0728ba89624e25df2bb80ff59bbfb545060935 https://git.kernel.org/stable/c/2a40bdd4409567de4c2a141ac66439dc238af752 https://git.kernel.org/stable/c/1aa0c7aa4c2554a5b6d74ae1924508ca4718234b https://git.kernel.org/stable/c/33a078f04e264eb71aa9f209cb334e4010123818 https://git.kernel.org/stable/c/57e54b6939c6539d90a81c7e57531901d5991651 https://git.kernel.org/stable/c/9695df3b1db4ac4534274d38ee16e3b9b0bf910e