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 85CF612FB0A for ; Tue, 21 May 2024 14:22:36 +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=1716301356; cv=none; b=XLlWyYbYCZaFKoiYwHOgvDrOMFsdAPHLgypZX3coAM0u+YRBg4fE3s0niA1kP6mwFeJyMPbTwlTkB6IVQ1MO2bL4CGX55hXijpTsVPsga2oMPDwAQ8yvArAymlkwgVRfglCmTCZcfsoRXtYtsxKZpDLZGuB67oYdnPRF+AAvXT0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716301356; c=relaxed/simple; bh=OvUjzSg5vlPB0R4MZb4a4NSikKv03OqMGfUJ9tDkKv8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=S6wKdS/R8V3endie6QF5zWhE9xRWeN3th0rFITH/VTY6+kKCn7oHJ6vb0wV4Q4nau6jmImeFMW86lIfEAWwMZ37Z9sZdeVJX0fvnjx5NyypcoyFwOq3wUaZbrdxhnVEK2UWl7ANn4VvYmBdDayyoZGWsdsUDk3d9CSirbluH/HA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=v5F2l6e6; 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="v5F2l6e6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A90B9C32786; Tue, 21 May 2024 14:22:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716301356; bh=OvUjzSg5vlPB0R4MZb4a4NSikKv03OqMGfUJ9tDkKv8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=v5F2l6e6Eg1ISawDYoJeGjUfTRI13QbtYFyL3um27ZtbNrNjL1kZNspDy7XsopKnI aXwc6yNXwG91WE6Yu+RWlvtUwRhpgTcDlyU75KcEKSe2jmCm8CIdacVo2jO/AAREYX f0wqw5RNUfgEyPcY9hBexkVdXmoDle4oMLmVy9W4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47244: mptcp: Fix out of bounds when parsing TCP options Date: Tue, 21 May 2024 16:19:58 +0200 Message-ID: <2024052142-CVE-2021-47244-cc41@gregkh> X-Mailer: git-send-email 2.45.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=2222; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OvUjzSg5vlPB0R4MZb4a4NSikKv03OqMGfUJ9tDkKv8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+a+tWxk++9jeyRqHO8+i9/mM9DkvcUtO4Di+tV7nx5 D5DTciMjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI8Q+GeQpP3pi3XqrZ53Yr 8Me5feLHMjL+pzDMFfw+6Vvz99ZHwif0f21yCD0oI+9UBQA= 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: Fix out of bounds when parsing TCP options The TCP option parser in mptcp (mptcp_get_options) could read one byte out of bounds. When the length is 1, the execution flow gets into the loop, reads one byte of the opcode, and if the opcode is neither TCPOPT_EOL nor TCPOPT_NOP, it reads one more byte, which exceeds the length of 1. This fix is inspired by commit 9609dad263f8 ("ipv4: tcp_input: fix stack out of bounds when parsing TCP options."). The Linux kernel CVE team has assigned CVE-2021-47244 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit cec37a6e41aa and fixed in 5.10.46 with commit 73eeba71dc99 Issue introduced in 5.6 with commit cec37a6e41aa and fixed in 5.12.13 with commit 76e02b8905d0 Issue introduced in 5.6 with commit cec37a6e41aa and fixed in 5.13 with commit 07718be26568 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-2021-47244 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/options.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/73eeba71dc9932970befa009e68272a3d5ec4a58 https://git.kernel.org/stable/c/76e02b8905d0691e89e104a882f3bba7dd0f6037 https://git.kernel.org/stable/c/07718be265680dcf496347d475ce1a5442f55ad7