Description
In the Linux kernel, the following vulnerability has been resolved: sctp: fix I-FORWARD-TSN handling of fragments on other streams sctp_report_iftsn() incorrectly frees queued I-DATA fragments in two cases. First, it drops any queued fragments with TSN less than or equal to the New Cumulative TSN. This prevents reconstruction of messages still being received on other streams and can fully block an ordered stream. Second, it calls sctp_intl_abort_pd() if the New Cumulative TSN equals the highest TSN seen. This check exists for association resets but can be inadvertently triggered by any I-FORWARD-TSN that arrives before data with a higher TSN, causing data loss and, if a partial delivery is in progress on an ordered stream, an aborted association. Fix the first by freeing fragments from sctp_intl_skip() based on stream, U bit, and MID instead of TSN. Fix the second by moving the call to sctp_intl_abort_pd() from sctp_report_iftsn() to the corresponding reset handlers. Observed in real use as unexpected message loss. Reproduced on an unmodified kernel with the sctp_ifwdtsn.sh selftest added later in this series, which passes with this fix. Reproduction and fix done with AI assistance.
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
47b20a88566f89dd0cc80c46f59ce0a12259d404 to < b5ea67993313281c3529ce0c3eb89e767dd3d34aaffected47b20a88566f89dd0cc80c46f59ce0a12259d404 to < 9f1ec9c07b3783958572eacab5ce60fdf208974eaffected47b20a88566f89dd0cc80c46f59ce0a12259d404 to < b44c185d339b1aadc9b53ed5fd58dd8412e5138aaffected47b20a88566f89dd0cc80c46f59ce0a12259d404 to < 369cff97fb5497267c7984e178434d68feb0e419affected47b20a88566f89dd0cc80c46f59ce0a12259d404 to < 19dd36cab64a42c0136097a66df579bc75e1030aaffected47b20a88566f89dd0cc80c46f59ce0a12259d404 to < 5b9cfc6491a6e32e7315dc222992c7dbd5baa3e9affected
Linux Linux
Default version status: affected
4.16affected0 to < 4.16unaffected5.10.276 to ≤ 5.10.*unaffected5.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/b5ea67993313281c3529ce0c3eb89e767dd3d34a ↗
- https://git.kernel.org/stable/c/9f1ec9c07b3783958572eacab5ce60fdf208974e ↗
- https://git.kernel.org/stable/c/b44c185d339b1aadc9b53ed5fd58dd8412e5138a ↗
- https://git.kernel.org/stable/c/369cff97fb5497267c7984e178434d68feb0e419 ↗
- https://git.kernel.org/stable/c/19dd36cab64a42c0136097a66df579bc75e1030a ↗
- https://git.kernel.org/stable/c/5b9cfc6491a6e32e7315dc222992c7dbd5baa3e9 ↗