Skip to contentSkip to conversation

CVE-2026-99054: tipc: destroy topsrv workqueues before closing connections

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 23

lore
Share & tools
lore
#0 lore raw

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

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

In the Linux kernel, the following vulnerability has been resolved:

tipc: destroy topsrv workqueues before closing connections

tipc_topsrv_stop() closed subscriber connections while the topology server's send and receive workqueues were still running. Socket callbacks and subscription events could then queue more work, and in-flight send/recv work could drop the last connection reference during the conn_idr walk.

That race produced several teardown failures: refcount_t addition on 0 from conn_get() on a connection whose release was blocked on idr_lock, a subsequent use-after-free in tipc_conn_close(), queue_work() on an already destroyed workqueue from the listener data-ready callback, and an RCU stall in tipc_topsrv_exit_net() while the walk spun under idr_lock.

Clear srv->listener under idr_lock so it acts as a shutdown flag, skip queue_work() once it is NULL, destroy the workqueues to flush in-flight work, and only then close the remaining connections. Refuse tipc_conn_lookup() after that flag is cleared, and drop idr_lock when the teardown walk finds no connection, so an in-flight subscription event cannot pin idr_in_use while the walk holds the lock.

v3 supersedes the narrower in-thread diff Tung Quang Nguyen posted on 2026-09-23. It keeps his teardown order and adds the lookup refusal and the empty-idr unlock.

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

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

	Issue introduced in 3.11 with commit c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f and fixed in 6.6.160 with commit 7f796bb3b440d7f1b14c0e3b520462eb34f553af
	Issue introduced in 3.11 with commit c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f and fixed in 6.12.113 with commit da9c16568bc79140a54c1f5fcf07a0305df47b37
	Issue introduced in 3.11 with commit c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f and fixed in 6.18.57 with commit 0af8780bdfdfc91fb9127bddb9c48fab67dc9d9e
	Issue introduced in 3.11 with commit c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f and fixed in 7.2.11 with commit fb717c536af2aafeca520ff11d1e0f25f7ab8fa9
	Issue introduced in 3.11 with commit c5fa7b3cf3cb22e4ac60485fc2dc187fe012910f and fixed in 7.3 with commit 3acdd44385bc7e2e57605e073691ce69cc5a960d

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

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/tipc/topsrv.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/7f796bb3b440d7f1b14c0e3b520462eb34f553af
	https://git.kernel.org/stable/c/da9c16568bc79140a54c1f5fcf07a0305df47b37
	https://git.kernel.org/stable/c/0af8780bdfdfc91fb9127bddb9c48fab67dc9d9e
	https://git.kernel.org/stable/c/fb717c536af2aafeca520ff11d1e0f25f7ab8fa9
	https://git.kernel.org/stable/c/3acdd44385bc7e2e57605e073691ce69cc5a960d