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 20A2D16DEC3 for ; Fri, 12 Jul 2024 12:28:37 +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=1720787317; cv=none; b=l664cBNp6c6KCMsvD7+eIAaaAlK5HxFdX0REMZ6buXEfrsEEYxAjFfYBppCeav+XoW5mvZMJV3YqNODlU4qtgMch5jRoP7tAqUaoxuTk4U6ga0TZbRINbhlBrjJgs0wL/wUjlE8CcKiEe9/DhoJFpQ3sFsnUqG+zooMbJFnfV2A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720787317; c=relaxed/simple; bh=MP0Cq6SdrzrDro3lD5RjNJpUjsuRgUGFrJVmkPSP1DA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UrKkEZHaX+obSvImuypoaf1t9alh0w5+Zs2d4+4dYSDpGs4BT4qyo2EaQsCcfnJyRXPYjIimpRG+Zy6+voiD204MAU7rhK3GW4MpCWLB15Vr4w9owF91bMALHTF/uUGTA6QQIrnyklpbYcC4R/A0h55eNQeNJBDt1U5mktDIeiI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=k+LBdZq0; 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="k+LBdZq0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 927AFC32782; Fri, 12 Jul 2024 12:28:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720787317; bh=MP0Cq6SdrzrDro3lD5RjNJpUjsuRgUGFrJVmkPSP1DA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=k+LBdZq0mO8JjU/2tLMXtcpYaQaFG7sAzYIsHXYrq/IICjjpyMAbTSwZudWBAcPaq M9WjoabdYBfehhMVMLlI7Ztr3s10NL1dPtvQCYbh5RU2czScUU6lkjdCNVXLBBAEoo Mf0sV1OV7na77x9ruOKYanl/80+xTJ8l6pRc1Xus= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-40931: mptcp: ensure snd_una is properly initialized on connect Date: Fri, 12 Jul 2024 14:27:29 +0200 Message-ID: <2024071216-CVE-2024-40931-77b2@gregkh> X-Mailer: git-send-email 2.45.2 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=2705; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MP0Cq6SdrzrDro3lD5RjNJpUjsuRgUGFrJVmkPSP1DA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkTFVVuxs7/Lu4aa3ytV5F1y9SA7cVK81uDTDR7r23yi i2/LODcEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABM5asAwP8w/q5Hhw69dOi9T uCZ9nX639YuqP8P8rAWN37c+1ohm3/7OOqCjZW5lnb0qAA== 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: ensure snd_una is properly initialized on connect This is strictly related to commit fb7a0d334894 ("mptcp: ensure snd_nxt is properly initialized on connect"). It turns out that syzkaller can trigger the retransmit after fallback and before processing any other incoming packet - so that snd_una is still left uninitialized. Address the issue explicitly initializing snd_una together with snd_nxt and write_seq. The Linux kernel CVE team has assigned CVE-2024-40931 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 8fd738049ac3 and fixed in 5.10.221 with commit 208cd22ef5e5 Issue introduced in 5.9 with commit 8fd738049ac3 and fixed in 5.15.162 with commit 7b9c7fc8600b Issue introduced in 5.9 with commit 8fd738049ac3 and fixed in 6.1.95 with commit f03c46eabb3a Issue introduced in 5.9 with commit 8fd738049ac3 and fixed in 6.6.35 with commit f1f0a46f8bb8 Issue introduced in 5.9 with commit 8fd738049ac3 and fixed in 6.9.6 with commit ef473bf1dd7e Issue introduced in 5.9 with commit 8fd738049ac3 and fixed in 6.10-rc4 with commit 8031b58c3a9b 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-40931 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/208cd22ef5e57f82d38ec11c1a1703f9401d6dde https://git.kernel.org/stable/c/7b9c7fc8600b64a86e4b47b2d190bba380267726 https://git.kernel.org/stable/c/f03c46eabb3a67bd2993e237ab5517f00a5f1813 https://git.kernel.org/stable/c/f1f0a46f8bb8890b90ab7194f0a0c8fe2a3fb57f https://git.kernel.org/stable/c/ef473bf1dd7e8dd08bcc04b9e2d1bfed69a0a7ce https://git.kernel.org/stable/c/8031b58c3a9b1db3ef68b3bd749fbee2e1e1aaa3