Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Johan ter Mors
Sun, 22 Nov 2026 23:20
mptcp: ADD_ADDR echoed but never joined after the first announce round in a single-namespace setup on 6.12 — counters, timing sw...
Author: Johan ter Mors
Date: Sun, 22 Nov 2026 23:20
Date: Sun, 22 Nov 2026 23:20
188 lines
21943 bytes
21943 bytes
Hi MPTCP team,
While investigating late-announce subflow behaviour with kernel-PM
netlink configuration on UML, we hit one behaviour difference we
cannot explain from the code, plus a few things we confirmed healthy.
Everything below is measured twice: packet-level (AF_PACKET sniffer
counting MPTCP subtypes) and via the MPTcpExt counters in
/proc/net/netstat, on self-built kernels of v6.12 and v7.3.5 (same
probe, same config).
The question: on 6.12, in a single-namespace setup, every ADD_ADDR
round after the first is echoed but never followed by a join — not
even a socket-creation attempt. On 7.3.5 every round joins.
Sequence (single namespace, kernel PM, limits 4, endpoint id=8
127.0.0.3 SIGNAL, listener bound to 0.0.0.0:50560, 30 live loopback
MPTCP connections per round; each later round does pm_flush() + re-ADD
id=8 and creates 30 fresh connections before announcing):
Round 1 (first announce after boot), both 6.12 and 7.3.5:
MPJoinSynRx=30 MPJoinSynAckRx=30 MPJoinAckRx=30 -> all 30 conns join
AddAddr=46 EchoAdd=46
Rounds 2-5 with 1 s, 3 s, 10 s and 30 s wait between rounds, 6.12:
EchoAdd: 46 -> 152 -> 317 -> 543 -> 709 (echo tracks AddAddr:
the announce IS received
and echoed every round)
MPJoinSynTx / MPJoinSynRx / MPJoinAckRx: frozen at 30
MPJoinSynTxCreatSkErr: frozen at 16 (mptcp_subflow_create_socket
is never even called)
same after 30 s of idle: not a timeout, a stuck state.
Same rounds on 7.3.5: MPJoinAckRx 30 -> 60 -> 90 -> 120 -> 150 (every
round joins, CreatSkErr grows with the round — the same dual-attempt
pattern as round 1).
Two further data points that narrow it down:
A round-1 announce with ZERO live connections (endpoint registered, no
msk exists yet) also poisons 6.12: after creating connections and
announcing again, the same echo-yes/join-no signature appears. On
7.3.5 everything works. So "the first announce that was actually
received" is not the boundary; the state gets stuck regardless.
pm_flush() + re-ADD between rounds does NOT reset it on 6.12. (Also a
small aside: re-ADD of the same id without an intervening DEL/flush
returns -EBUSY on both releases — we used flush+re-ADD for every
round.)
The counter signature (echo present, join work never scheduled, no
CreatSkErr/BindErr/ConnectErr) points at the echo-only branch in
mptcp_pm_add_addr_received() (pm.c): for addr->id > 0 with
!READ_ONCE(pm->accept_addr) the code just echoes and acks without
scheduling MPTCP_PM_ADD_ADDR_RECEIVED. But a freshly created msk
starts with accept_addr=true and zero counters, and accept_addr is
only cleared in mptcp_pm_nl_add_addr_received() after sf_created when
a limit is hit (pm_netlink.c) — so from the source we cannot see which
state, in this topology only, pins 6.12 on the echo-only path from
round 2 onward while 7.3.5 does not. The two-namespace topology
(server announces to a client netns) does NOT show it on 6.12 either:
a re-ADD after DEL there re-establishes all subflows within ~90 ms.
The trigger seems to be the single-namespace "self-announce"
configuration, where both PM roles live in one netns — e.g. local
proxy-style setups.
Follow-up on the state we report: we tried to reconcile it with the
2026 CVE corpus before bothering you further. We backported the
semantics of CVE-2026-46137/46158/46170 (ADD_ADDR-rtx timer
locking/refcounts), CVE-2026-97566 (ID0 anno_list cleanup) and
CVE-2026-99603 (SOCK_RCU_FREE on kernel-PM listeners) into our 6.12
test kernel and re-ran the probe sequence: round 1 still completes
joins, round 2 is still echo-only — unchanged. The signature is also
identical on IPv6 (announcing an fd00:: endpoint) and with
tcp_syncookies=2 forcing every MP_JOIN through the syncookie restore
path. A fresh listener (close + rebind between rounds) does not clear
it either. The one discriminator we found: with a short (~1 s)
announce-to-close dwell the echo->join path fires on every round (even
while the genl announce itself returns -EBUSY), while with a ~15 s
dwell it freezes permanently from round 2 onwards. So the
echo->accept->join-work path appears to latch a per-namespace "already
handled" state that only decays with time, independent of all the PM
fixes we could backport. Does that ring a bell? We're happy to run
anything specific.
Background on why we're careful with claims here: the same
request-socket lifecycle area produced CVE-2026-98432 (IPv4 handshake
IP-options UAF, fixed in 6.12.113 et al.), where Anthropic reported a
working remote-root exploit against an MPTCP listener and AWS
confirmed it — while CloudLinux could not reproduce that claim. Our
own finding sits next to CVE-2026-99288 ("NoisyTCP", unhashed-socket
established lookup ABA, fixed in 6.12.117/6.18.63/7.3.4): Kim's own
FAQ answers the RCE question with "Not yet. and basically, no.", no
exploit is public, and no exploitation has been reported — so we claim
nothing beyond what we measured. What we did add: a differential
stress harness that drives the UP-reachable preconditions (SYN/child
churn on fixed 4-tuples with abortive closes, 40 established
same-dport-chain connections doing lookup pressure, backlog-2
listeners, 25 s storm, ~45k churn events) on KASAN kernels on both
sides of the 99288 fix (6.12.0 vs 7.3.5): zero splats on either,
matching KernelCare's single-RX-queue analysis — our UML lab is UP, so
the two-CPU race cannot fire there. We note two lab facts that may
matter to testers: our UML builds lack CONFIG_SYN_COOKIES (the sysctl
is absent), so the cookie-socket path of the published PoC could not
be exercised from UML without a rebuild, and /proc/net MIB access is
the reliable observation channel.
Since then we closed two more legs of the 99288 investigation, and
both seem useful context for triage. (1) What we tried, reported
honestly as bounded negatives: we rebuilt on a 2-vCPU x86 qemu guest
with CONFIG_SYN_COOKIES and built a raw-packet harness (IP_HDRINCL
segments + AF_PACKET cookie sniffer, storm workers pinned per vCPU so
cookie churn runs on one CPU while lookup pressure runs on the other).
Trial t1: 14,068 SYN, 5,330 cookie SYN-ACKs, 42,640 crafted
cookie-ACKs, 294,160 established lookups; trial t2: 44,032 crafted
cookie-ACKs, 600,760 lookups. MIB deltas confirm the cookie path was
genuinely active (SyncookiesSent +29.9k, SyncookiesRecv +2.2k across
both trials), yet both trials ended clean — no splat, no deref. One
open measurement question stays registered, not hand-waved: the
majority of the crafted ACKs fail cookie validation (SyncookiesFailed
+86.6k), and we have not yet isolated whether the child-present path
or the time-bucket behaviour dominates that. Our loopback guest has a
single receive queue, so the published PoC's fragment-spread technique
cannot be exercised here — consistent with KernelCare's
single-RX-queue analysis. (2) The consequence, demonstrated as a
labeled simulation: on an otherwise healthy guest (10 TCP connections,
30/30 ping-pong roundtrips) we injected the equivalent NULL-deref via
the in-kernel crash-injection path (LKDTM, crashtype EXCEPTION, write
to address 0 — the same failure mode as the 0x12 deref in tcp_v4_rcv):
"BUG: kernel NULL pointer dereference", "Oops: 0002 [#1] SMP", "Kernel
panic - not syncing", host gone, all connections dead, no recovery
without reboot. That is the A:H reading of the official CVSS 3.1 7.5
(AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) demonstrated behaviourally — it
is explicitly not the race itself firing.
Scope notes from the same session, in case they help downstream
triage: Android GKI lines 5.15/6.1/6.6 carry no fix (fixed kernels are
6.12.117/6.18.63/7.3.4), so the crash class applies there at kernel
level; the GKI 6.12 line is fixed upstream, with merge level per
Google release. On the BSD side the specific ABA mechanism is
Linux-only (BSD/XNU manage request-socket lifetime differently), but
our adjacent FreeBSD work found a related availability weakness in the
same class: FreeBSD 14 deliberately shares one global budget between
challenge-ACKs and closed-port RSTs (tcp_subr.c
tcp_challenge_ack_check -> badport_bandlim(BANDLIM_TCP_RST), per the
in-source comment), which we measured live as a 44% drop in RST
delivery under challenge load (knee ~130 pps, hard plateau 121-132
rps, reconfirmed on a fresh 14.4 CI-VM; FreeBSD 12/13 and XNU,
per-connection 10/s, unaffected). We are preparing that as a separate
FreeBSD-side report.
Confirmed healthy in the same MPTCP scenarios (counter-verified, both
releases): joins complete normally after a late announce once the
listener serves the announced address (MPJoinAckRx=30/30, round 1);
establishment-time joins (endpoint present before connect,
SIGNAL|SUBFLOW) are 30/30 in the same namespace on 6.12 even after the
block appears, so the join machinery itself is healthy; REMOVE_ADDR
under 50 live subflows tears down gracefully with FIN (no RST) within
~90 ms and re-ADD re-establishes within ~90 ms; endpoint churn under
open joins returns EINVAL (not EBUSY) for in-use ids and works for
inactive ones; 100 announce/join/DELETE churn cycles show zero drift
with TIME_WAIT plateauing (~800) rather than accumulating;
KASAN-instrumented runs of the same scenarios report nothing.
We may well be misreading something in our own setup — the probe is
small and self-contained (static C, netlink + AF_PACKET + getsockopt
only), and we are happy to send it or re-run anything specific,
including against net-next. If it helps, the decisive counters are
EchoAdd vs MPJoinSynTx/MPJoinSynTxCreatSkErr in MPTcpExt
(/proc/net/netstat); a printk or ftrace on the pm.c echo-only branch
under this sequence should settle it quickly.
Defensive-scope note: this is a defensive-security evaluation of the
TCP stack in an authorized lab; all traffic is between our own
namespaces and guests on loopback. No exploit is claimed or provided;
a longer evidence report (per-claim artifact hashes and manifests) is
available on request.
Thanks for your time.
Kind regards,
Johan ter Mors
Security Engineer
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads