Commit c58cea1
committed
mptcp: cope racing subflow creation in mptcp_rcv_space_adjust
jira VULN-46444
cve CVE-2024-53122
commit-author Paolo Abeni <[email protected]>
commit ce7356a
Additional active subflows - i.e. created by the in kernel path
manager - are included into the subflow list before starting the
3whs.
A racing recvmsg() spooling data received on an already established
subflow would unconditionally call tcp_cleanup_rbuf() on all the
current subflows, potentially hitting a divide by zero error on
the newly created ones.
Explicitly check that the subflow is in a suitable state before
invoking tcp_cleanup_rbuf().
Fixes: c76c695 ("mptcp: call tcp_cleanup_rbuf on subflows")
Signed-off-by: Paolo Abeni <[email protected]>
Reviewed-by: Matthieu Baerts (NGI0) <[email protected]>
Link: https://patch.msgid.link/02374660836e1b52afc91966b7535c8c5f7bafb0.1731060874.git.pabeni@redhat.com
Signed-off-by: Jakub Kicinski <[email protected]>
(cherry picked from commit ce7356a)
Signed-off-by: Anmol Jain <[email protected]>1 parent 201ea9b commit c58cea1
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2041 | 2041 | | |
2042 | 2042 | | |
2043 | 2043 | | |
2044 | | - | |
| 2044 | + | |
| 2045 | + | |
2045 | 2046 | | |
2046 | 2047 | | |
2047 | 2048 | | |
| |||
0 commit comments