{"id":"CVE-2026-99460","state":"PUBLISHED","title":"mptcp: hold MP_JOIN msk ref when cloning reqsk","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmptcp: hold MP_JOIN msk ref when cloning reqsk\n\nTCP request migration clones pending request sockets with\ninet_reqsk_clone().  For MPTCP MP_JOIN requests this byte-copies\nsubflow_req->msk, but the clone does not own a reference.\n\nThe original and cloned requests can consequently drop the same msk\nreference, leaving one request with a dangling pointer.  This manifests as\na KASAN slab-use-after-free in subflow_req_destructor():\n\n  BUG: KASAN: slab-use-after-free in subflow_req_destructor (net/mptcp/subflow.c:45)\n  Write of size 4 at addr ff1100010e008d40 by task swapper/0/0\n  CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 7.2.0-rc5-00353-gc27e36054537 #10 PREEMPT(full)\n\n  Call Trace:\n   subflow_req_destructor (net/mptcp/subflow.c:45)\n   subflow_v4_req_destructor (net/mptcp/subflow.c:694)\n   __reqsk_free (net/ipv4/inet_connection_sock.c:906)\n   reqsk_timer_handler (include/net/request_sock.h:137 net/ipv4/inet_connection_sock.c:1147)\n\n  Allocated by task 10014:\n   sk_prot_alloc (net/core/sock.c:2246)\n   sk_clone (net/core/sock.c:2488)\n   mptcp_sk_clone_init (include/net/sock.h:1848 net/mptcp/protocol.c:3564)\n   subflow_syn_recv_sock (net/mptcp/subflow.c:883)\n   tcp_check_req (net/ipv4/tcp_minisocks.c:934)\n\n  Freed by task 0:\n   slab_free_after_rcu_debug (include/linux/kasan.h:235 mm/slub.c:2677 mm/slub.c:6439)\n   rcu_core (kernel/rcu/tree.c:2645 kernel/rcu/tree.c:2897)\n\n  Last potentially related work creation:\n   kmem_cache_free (mm/slub.c:2638 mm/slub.c:6377 mm/slub.c:6504)\n   __sk_destruct (net/core/sock.c:2289 net/core/sock.c:2391)\n   sk_destruct (net/core/sock.c:2419)\n   __sk_free (net/core/sock.c:2430)\n   sk_free (net/core/sock.c:2441)\n   mptcp_close (include/net/sock.h:2020 net/mptcp/protocol.c:3399)\n   inet_release (net/ipv4/af_inet.c:442)\n\n  The buggy address belongs to the cache MPTCP of size 2968\n  The buggy address is 128 bytes inside a freed 2968-byte region\n\nA non-NULL subflow_req->msk means that the request owns one reference. The\nthird ACK can concurrently transfer the original request reference to the\nchild and release it, so taking an unconditional hold on the copied pointer\nis unsafe.\n\nMPTCP sockets use SLAB_TYPESAFE_BY_RCU and all current inet_reqsk_clone()\ncallers run in an RCU read-side critical section. Document and\nlockdep-check that calling-context requirement.  Read the pointer from the\noriginal request and acquire a reference only if it is still live.  Use\nrefcount_inc_not_zero_acquire() so the subsequent ownership validation\ncannot be reordered before the try-get, then re-read the original request\nto verify that it still owns the same msk. If either check fails, clear the\nclone pointer; otherwise its normal destructor balances the new reference.\nMark the ownership-transfer store with WRITE_ONCE() to match the lockless\nreads.\n\nThe following patch completes the clone fixup for MP_CAPABLE token\nownership. Both patches carry the same Fixes tag and are required for\nstable backports.","publishedAt":"2026-11-19T14:42:07.767Z","updatedAt":"2026-11-22T11:08:23.765Z","severity":{"score":8.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c905dee62232db583b50fe214080b98db623151e","status":"affected","lessThan":"23f917d95b88a73d1498dd00456cec418dd355c4","versionType":"git"},{"version":"c905dee62232db583b50fe214080b98db623151e","status":"affected","lessThan":"c290f8641e41c535c8201e40d6c903f40c6d6e94","versionType":"git"},{"version":"c905dee62232db583b50fe214080b98db623151e","status":"affected","lessThan":"aff16e324463d31add9312b171ea96a309cbe4e3","versionType":"git"},{"version":"c905dee62232db583b50fe214080b98db623151e","status":"affected","lessThan":"c9c90cf437a9e6597611b6d3aad6e255fad22867","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/mptcp.h","net/ipv4/inet_connection_sock.c","net/mptcp/subflow.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/mptcp.h","net/ipv4/inet_connection_sock.c","net/mptcp/subflow.c"]}],"references":["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"],"weaknesses":[],"ingestedAt":"2026-11-22T11:18:06.032Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99460.json","commit":"247cc9beefd85903834df0592e88a44f4d599223","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99460","state":"PUBLISHED","datePublished":"2026-11-19T14:42:07.767Z","dateUpdated":"2026-11-22T11:08:23.765Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.416Z"},"containers":{"cna":{"title":"mptcp: hold MP_JOIN msk ref when cloning reqsk","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmptcp: hold MP_JOIN msk ref when cloning reqsk\n\nTCP request migration clones pending request sockets with\ninet_reqsk_clone().  For MPTCP MP_JOIN requests this byte-copies\nsubflow_req->msk, but the clone does not own a reference.\n\nThe original and cloned requests can consequently drop the same msk\nreference, leaving one request with a dangling pointer.  This manifests as\na KASAN slab-use-after-free in subflow_req_destructor():\n\n  BUG: KASAN: slab-use-after-free in subflow_req_destructor (net/mptcp/subflow.c:45)\n  Write of size 4 at addr ff1100010e008d40 by task swapper/0/0\n  CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 7.2.0-rc5-00353-gc27e36054537 #10 PREEMPT(full)\n\n  Call Trace:\n   subflow_req_destructor (net/mptcp/subflow.c:45)\n   subflow_v4_req_destructor (net/mptcp/subflow.c:694)\n   __reqsk_free (net/ipv4/inet_connection_sock.c:906)\n   reqsk_timer_handler (include/net/request_sock.h:137 net/ipv4/inet_connection_sock.c:1147)\n\n  Allocated by task 10014:\n   sk_prot_alloc (net/core/sock.c:2246)\n   sk_clone (net/core/sock.c:2488)\n   mptcp_sk_clone_init (include/net/sock.h:1848 net/mptcp/protocol.c:3564)\n   subflow_syn_recv_sock (net/mptcp/subflow.c:883)\n   tcp_check_req (net/ipv4/tcp_minisocks.c:934)\n\n  Freed by task 0:\n   slab_free_after_rcu_debug (include/linux/kasan.h:235 mm/slub.c:2677 mm/slub.c:6439)\n   rcu_core (kernel/rcu/tree.c:2645 kernel/rcu/tree.c:2897)\n\n  Last potentially related work creation:\n   kmem_cache_free (mm/slub.c:2638 mm/slub.c:6377 mm/slub.c:6504)\n   __sk_destruct (net/core/sock.c:2289 net/core/sock.c:2391)\n   sk_destruct (net/core/sock.c:2419)\n   __sk_free (net/core/sock.c:2430)\n   sk_free (net/core/sock.c:2441)\n   mptcp_close (include/net/sock.h:2020 net/mptcp/protocol.c:3399)\n   inet_release (net/ipv4/af_inet.c:442)\n\n  The buggy address belongs to the cache MPTCP of size 2968\n  The buggy address is 128 bytes inside a freed 2968-byte region\n\nA non-NULL subflow_req->msk means that the request owns one reference. The\nthird ACK can concurrently transfer the original request reference to the\nchild and release it, so taking an unconditional hold on the copied pointer\nis unsafe.\n\nMPTCP sockets use SLAB_TYPESAFE_BY_RCU and all current inet_reqsk_clone()\ncallers run in an RCU read-side critical section. Document and\nlockdep-check that calling-context requirement.  Read the pointer from the\noriginal request and acquire a reference only if it is still live.  Use\nrefcount_inc_not_zero_acquire() so the subsequent ownership validation\ncannot be reordered before the try-get, then re-read the original request\nto verify that it still owns the same msk. If either check fails, clear the\nclone pointer; otherwise its normal destructor balances the new reference.\nMark the ownership-transfer store with WRITE_ONCE() to match the lockless\nreads.\n\nThe following patch completes the clone fixup for MP_CAPABLE token\nownership. Both patches carry the same Fixes tag and are required for\nstable backports."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c905dee62232db583b50fe214080b98db623151e","status":"affected","lessThan":"23f917d95b88a73d1498dd00456cec418dd355c4","versionType":"git"},{"version":"c905dee62232db583b50fe214080b98db623151e","status":"affected","lessThan":"c290f8641e41c535c8201e40d6c903f40c6d6e94","versionType":"git"},{"version":"c905dee62232db583b50fe214080b98db623151e","status":"affected","lessThan":"aff16e324463d31add9312b171ea96a309cbe4e3","versionType":"git"},{"version":"c905dee62232db583b50fe214080b98db623151e","status":"affected","lessThan":"c9c90cf437a9e6597611b6d3aad6e255fad22867","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/mptcp.h","net/ipv4/inet_connection_sock.c","net/mptcp/subflow.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/net/mptcp.h","net/ipv4/inet_connection_sock.c","net/mptcp/subflow.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/23f917d95b88a73d1498dd00456cec418dd355c4"},{"url":"https://git.kernel.org/stable/c/c290f8641e41c535c8201e40d6c903f40c6d6e94"},{"url":"https://git.kernel.org/stable/c/aff16e324463d31add9312b171ea96a309cbe4e3"},{"url":"https://git.kernel.org/stable/c/c9c90cf437a9e6597611b6d3aad6e255fad22867"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - The MP_JOIN TCP SYN is parsed by subflow_check_req, reached from tcp_v4_rcv through tcp_v4_do_rcv, tcp_rcv_state_process, and subflow_v4_conn_request, which stores the option token's msk in subflow_req->msk. reqsk_timer_handler then calls inet_reqsk_clone, and that clone copies the pointer with no new reference.\nAC:H - inet_reqsk_clone is reached from reqsk_timer_handler only after the listener is no longer TCP_LISTEN and reuseport_migrate_sock returns a sibling. That requires SO_REUSEPORT and net.ipv4.tcp_migrate_req (default 0) or BPF_SK_REUSEPORT_SELECT_OR_MIGRATE. The peer can withhold the JOIN ACK, but the listener close is outside the peer's control.\nPR:N - subflow_check_req calls mptcp_token_get_sock on the token carried in the MP_JOIN SYN and sets subflow_req->msk before any HMAC check. subflow_hmac_valid runs only later in subflow_syn_recv_sock on the third ACK, which this path does not need. The peer learns the token from its own MP_CAPABLE handshake, published by mptcp_token_accept before accept().\nUI:N - The remote peer itself completes the MP_CAPABLE handshake, whose msk mptcp_token_accept inserts, and then sends the MP_JOIN SYN that subflow_check_req holds open until reqsk_timer_handler clones it.\nS:U - sock_put in subflow_req_destructor corrupts an mptcp_sock belonging to the host kernel MPTCP slab. The vulnerability and the impact are both in that kernel security authority.\nC:H - The surviving request's subflow_req_destructor calls sock_put after mptcp_close has already freed the mptcp_sock (KASAN 4-byte write at offset 128). On SLAB_TYPESAFE_BY_RCU reuse, that sock_put reads and decrements a live socket's sk_refcnt, and the resulting use-after-free of the MPTCP object exposes its keys and receive-queue contents.\nI:H - The extra sock_put in subflow_req_destructor can drop sk_refcnt to zero and sk_free a live mptcp_sock that mptcp_sk_clone_init reused in the same SLAB_TYPESAFE_BY_RCU cache. Destroying that live socket while the stack still uses it is a kernel heap use-after-free write primitive.\nA:H - The KASAN report is a slab-use-after-free write in subflow_req_destructor, called from reqsk_timer_handler via __reqsk_free. Decrementing sk_refcnt on the freed msk faults, and a successful refcount_dec_and_test calls sk_free and tears the socket down."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-22T11:08:23.765Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}