Skip to contentSkip to conversation

CVE-2026-99603: mptcp: pm: kernel: use RCU to free endpoint listeners

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 20

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: pm: kernel: use RCU to free endpoint listeners

mptcp_pm_nl_create_listen_socket() starts the TCP listener directly instead of going through mptcp_listen(). It consequently misses setting SOCK_RCU_FREE on the parent MPTCP socket.

tcp_child_process() can invoke the listener's subflow_data_ready() callback without holding the MPTCP parent lock or a reference to the parent. An authenticated MP_JOIN racing with endpoint teardown can therefore access the parent after its last reference has been dropped. The ADD_ADDR error path can also close an already published listener.

Set SOCK_RCU_FREE before __inet_listen_sk() publishes the TCP listener, matching mptcp_listen(). This protects the parent on every subsequent close path, including a failed endpoint addition.

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

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

	Issue introduced in 5.12 with commit 1729cf186d8a5d70cf7a54e07c4763635079f015 and fixed in 6.12.118 with commit 2004c8fdb1b588188f6a17398782da4551f22be5
	Issue introduced in 5.12 with commit 1729cf186d8a5d70cf7a54e07c4763635079f015 and fixed in 6.18.64 with commit c457824f76e95e10356c35c61ffc9d79b8c54228
	Issue introduced in 5.12 with commit 1729cf186d8a5d70cf7a54e07c4763635079f015 and fixed in 7.3.5 with commit 78856ded7ec7995e8a05cdc9d08df4c5a62479aa
	Issue introduced in 5.12 with commit 1729cf186d8a5d70cf7a54e07c4763635079f015 and fixed in 7.4-rc2 with commit 49b09ae0bf57b4230187d4cdd0a370558e44a6e8

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-99603

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/pm_kernel.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/2004c8fdb1b588188f6a17398782da4551f22be5
	https://git.kernel.org/stable/c/c457824f76e95e10356c35c61ffc9d79b8c54228
	https://git.kernel.org/stable/c/78856ded7ec7995e8a05cdc9d08df4c5a62479aa
	https://git.kernel.org/stable/c/49b09ae0bf57b4230187d4cdd0a370558e44a6e8