# CVE-2026-80866: tipc: avoid busy looping in tipc_exit_net()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-09-04T16:48:11.682Z
- Modified: 2026-10-30T13:20:13.230Z
- Assigned by: Linux

## Description

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

tipc: avoid busy looping in tipc_exit_net()

Blamed commit introduced a busy-wait loop in tipc_exit_net()
to wait for pending UDP bearer cleanup works to complete:

       while (atomic_read(&tn->wq_count))
               cond_resched();

This loop can busy-wait for a long time if cond_resched() is a NOP. This
typically happens if the netns exit is executed by a high priority task,
or under kernels configured without preemption (CONFIG_PREEMPT_NONE). In
such cases, it wastes CPU cycles and can lead to soft lockups.

Fix this by replacing the busy loop with wait_var_event(), allowing the
thread to sleep properly until the work queue count reaches zero.

Accordingly, update cleanup_bearer() to use atomic_dec_and_test() and
wake_up_var() to wake up the waiter when the count drops to zero.

This uses the global wait queue hash table, avoiding the need to bloat
struct tipc_net with a wait_queue_head_t. The atomic_dec_and_test()
provides the necessary memory barrier to ensure the wakeup is not missed.

(As written by CVE List.)

## Affected

- Linux Linux: from 04c26faa51d1e2fe71cf13c45791f5174c37f986 before 772769859226a5b004442403510acb58a1c32e72; from 04c26faa51d1e2fe71cf13c45791f5174c37f986 before 99b82c8452887408ea908fdfa5df33c4a5dfa88f; from 04c26faa51d1e2fe71cf13c45791f5174c37f986 before 110bb16d37bdba03213156c0df37e7119c190936; from 04c26faa51d1e2fe71cf13c45791f5174c37f986 before 7672973957e3e20780afe5937a9fec70b72bc060; from 04c26faa51d1e2fe71cf13c45791f5174c37f986 before 522d1d950b9e3b68190a6de7534827c8dccedb73; from 04c26faa51d1e2fe71cf13c45791f5174c37f986 before c1481c94e74c955e0448ddf46b8615a44d840c1e; d1f76dfadaf8f47ed1753f97dbcbd41c16215ffa; 5195ec5e365a2a9331bfeb585b613a6e94f98dba; b9f5b7ad4ac3af006443f535b1ce7bff1d130d7d; from 5.4.124 before 5.5; from 5.10.42 before 5.11; from 5.12.9 before 5.13; and 1 more (not affected: before 5.13; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.114 up to 6.12.*; from 6.18.57 up to 6.18.*; from 7.1.5 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/772769859226a5b004442403510acb58a1c32e72>
- <https://git.kernel.org/stable/c/99b82c8452887408ea908fdfa5df33c4a5dfa88f>
- <https://git.kernel.org/stable/c/110bb16d37bdba03213156c0df37e7119c190936>
- <https://git.kernel.org/stable/c/7672973957e3e20780afe5937a9fec70b72bc060>
- <https://git.kernel.org/stable/c/522d1d950b9e3b68190a6de7534827c8dccedb73>
- <https://git.kernel.org/stable/c/c1481c94e74c955e0448ddf46b8615a44d840c1e>

## Sources

- CVE List: [CVE-2026-80866](https://www.cve.org/CVERecord?id=CVE-2026-80866), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-80866](https://nvd.nist.gov/vuln/detail/CVE-2026-80866), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-80866 · Whole record: https://cve.day/CVE-2026-80866.json · Rebuilt by cve.day 2026-11-25T22:59:36.366Z
