Skip to contentSkip to conversation

CVE-2026-97524: mptcp: avoid unneeded actions on subflow reset

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 25

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-97524 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.12 with commit e32d262c89e2b22cb0640223f953b548617ed8a6 and fixed in 6.12.111 with commit 4b7abdcb5ba832fafab679f0d998af39cbc99307
	Issue introduced in 6.12 with commit e32d262c89e2b22cb0640223f953b548617ed8a6 and fixed in 6.18.53 with commit b2dbcc1ed48b5ac070a41db4a52aade6823c4df0
	Issue introduced in 6.12 with commit e32d262c89e2b22cb0640223f953b548617ed8a6 and fixed in 7.2.7 with commit ce7e4ede01ed3e47a48c0f1ce1d87bf4864bee9f
	Issue introduced in 6.12 with commit e32d262c89e2b22cb0640223f953b548617ed8a6 and fixed in 7.3-rc4 with commit 2b0f561f21b27c40c91ea4975268a06092bd7e9c
	Issue introduced in 5.10.228 with commit fde99e972b8f88cebe619241d7aa43d288ef666a
	Issue introduced in 5.15.169 with commit 12c1676d598e3b8dd92a033b623b792cc2ea1ec5
	Issue introduced in 6.1.113 with commit 35668f8ec84f6c944676e48ecc6bbc5fc8e6fe25
	Issue introduced in 6.6.57 with commit b8be15d1ae7ea4eedd547c3b3141f592fbddcd30
	Issue introduced in 6.11.4 with commit 8bfd391bde685df7289b928ce8876a3583be4bfb

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-97524

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
net/mptcp/protocol.c
net/mptcp/protocol.h
net/mptcp/subflow.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/4b7abdcb5ba832fafab679f0d998af39cbc99307
	https://git.kernel.org/stable/c/b2dbcc1ed48b5ac070a41db4a52aade6823c4df0
	https://git.kernel.org/stable/c/ce7e4ede01ed3e47a48c0f1ce1d87bf4864bee9f
	https://git.kernel.org/stable/c/2b0f561f21b27c40c91ea4975268a06092bd7e9c