Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9EEB320299B for ; Tue, 30 Dec 2025 12:11:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096696; cv=none; b=cmeNU9FLPM6CYhW/c6ZxRYP/EWbUrNjkK80wNqzyR6ipYo+IHej5ilX/zI8RRuCKaaf+m20b8V3lQF7uFVOJmvkcsjglKJtwQ0G6YOLxRq1oZo9lhmM1Y1rNaASzZIR3qEaGvhh0nqJXz63QzJV+3hXna09LDJlCirXWqU082sk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096696; c=relaxed/simple; bh=r/fn2ldYvZan+9Rf9HmJojChST2dSxHLQE40EZiVhes=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PnH4wP+xWKi/wmfIiK6cl/t2TkOFBlSy5wFq6ybxps44RgW1dup79THzAJHz2lF+BpEaX1vvMHi40rdiVIPh8p/giovnVs903ktE/DAocDNgAzDeTG5EK4XV910XsSXfVGVqvery190xwO8xiDaOrSBe8rNz2ssbcyLvFg51h2A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zTC9s+7g; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="zTC9s+7g" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15F7CC4CEFB; Tue, 30 Dec 2025 12:11:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096696; bh=r/fn2ldYvZan+9Rf9HmJojChST2dSxHLQE40EZiVhes=; h=From:To:Cc:Subject:Date:Reply-To:From; b=zTC9s+7gnR2qEoo7aSJKjFxgqgxV+bdit4B5VsK0TJzw/4JuEmSZm5zBiqCu/azmx i1rinkOslz6RKExA644963C9a568JCvv9UykRYFHWk/SSvmutTduON/B0K9iTQvBlJ 5rQdHdeET508mLnM8ZgaRjggsCstrghF4QM34E1E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54195: rxrpc: Fix timeout of a call that hasn't yet been granted a channel Date: Tue, 30 Dec 2025 13:10:03 +0100 Message-ID: <2025123028-CVE-2023-54195-07d1@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3361; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4HNGYSPCWUe6KJOJit68mtyfk32iotSyFGlj3eYqQlk=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBB35K/NaJu6i9fuU8gYmqkd8XWmbrX1BJ/uNd1HWAS bUw90RqRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk9EmG+XF9W5M1Xuc+/qXw sl5YovdCtp7WCoY5HPPOz2Ke++Oo4uuszpf8D1vlP/y/BAA= 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: rxrpc: Fix timeout of a call that hasn't yet been granted a channel afs_make_call() calls rxrpc_kernel_begin_call() to begin a call (which may get stalled in the background waiting for a connection to become available); it then calls rxrpc_kernel_set_max_life() to set the timeouts - but that starts the call timer so the call timer might then expire before we get a connection assigned - leading to the following oops if the call stalled: BUG: kernel NULL pointer dereference, address: 0000000000000000 ... CPU: 1 PID: 5111 Comm: krxrpcio/0 Not tainted 6.3.0-rc7-build3+ #701 RIP: 0010:rxrpc_alloc_txbuf+0xc0/0x157 ... Call Trace: rxrpc_send_ACK+0x50/0x13b rxrpc_input_call_event+0x16a/0x67d rxrpc_io_thread+0x1b6/0x45f ? _raw_spin_unlock_irqrestore+0x1f/0x35 ? rxrpc_input_packet+0x519/0x519 kthread+0xe7/0xef ? kthread_complete_and_exit+0x1b/0x1b ret_from_fork+0x22/0x30 Fix this by noting the timeouts in struct rxrpc_call when the call is created. The timer will be started when the first packet is transmitted. It shouldn't be possible to trigger this directly from userspace through AF_RXRPC as sendmsg() will return EBUSY if the call is in the waiting-for-conn state if it dropped out of the wait due to a signal. The Linux kernel CVE team has assigned CVE-2023-54195 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 9d35d880e0e4a3ab32d8c12f9e4d76198aadd42d and fixed in 6.2.16 with commit 92128a7170a220b5126d09a1c1954a3a8d46cef3 Issue introduced in 6.2 with commit 9d35d880e0e4a3ab32d8c12f9e4d76198aadd42d and fixed in 6.3.3 with commit 72f4a9f3f447948cf86dffe1c4a4c8a429ab9666 Issue introduced in 6.2 with commit 9d35d880e0e4a3ab32d8c12f9e4d76198aadd42d and fixed in 6.4 with commit db099c625b13a74d462521a46d98a8ce5b53af5d 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-2023-54195 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: fs/afs/afs.h fs/afs/internal.h fs/afs/rxrpc.c include/net/af_rxrpc.h net/rxrpc/af_rxrpc.c net/rxrpc/ar-internal.h net/rxrpc/call_object.c net/rxrpc/sendmsg.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/92128a7170a220b5126d09a1c1954a3a8d46cef3 https://git.kernel.org/stable/c/72f4a9f3f447948cf86dffe1c4a4c8a429ab9666 https://git.kernel.org/stable/c/db099c625b13a74d462521a46d98a8ce5b53af5d