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 229881F5FA for ; Sun, 19 Jan 2025 10:18:51 +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=1737281932; cv=none; b=o0nNThwhmrWb6kjdl2BZCzfuF9rSwtNpbkNd8YTiMMtlZRlEjW2NI4Xg4mTytVMe0NQfY2QhldyRf/NYhwLLLbOi4CXJPRc8hxbT6aDUQpxRCpY2fnsaWiG1Bp7LOaEu6KaTr0lgcxHoomqAs2OzH2PZy9227GBPcrMojyrtlyo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737281932; c=relaxed/simple; bh=UuXxLkoSqGfd8mD+uU6y+lIbFUwDfsMJgH6vA915+0Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NPtHDHztbBUfsoO3XgFHMuhlWj4WpgJwGVM6C9HmQLUzx/qatc0M3daOfpt9B31uvyHcqAWeHgEsaRXKinFcNWnEwAvmjfmtqySqSeCUdkbjuf6zVm4rV59VdW46SCcFQ8RlJi4HCGwMMl4N8yGjm/ERmHFUI7E3JJ0iC94BrOA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hUzk/YPb; 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="hUzk/YPb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26E5DC4CED6; Sun, 19 Jan 2025 10:18:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1737281931; bh=UuXxLkoSqGfd8mD+uU6y+lIbFUwDfsMJgH6vA915+0Y=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hUzk/YPbCPS20Z+WatG0VkxPJwManM4g2TnUXwbgKPPL/RGJv6uHu4tZJz9mqCMvR ceVo1SWYWQYbp60UaUt7Mh5cWLu4bo9sEt0k+XU8Beyoek57ox8VqK2diLH04WshKK LZJeXY2B+HtMfUeFJQjkl7qRYFVXmLLouMvvKkoo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21641: mptcp: sysctl: blackhole timeout: avoid using current->nsproxy Date: Sun, 19 Jan 2025 11:17:50 +0100 Message-ID: <2025011944-CVE-2025-21641-0897@gregkh> X-Mailer: git-send-email 2.48.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=2249; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UuXxLkoSqGfd8mD+uU6y+lIbFUwDfsMJgH6vA915+0Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDOk9Fz1UPcSDVLr+h8TVuojMY3pyrugn9/4pM7dHzclPa O5/bLmnI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbi9Y1hwZF5u+W012tZcn+J T//cOJ0z3P6zFcM8i4v3Dq9Y+NZINKnTe+nT29OPhDTMAQA= 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: sysctl: blackhole timeout: avoid using current->nsproxy As mentioned in the previous commit, using the 'net' structure via 'current' is not recommended for different reasons: - Inconsistency: getting info from the reader's/writer's netns vs only from the opener's netns. - current->nsproxy can be NULL in some cases, resulting in an 'Oops' (null-ptr-deref), e.g. when the current task is exiting, as spotted by syzbot [1] using acct(2). The 'pernet' structure can be obtained from the table->data using container_of(). The Linux kernel CVE team has assigned CVE-2025-21641 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit 27069e7cb3d1cea9377069266acf19b9cc5ad0ae and fixed in 6.12.10 with commit 4c74fbdc5ab95b13945be01e6065940b68222db7 Issue introduced in 6.12 with commit 27069e7cb3d1cea9377069266acf19b9cc5ad0ae and fixed in 6.13-rc7 with commit 92cf7a51bdae24a32c592adcdd59a773ae149289 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-2025-21641 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/ctrl.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/4c74fbdc5ab95b13945be01e6065940b68222db7 https://git.kernel.org/stable/c/92cf7a51bdae24a32c592adcdd59a773ae149289