Commit 741b50f
committed
Merge: CVE-2024-53122 mptcp: cope racing subflow creation in mptcp_rcv_space_adjust
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/5948
CVE: CVE-2024-53122
JIRA: https://issues.redhat.com/browse/RHEL-69670
Upstream status: linus.git
Conflicts: context differs due to c9s missing f410cbe ('tcp: annotate
data-races around tp->window_clamp').
~~~
commit ce7356a
Author: Paolo Abeni <pabeni@redhat.com>
Date: Fri Nov 8 11:58:17 2024 +0100
mptcp: cope racing subflow creation in mptcp_rcv_space_adjust
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 <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://patch.msgid.link/02374660836e1b52afc91966b7535c8c5f7bafb0.1731060874.git.pabeni@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
~~~
Signed-off-by: Patrick Talbert <ptalbert@redhat.com>
Approved-by: Wade Mealing <wmealing@redhat.com>
Approved-by: Davide Caratti <dcaratti@redhat.com>
Approved-by: Ricardo Robaina <rrobaina@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>
Merged-by: Rado Vrbovsky <rvrbovsk@redhat.com>1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2078 | 2078 | | |
2079 | 2079 | | |
2080 | 2080 | | |
2081 | | - | |
| 2081 | + | |
| 2082 | + | |
2082 | 2083 | | |
2083 | 2084 | | |
2084 | 2085 | | |
| |||
0 commit comments