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 10B01535CC for ; Fri, 15 Mar 2024 20:16:02 +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=1710533762; cv=none; b=PLB96bta28I4qfaMQhv6ugpIbClszPr763zql+FffQqbtQ/KsJ7QiKR5F8QTMtl2IZPXwtcu+CT5B1vss/ZbLOYB1AN99fAgn6mCPEFIsdSFmoeT/ZxbLkVa5RDQnSljkm0sxGTH+5Cwm3HT/2h1x3VqsdcOsGkbK7CLABUw82E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710533762; c=relaxed/simple; bh=mSXBYHLU7qzLQYeGSf6Vg9CdpkQbW05Eu99VmEtdjq0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=T4M+V+odB5dwBAEKBhJ/DJDehTE79i9cjk6CvYUMcbS1T9XF7fYjFMVpXkJqUFGhSXqnzjmq4bSNkBsIkrWBib3JOkEY/dzMfAjc2GvU1csphLy9T7YASCurrDHPZLehXXbgfIYvm8VwMVGfOgQLjqtya03Hud5q7a/1YgpaSZI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1p+Dqg7Z; 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="1p+Dqg7Z" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A941C433C7; Fri, 15 Mar 2024 20:16:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1710533761; bh=mSXBYHLU7qzLQYeGSf6Vg9CdpkQbW05Eu99VmEtdjq0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1p+Dqg7ZA8eG+MYeubkz9USvOzS2AMI35bjfUwZBSMgwHowgjssU7ANyw5pjdaqYK 6BywafIIJrtjnZGFArhm/pMlFOAA4IDnyXOi6BiQy4IR9crO2hdif+PzM9lN55AjAy F2GPvlC+Xsfyduexw//JjCgI2uTm7ERItegnmGiw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47132: mptcp: fix sk_forward_memory corruption on retransmission Date: Fri, 15 Mar 2024 21:15:22 +0100 Message-ID: <2024031514-CVE-2021-47132-80b2@gregkh> X-Mailer: git-send-email 2.44.0 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=2198; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mSXBYHLU7qzLQYeGSf6Vg9CdpkQbW05Eu99VmEtdjq0=; b=owGbwMvMwCRo6H6F97bub03G02pJDKlf1gTF2z3nftW1oCGhbeProyunnRO5yLHIseVBVkvMf T8hg28FHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARA0WGuYKsmpEhC/6zysq2 WF42OMi9uOGyCcP8RCHbe/eOZvMUPv8QyfvVwnmX0NwaAA== 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 sk_forward_memory corruption on retransmission MPTCP sk_forward_memory handling is a bit special, as such field is protected by the msk socket spin_lock, instead of the plain socket lock. Currently we have a code path updating such field without handling the relevant lock: __mptcp_retrans() -> __mptcp_clean_una_wakeup() Several helpers in __mptcp_clean_una_wakeup() will update sk_forward_alloc, possibly causing such field corruption, as reported by Matthieu. Address the issue providing and using a new variant of blamed function which explicitly acquires the msk spin lock. The Linux kernel CVE team has assigned CVE-2021-47132 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 64b9cea7a0af and fixed in 5.12.10 with commit b9c78b1a9596 Issue introduced in 5.12 with commit 64b9cea7a0af and fixed in 5.13 with commit b5941f066b4c Please see https://www.kernel.org or 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-47132 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/b9c78b1a95966a7bd2ddae05b73eafc0cda4fba3 https://git.kernel.org/stable/c/b5941f066b4ca331db225a976dae1d6ca8cf0ae3