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=1793635487; b=H7hCjkI7m9njz36GKkoh9pleavuFYCBy8mG+rVD8lcznCPx34cPpnICOZtYpv7fSW5dC sn5VxzNrvL0F7F0FlDYUSRQbiVMKmJDxuB5C/YfDGOUMyDvml78+t25+oj8YnrRsq0Xis n7mGj5QB2tKRYVith0IZWjnheexaO3bmgSz7QYTemA2pFDKWSnpAO09pfTu/s5nEIqCLb qpev7fgYd/u5pIChPlkDHyssZobwdkCQl8g7iIU03Mt0i/N0W3K1ruV6Tu5zQT9J1najC /3yRNTj5htJiGl9KIZg7NMmTH27bFwtfFCzhDbsL2KG9b7nBRLoNPQBbDpuN+ks6gIw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793635487; 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=NRF0s4UyoWse4szH4R3lXjFgLIVjXGlVOjmEPO/gs7Q=; b=cwKL6rU/ielPio/QqD7S9EfRmxa5YUKOC2ULzNXRgiW4ByGFNUf8a6w2oWweI25HnP0t sOzgDrTPHbexFmnEHbmU/3ACjRIH3km0xa3gvFzlyCYNx8Qa76aPlBSOneqGtEUpD6jgm 0rNumRPMBfCaX79eizy1SP1B+Lg8LfHJJGsR9AqldarPvv7maoQRdX6/9JWTak1/ZtcZM tFA2scFoPl14EU8foDDmn9uvczd9V1d9j0Nz3ml0yETazOCiTRnNfBU1LR3d4AU5z7E+X Iec23YvaZiEPzuZhnq17Yepmillv9lPQqNFqzGpz50CyHv1PTFywxyG28xs2ztEC0PQ== 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=IMm7RT1w; 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 9C1E26070398 for ; Mon, 2 Nov 2026 16:04:47 +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=IMm7RT1w Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AD1E1F00A17; Mon, 2 Nov 2026 16:04:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793635487; bh=NRF0s4UyoWse4szH4R3lXjFgLIVjXGlVOjmEPO/gs7Q=; h=From:To:Cc:Subject:Date:Reply-To; b=IMm7RT1wxxR8fadoCAT8kt+hpNXFW3vodAUtigavxAf71aIK1q53TtsKpGQzbnqL7 0OzmDJ2mxlifZidQAWhU5faazjpSN97QyNZvpAjkYa5h+BoApYzjiArAuijym5JNP6 L2TEUiLq8wSZpPkSL4ruiU2yWVmPPPVqJlmSUW/0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99225: keys: Check the authorization payload in process keyring searches Date: Mon, 2 Nov 2026 17:04:08 +0100 Message-ID: <2026110204-CVE-2026-99225-0c40@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=5260; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4DcS1solYGk7tpbnOOfQA1Gyn9DQ17UN5RihfRvtB74=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkvtpS43bLyFeJo2cPOa/IwjX3dvPmu+1w3LLmbLvGSe ck7huK3HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRnckMC3q1zt6fsPGe+jK2 CaIOUtHs1wXyjBgWdNfrL3xdWrvk3TLbgzkB1VMjF7efAwA= 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: Check the authorization payload in process keyring searches An authorization payload and its saved credentials must remain valid while search_process_keyrings_rcu() searches the requestor's keyrings. The function validates the authorization key, then separately loads payload.data[0] and unconditionally reads rka->cred. Validation does not prevent request_key_auth_revoke() from clearing the payload. A request-key helper can assume authority and fork a descendant that inherits the authorization key. If the descendant misses in its own keyrings, it falls back to the saved requestor credentials. Successful target instantiation invalidates the authorization key without clearing the payload. After the helper exits, UMH_WAIT_PROC returns to the requester, which calls complete_request_key() and revokes that key. With the descendant paused after validation, the paths can interleave as follows: 1. The descendant enters search_process_keyrings_rcu() under RCU and key_validate() succeeds. 2. The helper instantiates the target, invalidates the authorization key, and exits. 3. The requester resumes from UMH_WAIT_PROC, calls complete_request_key(), and revokes the authorization key. request_key_auth_revoke() sets its payload pointer to NULL. 4. The descendant loads NULL and dereferences rka->cred. This NULL dereference can oops the kernel. RCU delays payload disposal but does not prevent the pointer from being cleared. Load the payload with dereference_key_rcu() and require a non-NULL result before validating the authorization key and searching its saved credentials. A non-NULL payload and its credentials remain alive for the caller's RCU read-side section; a cleared payload skips the fallback search and follows the existing error selection. KASAN report as below: Oops: general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f] RIP: 0010:search_process_keyrings_rcu+0x32b/0x790 The Linux kernel CVE team has assigned CVE-2026-99225 to this issue. Affected and fixed versions =========================== Issue introduced in 5.3 with commit e59428f721ee096d8a020504ea908a6f0d952735 and fixed in 5.10.273 with commit 14fb6fad526b35a7ebd121f1dd313abe652e0aa6 Issue introduced in 5.3 with commit e59428f721ee096d8a020504ea908a6f0d952735 and fixed in 5.15.224 with commit 458cf9715af6aff3ac8d2ec60bd59e9d6236fd0f Issue introduced in 5.3 with commit e59428f721ee096d8a020504ea908a6f0d952735 and fixed in 6.1.191 with commit 7d3d2fffe933e538472ccafe5bbc7109488b9ce3 Issue introduced in 5.3 with commit e59428f721ee096d8a020504ea908a6f0d952735 and fixed in 6.6.161 with commit 26949c2e4c461e9e620e935bc22717f36a40b615 Issue introduced in 5.3 with commit e59428f721ee096d8a020504ea908a6f0d952735 and fixed in 6.12.115 with commit 984a178d54515779a1bee100b92a6cee8777c830 Issue introduced in 5.3 with commit e59428f721ee096d8a020504ea908a6f0d952735 and fixed in 6.18.60 with commit b86db7993051d05810601654e886a1e78e1fa495 Issue introduced in 5.3 with commit e59428f721ee096d8a020504ea908a6f0d952735 and fixed in 7.2.14 with commit b4dfda438fee3c6faa15d9b421c373de6a0e476f Issue introduced in 5.3 with commit e59428f721ee096d8a020504ea908a6f0d952735 and fixed in 7.3.1 with commit 49f4e768540d25d8852ef750313afda6a4774871 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-99225 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/process_keys.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/14fb6fad526b35a7ebd121f1dd313abe652e0aa6 https://git.kernel.org/stable/c/458cf9715af6aff3ac8d2ec60bd59e9d6236fd0f https://git.kernel.org/stable/c/7d3d2fffe933e538472ccafe5bbc7109488b9ce3 https://git.kernel.org/stable/c/26949c2e4c461e9e620e935bc22717f36a40b615 https://git.kernel.org/stable/c/984a178d54515779a1bee100b92a6cee8777c830 https://git.kernel.org/stable/c/b86db7993051d05810601654e886a1e78e1fa495 https://git.kernel.org/stable/c/b4dfda438fee3c6faa15d9b421c373de6a0e476f https://git.kernel.org/stable/c/49f4e768540d25d8852ef750313afda6a4774871 https://git.kernel.org/stable/c/0a0ec45bf577a9b4d4960567f20d3877ef480de9