CVE-2026-99834: tcp: fix reordering addition overflow in MTU probing
In the Linux kernel, the following vulnerability has been resolved:
tcp: fix reordering addition overflow in MTU probing
Commit efb8763d7bbb ("net: ipv4: bound TCP reordering sysctl writes and MTU probe sizes") widened sizeneeded and the MSS multiplication, but tp->reordering + 1 is still evaluated as u32. RTAXREORDERING accepts an unrestricted u32, and tcpinitmetrics() can install U32MAX.
In that case the extra-data requirement becomes zero. A write queue with probesize - 1 data bytes and a FIN satisfies the sequence-space check. The coalescing walk can pass the queue head to tcpskbcancollapse(), and tcpclonepayload() can produce an skb whose advertised payload exceeds the data in its fragments. Local delivery followed by TCPZEROCOPYRECEIVE can then walk beyond the fragment array. KASAN reports a slab-out-of-bounds read in canmapfrag().
Cast reordering before incrementing it so the arithmetic handles the entire u32 metric range. For U32MAX, the required size exceeds the 32-bit queue and window limits, so the existing checks skip the probe. The calculation is unchanged for all other reordering values.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Cast reordering before incrementing it so the arithmetic handles the entire u32 metric range.