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 D8507305070 for ; Wed, 12 Nov 2025 10:25:03 +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=1762943103; cv=none; b=nmO4CxMWxbDnLEQN5oqbWR/G5upFIflLme7bqOdKol8zobtnw6ejhguazmosqvSA7Ln1rCGvvaq9c4lBepy+UkMe4msv3YbmAJ5hrL5udaq+6RZqi5LYjavc74VSZDnw/LGYp66N/pSC30/UnVv71EvDmo0G7o1A0R7RXE3UPL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762943103; c=relaxed/simple; bh=KrKS3gPoSQt6POKpq5adxdqqdMxz0M7uVcw21V26wgI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GuHBKUoUDuh61yXCYYF52PHelRCVWpfMfc0XozEU3r4SKl1ozjb0Rs/13nXhbV3fVjwlPuqxEbr5SrJySzzoqPmzbYLSMlIWQEE7DalArp/I69lJ/P4mOE8AQZckGbiVlHynByp3m0gj6gmuxgNOm1AiDdyXylnC6+C4HqBJ1p8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KHcyYlWd; 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="KHcyYlWd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CC72C4CEF5; Wed, 12 Nov 2025 10:25:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1762943103; bh=KrKS3gPoSQt6POKpq5adxdqqdMxz0M7uVcw21V26wgI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KHcyYlWddknCIYQ910DO+41Dj5ObQ5tL/NFeIt/3stmtRy/Oq+aQDPicHdkDlIR1y llqHn/IsDWkqPr6ZRIEC81jAjfFQHFS8sxA8QVoj8xpeDMB36W1eQHaR1GteeBCuU5 Bn8jJr8reoR2Jgt6yHCN4/XGG6lDD+jiJz2Lqod4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40133: mptcp: Use __sk_dst_get() and dst_dev_rcu() in mptcp_active_enable(). Date: Wed, 12 Nov 2025 19:24:09 +0900 Message-ID: <2025111254-CVE-2025-40133-4d9d@gregkh> X-Mailer: git-send-email 2.51.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=2236; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=a2zRvdk/Azx3D037zlOcOK8tBHueqPeTb1GrLEfPVzY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkiCVZejjlVfJvmXWznYtx66uS+e26mha8qH9Y1tO5Zo lu/8s6xjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIxnGG+VFnpmoV8rnzzWHo yfm07smju19PP2eYp8OqdmlueP/ihEur7h++7BPWr/s0DgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: mptcp: Use __sk_dst_get() and dst_dev_rcu() in mptcp_active_enable(). mptcp_active_enable() is called from subflow_finish_connect(), which is icsk->icsk_af_ops->sk_rx_dst_set() and it's not always under RCU. Using sk_dst_get(sk)->dev could trigger UAF. Let's use __sk_dst_get() and dst_dev_rcu(). The Linux kernel CVE team has assigned CVE-2025-40133 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12 with commit 27069e7cb3d1cea9377069266acf19b9cc5ad0ae and fixed in 6.12.55 with commit ad16235c9d3ef7ec17c109ff39b7504f49d17072 Issue introduced in 6.12 with commit 27069e7cb3d1cea9377069266acf19b9cc5ad0ae and fixed in 6.17.3 with commit cc976ec9e38bb79409de3261ba1dbb6868e2a53e Issue introduced in 6.12 with commit 27069e7cb3d1cea9377069266acf19b9cc5ad0ae and fixed in 6.18-rc1 with commit 893c49a78d9f85e4b8081b908fb7c407d018106a 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-40133 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/ad16235c9d3ef7ec17c109ff39b7504f49d17072 https://git.kernel.org/stable/c/cc976ec9e38bb79409de3261ba1dbb6868e2a53e https://git.kernel.org/stable/c/893c49a78d9f85e4b8081b908fb7c407d018106a