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 5ED072C17B3 for ; Sat, 16 Aug 2025 11:34:51 +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=1755344092; cv=none; b=fCKaFYVF3EQG2wDkcEcBAFBXdbtHpJflQ8pKT9L/EOn+gYd8CdWni3drJo5Uzakit2CzHshX+atrz5+6pm6EzCYsJYX51zoaOPS8zcYZk4KWYXyJ789BFi3fqg3doi7Yrn8mjOhOQk1LQ7oTjJeJqY6RK7TI0cwpN30ggHPsXu0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755344092; c=relaxed/simple; bh=9elz/lJZOuWgigBAFSgAUZxQnAwPtyQmZ8xPqtX3FHY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lsXHwG7ZNtwIlgCMjqmsS+RszlNYZXk5zBEuyMm76DmBLkVD75/64UAPl4qkgxmiiWi7wrNKEftol1o6WJOp3Yk8gM/dnwrP7a45t5R2qqAhh8ykFd79578+Pc0elwZhEYR37zkBE55gWMfTPFDlkiqav7YlevcXqo3Khth5X2I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Ss8JhF2E; 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="Ss8JhF2E" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40AC8C4CEEF; Sat, 16 Aug 2025 11:34:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755344091; bh=9elz/lJZOuWgigBAFSgAUZxQnAwPtyQmZ8xPqtX3FHY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Ss8JhF2EJ4F/bN0q1v7PquGaSM1V+S5aFK6eelCR54c+iR+rEMVJjo+qj64bZ8+1c KBiKNS+Lfqcx7EAbr1TDyTosIUXtjQxoyuyMYfUVkjNuHD03lePoc9z9rIkqOFldHS DdjmDwPpthQTMGMLs2n1xzq0LL9v8Rx994qVNvDM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38552: mptcp: plug races between subflow fail and subflow creation Date: Sat, 16 Aug 2025 13:34:29 +0200 Message-ID: <2025081629-CVE-2025-38552-f7a9@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=2823; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=L5TWeFBwNFg/yHojK2XS6IDV9y811V89/jQlmsxWf1o=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkLco7ODVu1N7dJT8R27WHv8mWcQZIPjYM133ss+LEta blfzD3hjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI+X6GBdeK3kxor7Wu+jyf eYtX96Vw0c3iagzzNH9VZ02ZpyLz8FGc3IfjvApOz94oAAA= 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: mptcp: plug races between subflow fail and subflow creation We have races similar to the one addressed by the previous patch between subflow failing and additional subflow creation. They are just harder to trigger. The solution is similar. Use a separate flag to track the condition 'socket state prevent any additional subflow creation' protected by the fallback lock. The socket fallback makes such flag true, and also receiving or sending an MP_FAIL option. The field 'allow_infinite_fallback' is now always touched under the relevant lock, we can drop the ONCE annotation on write. The Linux kernel CVE team has assigned CVE-2025-38552 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 478d770008b03ed9d74bdc8add2315b7fd124ecc and fixed in 6.6.101 with commit 7c96d519ee15a130842a6513530b4d20acd2bfcd Issue introduced in 5.15 with commit 478d770008b03ed9d74bdc8add2315b7fd124ecc and fixed in 6.12.40 with commit f81b6fbe13c7fc413b5158cdffc6a59391a2a8db Issue introduced in 5.15 with commit 478d770008b03ed9d74bdc8add2315b7fd124ecc and fixed in 6.15.8 with commit 659da22dee5ff316ba63bdaeeac7b58b5442f6c2 Issue introduced in 5.15 with commit 478d770008b03ed9d74bdc8add2315b7fd124ecc and fixed in 6.16 with commit def5b7b2643ebba696fc60ddf675dca13f073486 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-38552 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/mptcp/pm.c net/mptcp/protocol.c net/mptcp/protocol.h net/mptcp/subflow.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/7c96d519ee15a130842a6513530b4d20acd2bfcd https://git.kernel.org/stable/c/f81b6fbe13c7fc413b5158cdffc6a59391a2a8db https://git.kernel.org/stable/c/659da22dee5ff316ba63bdaeeac7b58b5442f6c2 https://git.kernel.org/stable/c/def5b7b2643ebba696fc60ddf675dca13f073486