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=1793635486; b=dyv+7/YTyUMtuIUBOs1aNa8x6BSP3KmDxRDk1VRZYtyyBVbock6P/N0AM7ixe3tkT7zV 7XvmurlQNI6L54jCvPjxvUHBP/TMicGISJHofiUNrtUpSjTiwceqCz1mG540zvlmSOAM2 Hxa2rLhRNLYztwRf+XRpV8c8DYFe1CLXvlw16FssSuCHOD2vpIn3WFT6JZRoqzDZs/EGN 1lKe3863maylhbDxLV+aYq6vex96c3eY/1TearXPP4zUvJA/1KaP+DiLektzR604jSNAV Zeo07kIF848ATaf4tQTVYRcb9tVHXQ9UeZv5S0ghOQSYBOByDdkxAy1bvl0BBdwNHXg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793635486; 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=vF+jysNUOppMv1wYyhvjtrXXFMDwNQQPyI6lKz4R/Dw=; b=kZUKYxYclVPqznOF9YLjA6Ja3vWS2Fnex4KaOb7BG2lE/w7TbAOFactXKhGZLvSIF35S zyTMSuyZGvS+mLiF9Wq5oAw+Ec4isJgRjZazpywur08yM9/Uo9Zz00SMXrdZAnk4+zpSa lUsRvvla74SGAMaOZ+8w+QwP2J/mUaO1H28mzn8haIUJPTJjGQv9yWAEzTv7SsVrm0iz2 J8fA7DhxPNvW1DyMH4PHT6yWE2L8szR9NlfkRO9Tr7kVwF/kOQqsszh1+MUqIRzjcfDp2 4E3yK/9Xn1vQ2sZkyN+lXN2cXUXRa27MIK1oFp2rYDJREMNsvW6y5s7c6jEakzKCNTw== 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=EO+B5hZB; 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 0C6496070398 for ; Mon, 2 Nov 2026 16:04:46 +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=EO+B5hZB Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A3F41F00A17; Mon, 2 Nov 2026 16:04:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793635485; bh=vF+jysNUOppMv1wYyhvjtrXXFMDwNQQPyI6lKz4R/Dw=; h=From:To:Cc:Subject:Date:Reply-To; b=EO+B5hZBiYxKTQeX+/u3jOOsTo37P/a4l5YHAs0JKav3ZhYYCMEAsuP1RRgECq57o jA4P9Pj/qmOcQvkpxA0FSUkesQor6pxf3KdwVteHa8OE2U/0gJ8nN9dvgyD9Hi3Nhs 4iWU8oTlm7g6tyRaNH8K+K8T8kfN/dtGwxBYDZEA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99224: keys: Protect the type name while describing a key Date: Mon, 2 Nov 2026 17:04:07 +0100 Message-ID: <2026110204-CVE-2026-99224-eb85@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=5132; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=O0xSFzOMd5g7Yd+lx+chDGGkti7iU2QNondHkIW32lQ=; b=kA0DAAIRMUfUDdst+ykByyZiAGrotHTIuhuWBN/Ey8E6PwzBioJFxW8ahhnGqU7MlgLe77S8M 4hdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmrotHQACgkQMUfUDdst+ynlUACffSSC m3ilQPxpJd8msMeqYXtQIPQAnjId69GGjhDSfrOH3fK/im5IvhKj 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: Protect the type name while describing a key keyctl_describe_key() must keep the key type's name alive until kasprintf() has consumed it. The retained key reference keeps the key and its description alive, but does not pin the module providing its type. The name is passed to kasprintf() without holding key->sem. kvasprintf() uses the saved name pointer in two formatting passes, with a GFP_KERNEL allocation between them. With AF_RXRPC=m, a task that passes View permission before type retirement can overlap a privileged module unload in this order: 1. KEYCTL_DESCRIBE looks up the key, saves key->type->name in the kasprintf() arguments and completes the first formatting pass. 2. While the formatter is delayed before its second pass, af_rxrpc_exit() calls unregister_key_type(), which removes the type from the registry and waits for key_gc_keytype(). 3. The collector takes key->sem for writing, retypes the retained key to key_type_dead and completes retirement. Unregistration and module exit return, allowing free_module() to release the type and name. 4. The formatter resumes its second pass and reads the saved name from released module storage, which can fault in string(). Hold key->sem for reading across kasprintf(). The collector then cannot retype the key or complete retirement until both formatting passes have finished. If retirement wins the lock first, formatting uses the core key_type_dead name instead. Release the semaphore immediately after kasprintf(), including on allocation failure, before copying to userspace. Oops report as below: BUG: unable to handle page fault for address: fffffbfff8054794 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page RIP: 0010:string+0x23f/0x470 Call Trace: vsnprintf+0x330/0x1110 The Linux kernel CVE team has assigned CVE-2026-99224 to this issue. Severity ======== CVSS v3.1: 7 HIGH Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H Affected and fixed versions =========================== Issue introduced in 3.18 with commit aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7 and fixed in 5.10.273 with commit 19c4de819e52b7f606468fbfe4fcef4e812e2777 Issue introduced in 3.18 with commit aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7 and fixed in 5.15.224 with commit a49e6c9a1a5b3457c946a8efb616ce13b4ca8194 Issue introduced in 3.18 with commit aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7 and fixed in 6.1.191 with commit 916667df7695366f23cfaf365b5840b228cc4b2e Issue introduced in 3.18 with commit aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7 and fixed in 6.6.161 with commit dddd3a1ab7d12ee163477918ff6eb943361db4fe Issue introduced in 3.18 with commit aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7 and fixed in 6.12.115 with commit 3c3cfd9e262afc9558c38f8cec57f09d10988546 Issue introduced in 3.18 with commit aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7 and fixed in 6.18.60 with commit 6b613747f7ea309ada5b8d05b55398c338f7a968 Issue introduced in 3.18 with commit aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7 and fixed in 7.2.14 with commit dea367df18e3a4faac393e3a4e818ee03af89b19 Issue introduced in 3.18 with commit aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7 and fixed in 7.3.1 with commit 0461bc8f91116aae4a020e15f4e1c1fd535ab35e 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-99224 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/keyctl.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/19c4de819e52b7f606468fbfe4fcef4e812e2777 https://git.kernel.org/stable/c/a49e6c9a1a5b3457c946a8efb616ce13b4ca8194 https://git.kernel.org/stable/c/916667df7695366f23cfaf365b5840b228cc4b2e https://git.kernel.org/stable/c/dddd3a1ab7d12ee163477918ff6eb943361db4fe https://git.kernel.org/stable/c/3c3cfd9e262afc9558c38f8cec57f09d10988546 https://git.kernel.org/stable/c/6b613747f7ea309ada5b8d05b55398c338f7a968 https://git.kernel.org/stable/c/dea367df18e3a4faac393e3a4e818ee03af89b19 https://git.kernel.org/stable/c/0461bc8f91116aae4a020e15f4e1c1fd535ab35e https://git.kernel.org/stable/c/fced7238b7e80cf8aa688d5af976e4aa6e33c329