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 9CAAD1E7658 for ; Wed, 4 Sep 2024 19:57:01 +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=1725479821; cv=none; b=dHDKA1/+MlUsFLHPRrqdtwPv1H6VPSAc9zh+97g/jw9O0Z2HjqKDtJeNmPMtDaN5sfiZIKWYAEMAAue8NAWfzXnJB93NEEPyMPazzuvcaSb6aKCk+K3ZkomrJJJ9eFnVi0ZV9cgED56MAt0OJJqxY2FSnnPekPmH2zSW97YgsKQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725479821; c=relaxed/simple; bh=X9UzVi3XUO/qD9g/T3KkH1qAda4hldWwMbCTH8RbMi0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=b6Yk8AUxJ0zUmWuDZslOofvpo1mmaJXN83+cZxVt19ctthdtFVr5cVWCPWQm5ch5UriklzliqJstDjrxOfqa5vAdSoydcNiZ7aE4fApej8gM/nZKCa8LqotZTxytttaRownEnSSjfvZHt8LVCdgJt/VyTwb/nD+qBAI72cMPFuk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=brAHS+uT; 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="brAHS+uT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BC21C4CEC2; Wed, 4 Sep 2024 19:57:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1725479821; bh=X9UzVi3XUO/qD9g/T3KkH1qAda4hldWwMbCTH8RbMi0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=brAHS+uT7w7ElEi6jcoqHqPsHQBLppm8bJYdA9x+YNZE91n9WqW8m4bLxpEDD7bFO 1dR9J+klp/FUj4Sy/vFNfcBfkvXPqLgv4NXnS3qAOol3xEDNcQG+miV0GqsNd7jBsR 7CBgu979kYUiRT6OX30UALv5OsXibtaYl7mcPD4A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-44974: mptcp: pm: avoid possible UaF when selecting endp Date: Wed, 4 Sep 2024 21:56:39 +0200 Message-ID: <2024090440-CVE-2024-44974-dbe8@gregkh> X-Mailer: git-send-email 2.46.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=2325; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=X9UzVi3XUO/qD9g/T3KkH1qAda4hldWwMbCTH8RbMi0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk3dldMus+3q2rZlH1F/4X4vG59NZqZrJAksDm6paBbJ dlF/PWqjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIwj2GBROlLYOF9wsdkGcu v+PXYPdFMsb6DcP8kgRtPt+rFhrHZpjJ6yxLXKsY1s4NAA== 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: pm: avoid possible UaF when selecting endp select_local_address() and select_signal_address() both select an endpoint entry from the list inside an RCU protected section, but return a reference to it, to be read later on. If the entry is dereferenced after the RCU unlock, reading info could cause a Use-after-Free. A simple solution is to copy the required info while inside the RCU protected section to avoid any risk of UaF later. The address ID might need to be modified later to handle the ID0 case later, so a copy seems OK to deal with. The Linux kernel CVE team has assigned CVE-2024-44974 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit 01cacb00b35c and fixed in 6.6.48 with commit 9a9afbbc3fbf Issue introduced in 5.7 with commit 01cacb00b35c and fixed in 6.10.7 with commit 0201d65d9806 Issue introduced in 5.7 with commit 01cacb00b35c and fixed in 6.11-rc5 with commit 48e50dcbcbaa 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-44974 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_netlink.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/9a9afbbc3fbfca4975eea4aa5b18556db5a0c0b8 https://git.kernel.org/stable/c/0201d65d9806d287a00e0ba96f0321835631f63f https://git.kernel.org/stable/c/48e50dcbcbaaf713d82bf2da5c16aeced94ad07d