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 302E52C0F98 for ; Sat, 16 Aug 2025 11:22:46 +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=1755343367; cv=none; b=FN1cbN8dDGB8ylnqBso3w/nv3N4MfIfn6TtmTEL1UluV7hZaM5DXbtF4X0spT4bjT0JTyeVbEBhSvqSoWCEToslEa72XkJ3XHhSPn1MgdP2DZ7Hoj7pB4Rc7huv9LL0FmYehZWu+zbqqBY+Qy+zk0ynRq4Vd79vkKncyIJKRA9w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755343367; c=relaxed/simple; bh=x6NvONTYb9kBF2Sv5knvDPQu5HSDMXu0rMX7gyjiI68=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Uo/OPJmcgUdcnrnP8aXyi9POCuPVdRzASG31M9uZ1aJB4OOGzhmirLb4OIRcA5Y3IHvEwOTsV+8y/cnmABuJnuEkse88OwLAZIzBKqGONin6lsPBeMLq0T+clr33040xKTXXGoiAuP6mtf2uAIV0I08C3WcG24grXB2XsM9Pg18= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=P5H8HgCs; 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="P5H8HgCs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4285DC4CEEF; Sat, 16 Aug 2025 11:22:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755343366; bh=x6NvONTYb9kBF2Sv5knvDPQu5HSDMXu0rMX7gyjiI68=; h=From:To:Cc:Subject:Date:Reply-to:From; b=P5H8HgCspM5Yuxes1PVzjLfn2vEFlkwSA6bp6mCayIQxfvRsRfOtFIPfruEU0KZGf FM6AA538RVIkWuLtGFK6OKIHkQsakyCiKpqhmSm4CHjIX2c6U9zGmbDjygPb5kmmWM IFEtKBiyQTv48n+jSRKrxAxkK4V8JTlQaC1BGeGk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38544: rxrpc: Fix bug due to prealloc collision Date: Sat, 16 Aug 2025 13:22:30 +0200 Message-ID: <2025081627-CVE-2025-38544-a2ab@gregkh> X-Mailer: git-send-email 2.50.1 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=3207; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=q5MAddn6XYJw1/aWItzzZDoI9mu8BU0/GJzrwepW+AY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkLMj8zx0sGS1zdGqStMiv4QMQUSdaUxF9HnzE1BZVx3 eeXqfjaEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNpcmeYKygiNzFfa67DNhut 97w8/2eXsf8RYlhw7aBiS9KK5NCujfkHDs/UfDRxeukhAA== 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 bug due to prealloc collision When userspace is using AF_RXRPC to provide a server, it has to preallocate incoming calls and assign to them call IDs that will be used to thread related recvmsg() and sendmsg() together. The preallocated call IDs will automatically be attached to calls as they come in until the pool is empty. To the kernel, the call IDs are just arbitrary numbers, but userspace can use the call ID to hold a pointer to prepared structs. In any case, the user isn't permitted to create two calls with the same call ID (call IDs become available again when the call ends) and EBADSLT should result from sendmsg() if an attempt is made to preallocate a call with an in-use call ID. However, the cleanup in the error handling will trigger both assertions in rxrpc_cleanup_call() because the call isn't marked complete and isn't marked as having been released. Fix this by setting the call state in rxrpc_service_prealloc_one() and then marking it as being released before calling the cleanup function. The Linux kernel CVE team has assigned CVE-2025-38544 to this issue. Affected and fixed versions =========================== Issue introduced in 4.9 with commit 00e907127e6f86d0f9b122d9b4347a8aa09a8b61 and fixed in 6.6.99 with commit 432c5363cd6fe5a928bbc94524d28b05515684dd Issue introduced in 4.9 with commit 00e907127e6f86d0f9b122d9b4347a8aa09a8b61 and fixed in 6.12.39 with commit 5385ad53793de2ab11e396bdcdaa65bb04b4dad6 Issue introduced in 4.9 with commit 00e907127e6f86d0f9b122d9b4347a8aa09a8b61 and fixed in 6.15.7 with commit d8ffb47a443919277cb093c3db1ec6c0a06880b1 Issue introduced in 4.9 with commit 00e907127e6f86d0f9b122d9b4347a8aa09a8b61 and fixed in 6.16 with commit 69e4186773c6445b258fb45b6e1df18df831ec45 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-2025-38544 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: net/rxrpc/call_accept.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/432c5363cd6fe5a928bbc94524d28b05515684dd https://git.kernel.org/stable/c/5385ad53793de2ab11e396bdcdaa65bb04b4dad6 https://git.kernel.org/stable/c/d8ffb47a443919277cb093c3db1ec6c0a06880b1 https://git.kernel.org/stable/c/69e4186773c6445b258fb45b6e1df18df831ec45