mptcp: avoid unneeded actions on subflow reset
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e32d262c89e2b22cb0640223f953b548617ed8a6 · < b2dbcc1ed48b5ac070a41db4a52aade6823c4df0| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
mptcp: avoid unneeded actions on subflow reset
Once in a blue moon, the mptcp receive path can recursively call mptcp_data_ready() via state change under unlucky error conditions, and then try to hold the data lock again.
Break the recursion loop explicitly checking for the exceptional condition.
Add a new flag instead of using an existing one like 'closing', to exit early in subflow_state_change(), and explicitly flush the RX queue at reset time.
This avoids unneeded processing to check for available data -- calling get_mapping_status() and more on a dying subflow -- but also in error reporting and worker scheduling.
Note that we must consume the currently peeked skb before invoking mptcp_dss_corruption to avoid consuming it again after the eventual reset has freed it.
From the CVE record · Linux
Under rare error conditions, the Linux kernel MPTCP receive path can recursively call mptcp_data_ready() and try to acquire the data lock again. The input does not establish an attacker-triggered outcome or specify whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel with MPTCP should check their installations; affected versions are not specified.