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 B690E4D599 for ; Tue, 19 Nov 2024 01:34:33 +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=1731980073; cv=none; b=irMHL/cQVfyQOGHrwycZM3ah8Nfhp1IFnSQWSdrMlvMIGNYJdh/zvE1eY3U3w6nLlVbsW+2XeFED/k6M9MI2DuQVqRnqkSRF1UR7lJbdW1o+cOIoDHmFq1mQs5cDLWkSmGFraCCCE1vt19ULgVcgAe0w2qG/9zhTWkaEotNKUjQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731980073; c=relaxed/simple; bh=FVbWGlx2bAdHEiET1ihFZjHpxVfvYmCbsFo2ZUNqS4Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pstR+//DEVbB2xrWsNM+zWcrNWIY5MM2XjLZVwxXQjTdPeG35aoqisSJ7AZQhkEooutpO09c0IPVYrrYAedV0J6ZWmfvbZUORtU/Dn/GcxhlRI/giykr0YNd8NjtCjXKrxt/LtcCVcwdLANCvOtsinuoFsUnwBoaCKHiUOHsNU8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OndI3qJ/; 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="OndI3qJ/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00522C4CECC; Tue, 19 Nov 2024 01:34:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1731980073; bh=FVbWGlx2bAdHEiET1ihFZjHpxVfvYmCbsFo2ZUNqS4Q=; h=From:To:Cc:Subject:Date:Reply-to:From; b=OndI3qJ/mcD+8Rqn2XdRaxtAIOzW/DsZemjmvjc5uJXswvpBBKU8jIQcq82JeCUoU xiFp7qrWhPFpGp1MYeWZxrL3b6YbeUsm1VlRDXaSzKFlm2cpOJXcYb+JXDWCufgAvX hBk3i9+gvUt+crTFIdW4evFfKAvnwpXIJgsbwsIo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50294: rxrpc: Fix missing locking causing hanging calls Date: Tue, 19 Nov 2024 02:32:49 +0100 Message-ID: <2024111958-CVE-2024-50294-0ac7@gregkh> X-Mailer: git-send-email 2.47.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2334; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FVbWGlx2bAdHEiET1ihFZjHpxVfvYmCbsFo2ZUNqS4Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDOnWr079a7i+ySHozIS4OXPvPjjA+vzpTuPwhZ9qWJVyV Vjittp964hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJlCswLOhbKKn4y2ixx66G LVvrDz13rXka9p9hNlt10lZ/Wcm7xlPTL/Hx9u5ObPxdDAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: rxrpc: Fix missing locking causing hanging calls If a call gets aborted (e.g. because kafs saw a signal) between it being queued for connection and the I/O thread picking up the call, the abort will be prioritised over the connection and it will be removed from local->new_client_calls by rxrpc_disconnect_client_call() without a lock being held. This may cause other calls on the list to disappear if a race occurs. Fix this by taking the client_call_lock when removing a call from whatever list its ->wait_link happens to be on. The Linux kernel CVE team has assigned CVE-2024-50294 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 9d35d880e0e4 and fixed in 6.6.61 with commit 996a7208dadb Issue introduced in 6.2 with commit 9d35d880e0e4 and fixed in 6.11.8 with commit b1fdb0bb3b65 Issue introduced in 6.2 with commit 9d35d880e0e4 and fixed in 6.12 with commit fc9de52de38f 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-2024-50294 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: include/trace/events/rxrpc.h net/rxrpc/conn_client.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/996a7208dadbf2cdda8d51444d5ee1fdd1ccbc92 https://git.kernel.org/stable/c/b1fdb0bb3b6513f5bd26f92369fd6ac1a2422d8b https://git.kernel.org/stable/c/fc9de52de38f656399d2ce40f7349a6b5f86e787