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=1793705151; b=eEC9fmmFOf58dMyWuzeHefPlIid4F4Ru+JQPibo//atxSKQOcFUtpJv77/vm92TtDfhc WAi07XZOsbXUe67Hvucjs5nz7JJJtF+2NwW39wMLkWYFQZGmXE1iaiNf5ITnEuImWwOok wI7FiJXKIJPC8V3Xny5KABSS6I0tRHwjmG6RfuOeZ9biGzSHckJcohrTsvfNJb3dUpKOY 6pClx49BFnxrlSulIrK+xj+WnGKN6/keXmDzFzw2mfS5dr9366QlfLffOx78h2TbLqXY9 2UR291bFIfeKpsPTWmYuE1UGxaKfcDIJNt1aL4xZLhneXVp0VCpFzpGBu+zeUG2DArA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793705151; 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=gJxDOyW9gU6F9BoIdLaJGQ/rrIku5FCPvTs2fisDISE=; b=ldZR/NbMS+NJIK6riu1EgCY5yKZyI6HJFB3mIMqRXSdV2mURQ+wJYSKncHnPHrRMbkJr 3I49wAMgxP3YvKBfqm+UWlKpwBcMIUjtc6g0lo6HZvUVo87jBhQBUNL8j239teh3FUc1q uFXI/RenGXmM0Aiu+9ESMCfhY+zoPimlor3k4jpV1cX9Alp9k95ADORk6SuOimgSR/IUp MpPle8nEnQY3QsDRTo+HrGe1s/3hny8jgoi0zu/ax+aJAGAB7brEHXbpi0QTykxP7e1// LJBB+LdKWnyH+ySBBhzp74fJRy+OWWFlrcIjkWVKHHkOfP2a2Th9k6w6OjxY05Ay9Lw== 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=wQnCW0Y+; 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 E067A606A824 for ; Tue, 3 Nov 2026 11:25:50 +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=wQnCW0Y+ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30A7D1F00A1D; Tue, 3 Nov 2026 11:25:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793705150; bh=gJxDOyW9gU6F9BoIdLaJGQ/rrIku5FCPvTs2fisDISE=; h=From:To:Cc:Subject:Date:Reply-To; b=wQnCW0Y+GI0QiEaEBvSAW7Vadkt9ZV/X+jBxYinpDNOLKgvD2XbfkL1jaaR7iLDtT gpyUuPhPN/1TlI99i7B2OnePCPE65wPg6FWM3Oh1L2Qf79z+GpjZrvTHqoQCwmeBuP /j1csDE9ZuDPvl2lwguATFu5muMNz6unX2T0ptgY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99245: KEYS: Fix key_reject_and_link() race with keyring restriction Date: Tue, 3 Nov 2026 12:15:48 +0100 Message-ID: <2026110347-CVE-2026-99245-9815@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=3559; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NUIcFIiRfjwyAV/2mHqNNucUSuewLxUvXGYqgLueOow=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkvDyWfXdzQuvpp/RcNqywW34nLlqhvWcReuon//2o22 aB9K/k6OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiM0IYFiz5Ez7xzhaBLp9L 25NORuj/4a+8r8OwYJanw6z1Pw86JjPxz498rND7PcaHEQA= 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: Fix key_reject_and_link() race with keyring restriction The restrict_link check in key_reject_and_link() is done before taking the keyring semaphore, racing with a concurrent keyring_restrict() that installs the restriction while holding the semaphore in write mode. Move the check to after __key_link_lock(), so it is done under the semaphore, matching the pattern used in __key_create_or_update(). The Linux kernel CVE team has assigned CVE-2026-99245 to this issue. Affected and fixed versions =========================== Issue introduced in 4.7 with commit 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c and fixed in 5.10.273 with commit c7956ec99ad0e173720d95de9fa788bb077809f2 Issue introduced in 4.7 with commit 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c and fixed in 5.15.224 with commit 2c3d907dd15f4e30d4c35b9f7a7a5078de6a1b1f Issue introduced in 4.7 with commit 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c and fixed in 6.1.191 with commit 72f367417a6aee56821d0b0114cfd2b080008b63 Issue introduced in 4.7 with commit 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c and fixed in 6.6.161 with commit 19dfc37c9deefa69dc805d01d35d1f2fd7902e33 Issue introduced in 4.7 with commit 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c and fixed in 6.12.115 with commit 5787887eba0f0979a8c86d03a8e891395d5c24ad Issue introduced in 4.7 with commit 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c and fixed in 6.18.60 with commit 01835d3a3709be508ae5209f806640336c48e395 Issue introduced in 4.7 with commit 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c and fixed in 7.2.14 with commit 6fc0c818b1cac66003e937c8a0d3bfb23fd3f130 Issue introduced in 4.7 with commit 5ac7eace2d00eab5ae0e9fdee63e38aee6001f7c and fixed in 7.3.1 with commit 23a9163cc40b4996ba1e20533b1210a1a0bee416 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-99245 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: security/keys/key.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/c7956ec99ad0e173720d95de9fa788bb077809f2 https://git.kernel.org/stable/c/2c3d907dd15f4e30d4c35b9f7a7a5078de6a1b1f https://git.kernel.org/stable/c/72f367417a6aee56821d0b0114cfd2b080008b63 https://git.kernel.org/stable/c/19dfc37c9deefa69dc805d01d35d1f2fd7902e33 https://git.kernel.org/stable/c/5787887eba0f0979a8c86d03a8e891395d5c24ad https://git.kernel.org/stable/c/01835d3a3709be508ae5209f806640336c48e395 https://git.kernel.org/stable/c/6fc0c818b1cac66003e937c8a0d3bfb23fd3f130 https://git.kernel.org/stable/c/23a9163cc40b4996ba1e20533b1210a1a0bee416 https://git.kernel.org/stable/c/0b157166e612b70f98a332b6c7be7eac6f8e9593