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 57222AD5E for ; Mon, 2 Dec 2024 13:53:28 +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=1733147609; cv=none; b=jmB3JoaNqhN3Du7MmYZkPra3OkUwrGzFwWk0enMBDrg4xz10HeX4+zj5iElTpGBOtaL2/1C5UeVNSCSlMkanzHn98RU47I1D5Qqv7WozzMdexB2DAVnKsRnEvlojMtSAAWSo7mUPQH2YbjcWETL+TcFsg2cGRFtAbspkzJNzpLM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733147609; c=relaxed/simple; bh=j2JNgjKKjAcqsiC/p5UGMdCgU2qEfE+W++N3eRKm/Co=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uOErkq/zqWe9MmgMo2aNK8/QAuJCIPR/MBjWziHFl6ymdZh0E4z6PMkHgxH3PbWu7bB5xNErP52ImDFcXGK9j8Cj3NIe1smfMMDcPRpAjwZi0DLk6ovtG8kafYHJJivDYVyWswEHFYJgsbiKb8XOpNiPwFDg1w8UPVQPDgzRg14= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bQ3L5noZ; 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="bQ3L5noZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 582BFC4CED1; Mon, 2 Dec 2024 13:53:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1733147608; bh=j2JNgjKKjAcqsiC/p5UGMdCgU2qEfE+W++N3eRKm/Co=; h=From:To:Cc:Subject:Date:Reply-to:From; b=bQ3L5noZ1+cryIcg0qtxWcCdQr/OlebvLYfAWOJSfTMrcn1evrg0nXp/z8CbjHjGt N4YBnnGX+ElRvXr2N4+dljryj7if28zHN2GPQzGaYT9Q4xliMJ5Yjla84gmuTjhjuc w3erFSk/O56oDav1hmySjw7gRsp/hLVpQmlxfUsg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53122: mptcp: cope racing subflow creation in mptcp_rcv_space_adjust Date: Mon, 2 Dec 2024 14:53:01 +0100 Message-ID: <2024120252-CVE-2024-53122-f35c@gregkh> X-Mailer: git-send-email 2.47.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=2459; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=j2JNgjKKjAcqsiC/p5UGMdCgU2qEfE+W++N3eRKm/Co=; b=owGbwMvMwCRo6H6F97bub03G02pJDOm+u7d0JTCYWizlVt6a+U9l6oPvZXkJTipmy1a2XFaTv xTy/q1ORywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkdj/Dgk1B/l3Lvwkt0Kue sPb71E9xlhZTlzMsOBAh2D1p7aOZlc8+xW0oqngetJV3AQA= 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: mptcp: cope racing subflow creation in mptcp_rcv_space_adjust Additional active subflows - i.e. created by the in kernel path manager - are included into the subflow list before starting the 3whs. A racing recvmsg() spooling data received on an already established subflow would unconditionally call tcp_cleanup_rbuf() on all the current subflows, potentially hitting a divide by zero error on the newly created ones. Explicitly check that the subflow is in a suitable state before invoking tcp_cleanup_rbuf(). The Linux kernel CVE team has assigned CVE-2024-53122 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit c76c6956566f and fixed in 6.1.119 with commit 24995851d58c Issue introduced in 5.10 with commit c76c6956566f and fixed in 6.6.63 with commit ff825ab2f455 Issue introduced in 5.10 with commit c76c6956566f and fixed in 6.11.10 with commit aad6412c63ba Issue introduced in 5.10 with commit c76c6956566f and fixed in 6.12 with commit ce7356ae3594 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-53122 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/protocol.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/24995851d58c4a205ad0ffa7b2f21e479a9c8527 https://git.kernel.org/stable/c/ff825ab2f455299c0c7287550915a8878e2a66e0 https://git.kernel.org/stable/c/aad6412c63baa39dd813e81f16a14d976b3de2e8 https://git.kernel.org/stable/c/ce7356ae35943cc6494cc692e62d51a734062b7d