mptcp: cope racing subflow creation in mptcp_rcv_space_adjust
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
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().
From the CVE record · Linux
A race in the Linux kernel’s MPTCP receive-space adjustment can cause a divide-by-zero error. It can occur when a local recvmsg() call processes data on an established subflow while the kernel creates another subflow; the input does not specify an authentication requirement.
Engineers running Linux kernels with MPTCP should check their exposure; affected versions are not specified.