CVE-2026-142864: mptcp: fix MP_CAPABLE token migration when cloning reqsk
In the Linux kernel, the following vulnerability has been resolved:
mptcp: fix MPCAPABLE token migration when cloning reqsk
TCP request migration clones pending request sockets with inetreqskclone(). For MPTCP MPCAPABLE requests this byte-copies the tokennode hlist state into the clone even though the token table still names the original request, and the following warning can be seen:
WARNING: net/mptcp/token.c:364 at mptcptokendestroyrequest+0x2b0/0x330, CPU#2: swapper/2/0 CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 7.2.0-rc5-00353-gc27e36054537 #10 PREEMPT(full) RIP: 0010:mptcptokendestroyrequest (net/mptcp/token.c:364 (discriminator 1)) Call Trace: <IRQ> subflowv4reqdestructor (net/mptcp/subflow.c:694) reqskfree (net/ipv4/inetconnectionsock.c:906) reqsktimerhandler (include/net/requestsock.h:137 net/ipv4/inetconnectionsock.c:1147) calltimerfn (kernel/time/timer.c:1748)
Move token request ownership from the original request to the clone under the token bucket lock. Make mptcptokenaccept() and mptcptokendestroyrequest() re-check tokennode under the same lock and treat an already moved or removed request as a normal race instead of warning. This also keeps token bucket chainlen accounting balanced.
If a passive MPCAPABLE socket cannot claim the token, destroy the provisional MPTCP socket and let the subflow fall back rather than installing a socket with mismatched token ownership. Mark that path as a passive handshake fallback so MPCapableFallbackACK records the downgrade.
If the speculative clone later loses the inetehashinsert() ownership arbitration, the original request may find that its token was already moved and fall back to plain TCP. The clone destructor then releases the token reservation and keeps chainlen balanced. This trades an exceptionally rare fallback for eliminating the warning and persistent accounting drift.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.118 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.64 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4