From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795099972; b=uw6osE5/AIxRPd/bFy8DrrRIArNXsGI8kEl8wVNw32choXNpdkliYccv32OdElyjmZWu mbJrSuSjAE9URPlH4gGabD4GRDvCP/pZUaMt8kWey0LoEbBQlFeMAlkrfAG532yWmetrS /5xC5z3RNsmLo6S/QHwiFUJ2WEyQds7QL7g5JsDgJJsuSqXeppDdMM1ThRINglnBWBr94 v3TA4YJGO+4qFfnBT4cv1unecmqtE97Ww/mXmsfC+K33YLg+8/FoXiegLIq2O4J61RmPM xwp61WDn3y/Z5Cx8wICBp13aM10s06d+p3k+ZbkqiStlJEeAkEiv+TeQscoylvJK//w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099972; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=SpyungvtGiq86+hzSrFd/N5VY+loGG/hEzaQuym01kY=; b=YkVH2ialTF8MnzuOjNpFJlIPObLvLHYhDvySudxSu+Hf09eGXIn0x7mOr/M1z8Yv/u0I 8UkSpr80YNhYZKQjPBEh7cjhZmEWGdEvexP/eHRnOtvlbBFeGkz5apzNkl7hH7c9DWheS cLCziIpwJVhmIoFPTHuhMN74MY/h+uylWlDWFIkN1JnHeyfhyQpCZFYl3snQxrKNwBpEI zh1w81YmpIbE2nDg5xtP2ItffCe0lqSquR7M5vS+kWwhA8/v+k2q18LKZzUfmidgjBWE1 By9RV6bm+3gdqB847rrRFY1ExMMXaX47Ky+fYkI+OTKp7S2yMkk5/nMLOOv7OJnTbcA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=z8XzTrCE; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50367606A326 for ; Thu, 19 Nov 2026 14:52:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=z8XzTrCE Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4AE441F000C4; Thu, 19 Nov 2026 14:52:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099972; bh=SpyungvtGiq86+hzSrFd/N5VY+loGG/hEzaQuym01kY=; h=From:To:Cc:Subject:Date:Reply-To; b=z8XzTrCE+ClD5WJSu2WGp5URRAXhBC8WVbeoAVbzFanO1F5CiHo3JeyVaZFUcwZv+ 08FOZlCKIHVtwAvCcJZF2ET3wgwfB0EwZGt9LQP+z3S/1cGYkKPkhP18NtE75tdrSo zNlJe4EhDdQx3+fiBRyiakCPTZ5mO21tuRwl1F7Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99460: mptcp: hold MP_JOIN msk ref when cloning reqsk Date: Thu, 19 Nov 2026 15:25:58 +0100 Message-ID: <2026111908-CVE-2026-99460-e52c@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=5233; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PgECG4aOiUivx/ZJcd7QsIlVrLGIK8SGlpiJ/IeuzN8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2Tr67/ZWbEv9yClewRD7Lktc/uj1SXujwj6+VtNvC 3A9o3u+I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbyxY1hfuRii0aZ2aWCC65p nz6cYHvAUImTjWHB1MIlXUXltdwNmx/pO7cnSPh7LuAHAA== 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: hold MP_JOIN msk ref when cloning reqsk TCP request migration clones pending request sockets with inet_reqsk_clone(). For MPTCP MP_JOIN requests this byte-copies subflow_req->msk, but the clone does not own a reference. The original and cloned requests can consequently drop the same msk reference, leaving one request with a dangling pointer. This manifests as a KASAN slab-use-after-free in subflow_req_destructor(): BUG: KASAN: slab-use-after-free in subflow_req_destructor (net/mptcp/subflow.c:45) Write of size 4 at addr ff1100010e008d40 by task swapper/0/0 CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 7.2.0-rc5-00353-gc27e36054537 #10 PREEMPT(full) Call Trace: subflow_req_destructor (net/mptcp/subflow.c:45) subflow_v4_req_destructor (net/mptcp/subflow.c:694) __reqsk_free (net/ipv4/inet_connection_sock.c:906) reqsk_timer_handler (include/net/request_sock.h:137 net/ipv4/inet_connection_sock.c:1147) Allocated by task 10014: sk_prot_alloc (net/core/sock.c:2246) sk_clone (net/core/sock.c:2488) mptcp_sk_clone_init (include/net/sock.h:1848 net/mptcp/protocol.c:3564) subflow_syn_recv_sock (net/mptcp/subflow.c:883) tcp_check_req (net/ipv4/tcp_minisocks.c:934) Freed by task 0: slab_free_after_rcu_debug (include/linux/kasan.h:235 mm/slub.c:2677 mm/slub.c:6439) rcu_core (kernel/rcu/tree.c:2645 kernel/rcu/tree.c:2897) Last potentially related work creation: kmem_cache_free (mm/slub.c:2638 mm/slub.c:6377 mm/slub.c:6504) __sk_destruct (net/core/sock.c:2289 net/core/sock.c:2391) sk_destruct (net/core/sock.c:2419) __sk_free (net/core/sock.c:2430) sk_free (net/core/sock.c:2441) mptcp_close (include/net/sock.h:2020 net/mptcp/protocol.c:3399) inet_release (net/ipv4/af_inet.c:442) The buggy address belongs to the cache MPTCP of size 2968 The buggy address is 128 bytes inside a freed 2968-byte region A non-NULL subflow_req->msk means that the request owns one reference. The third ACK can concurrently transfer the original request reference to the child and release it, so taking an unconditional hold on the copied pointer is unsafe. MPTCP sockets use SLAB_TYPESAFE_BY_RCU and all current inet_reqsk_clone() callers run in an RCU read-side critical section. Document and lockdep-check that calling-context requirement. Read the pointer from the original request and acquire a reference only if it is still live. Use refcount_inc_not_zero_acquire() so the subsequent ownership validation cannot be reordered before the try-get, then re-read the original request to verify that it still owns the same msk. If either check fails, clear the clone pointer; otherwise its normal destructor balances the new reference. Mark the ownership-transfer store with WRITE_ONCE() to match the lockless reads. The following patch completes the clone fixup for MP_CAPABLE token ownership. Both patches carry the same Fixes tag and are required for stable backports. The Linux kernel CVE team has assigned CVE-2026-99460 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit c905dee62232db583b50fe214080b98db623151e and fixed in 6.12.117 with commit 23f917d95b88a73d1498dd00456cec418dd355c4 Issue introduced in 5.14 with commit c905dee62232db583b50fe214080b98db623151e and fixed in 6.18.63 with commit c290f8641e41c535c8201e40d6c903f40c6d6e94 Issue introduced in 5.14 with commit c905dee62232db583b50fe214080b98db623151e and fixed in 7.3.2 with commit aff16e324463d31add9312b171ea96a309cbe4e3 Issue introduced in 5.14 with commit c905dee62232db583b50fe214080b98db623151e and fixed in 7.4-rc1 with commit c9c90cf437a9e6597611b6d3aad6e255fad22867 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-2026-99460 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: include/net/mptcp.h net/ipv4/inet_connection_sock.c net/mptcp/subflow.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/23f917d95b88a73d1498dd00456cec418dd355c4 https://git.kernel.org/stable/c/c290f8641e41c535c8201e40d6c903f40c6d6e94 https://git.kernel.org/stable/c/aff16e324463d31add9312b171ea96a309cbe4e3 https://git.kernel.org/stable/c/c9c90cf437a9e6597611b6d3aad6e255fad22867