Description
In the Linux kernel, the following vulnerability has been resolved: mptcp: reject DATA_ACKs against a reversed send interval ack_update_msk() samples snd_nxt before taking the data lock, but reads snd_una after taking it. Concurrent transmission and ACK processing can therefore leave the sampled upper bound behind snd_una. Active-open completion also exposes a reversed interval when it initializes snd_una to IDSN + 1 while the socket-owned state synchronization is deferred. A peer-supplied 64-bit Data ACK half a sequence space away can pass both wraparound comparisons against such an interval. The resulting snd_una can make __mptcp_retrans() inflate a fragment's already_sent field. Later ACKs can then underflow data_len and cause out-of-bounds page fragments to be passed to TCP. Read snd_nxt after acquiring the data lock and reject reversed intervals before checking the received Data ACK. This keeps the interval shorter than half the sequence space, so the existing upper-bound check cannot accept an advance beyond snd_nxt. Preserve the existing handling of old ACKs and keep the transmit fields under their existing socket locking.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
7439d687b79cbbd971c6a170be9aefda4a564be4 to < 51f7bcee744439ab2aad3ad3b48e82ab9734c976affected7439d687b79cbbd971c6a170be9aefda4a564be4 to < f0807a007264d349e3c16d1cbb6c78b471434430affected7439d687b79cbbd971c6a170be9aefda4a564be4 to < 708599d7070f8274f36a6eabe16ce379413a552caffected7439d687b79cbbd971c6a170be9aefda4a564be4 to < 21417a6a763bb2effde3fb319a11ef22253d8214affected7439d687b79cbbd971c6a170be9aefda4a564be4 to < d75e5cd72995ec2fa77ec77a593cea28e2490ff1affected
Linux Linux
Default version status: affected
5.11affected0 to < 5.11unaffected5.15.227 to ≤ 5.15.*unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/51f7bcee744439ab2aad3ad3b48e82ab9734c976 ↗
- https://git.kernel.org/stable/c/f0807a007264d349e3c16d1cbb6c78b471434430 ↗
- https://git.kernel.org/stable/c/708599d7070f8274f36a6eabe16ce379413a552c ↗
- https://git.kernel.org/stable/c/21417a6a763bb2effde3fb319a11ef22253d8214 ↗
- https://git.kernel.org/stable/c/d75e5cd72995ec2fa77ec77a593cea28e2490ff1 ↗