Skip to contentSkip to conversation

CVE-2026-46170: mptcp: pm: ADD_ADDR rtx: free sk if last

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 28

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: ADD_ADDR rtx: free sk if last

When an ADD_ADDR is retransmitted, the sk is held in sk_reset_timer(), and released at the end.

If at that moment, it was the last reference being held, the sk would not be freed. sock_put() should then be called instead of __sock_put().

But that's not enough: if it is the last reference, sock_put() will call sk_free(), which will end up calling sk_stop_timer_sync() on the same timer, and waiting indefinitely to finish. So it is needed to mark that the timer is done at the end of the timer handler when it has not been rescheduled, not to call sk_stop_timer_sync() on "itself".

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

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

	Issue introduced in 5.10 with commit 00cfd77b9063dcdf3628a7087faba60de85a9cc8 and fixed in 6.18.30 with commit b74ad20198652b6b39a761c277ba65ae82b1e107
	Issue introduced in 5.10 with commit 00cfd77b9063dcdf3628a7087faba60de85a9cc8 and fixed in 7.0.7 with commit 8143a224785ceaf2b0856e08d4498916f38228fb
	Issue introduced in 5.10 with commit 00cfd77b9063dcdf3628a7087faba60de85a9cc8 and fixed in 7.1-rc3 with commit b7b9a461569734d33d3259d58d2507adfac107ed

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

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.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/b74ad20198652b6b39a761c277ba65ae82b1e107
	https://git.kernel.org/stable/c/8143a224785ceaf2b0856e08d4498916f38228fb
	https://git.kernel.org/stable/c/b7b9a461569734d33d3259d58d2507adfac107ed