Linux
mptcp: avoid unneeded actions on subflow reset
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= fde99e972b8f88cebe619241d7aa43d288ef666a, < 6d669c740933124eae3df8cfc15995af9bcc6aba
- >= 12c1676d598e3b8dd92a033b623b792cc2ea1ec5, < 83a7dcdd2b1060484528da70a643125174d47e5a
- >= 35668f8ec84f6c944676e48ecc6bbc5fc8e6fe25, < a370e56024df0b07e3120c45a9773ae123819fd6
- >= b8be15d1ae7ea4eedd547c3b3141f592fbddcd30, < 1962841387087970d75ba8b8d4c2aa2d45705e50
- >= e32d262c89e2b22cb0640223f953b548617ed8a6, < 4b7abdcb5ba832fafab679f0d998af39cbc99307
- >= e32d262c89e2b22cb0640223f953b548617ed8a6, < b2dbcc1ed48b5ac070a41db4a52aade6823c4df0
- >= e32d262c89e2b22cb0640223f953b548617ed8a6, < ce7e4ede01ed3e47a48c0f1ce1d87bf4864bee9f
- >= e32d262c89e2b22cb0640223f953b548617ed8a6, < 2b0f561f21b27c40c91ea4975268a06092bd7e9c
- 8bfd391bde685df7289b928ce8876a3583be4bfb
- >= 5.10.228, < 5.10.271
- >= 5.15.169, < 5.15.222
- >= 6.1.113, < 6.1.189
- >= 6.6.57, < 6.6.158
- >= 6.11.4, < 6.12
Fixed in 6d669c740933124eae3df8cfc15995af9bcc6aba, 83a7dcdd2b1060484528da70a643125174d47e5a, a370e56024df0b07e3120c45a9773ae123819fd6, 1962841387087970d75ba8b8d4c2aa2d45705e50, 4b7abdcb5ba832fafab679f0d998af39cbc99307, b2dbcc1ed48b5ac070a41db4a52aade6823c4df0, ce7e4ede01ed3e47a48c0f1ce1d87bf4864bee9f, 2b0f561f21b27c40c91ea4975268a06092bd7e9c, 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12
- 6.12
Fixed in 0, 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.111, 6.18.53, 7.2.7, 7.3
Mitigation
Upgrade Linux to 6d669c740933124eae3df8cfc15995af9bcc6aba or 83a7dcdd2b1060484528da70a643125174d47e5a or a370e56024df0b07e3120c45a9773ae123819fd6 or 1962841387087970d75ba8b8d4c2aa2d45705e50 or 4b7abdcb5ba832fafab679f0d998af39cbc99307 or b2dbcc1ed48b5ac070a41db4a52aade6823c4df0 or ce7e4ede01ed3e47a48c0f1ce1d87bf4864bee9f or 2b0f561f21b27c40c91ea4975268a06092bd7e9c or 5.10.271 or 5.15.222 or 6.1.189 or 6.6.158 or 6.12 or later.
Upgrade Linux to 0 or 5.10.271 or 5.15.222 or 6.1.189 or 6.6.158 or 6.12.111 or 6.18.53 or 7.2.7 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.