CVE-2026-99955: tipc: fix broadcast sender hang on last acker departure
In the Linux kernel, the following vulnerability has been resolved:
tipc: fix broadcast sender hang on last acker departure
TIPC group broadcast senders are blocked while a replicast still has outstanding member acks: tipcgroupbccong() returns true as long as grp->bcackers is non-zero, and clears grp->open, which is what tipcpoll() uses to report EPOLLOUT (via tsk->groupisopen).
When the last outstanding acker departs before acking, tipcgroupdeletemember() decrements grp->bcackers to zero but never restores grp->open. As a result poll(EPOLLOUT) never fires again. A writer blocked in sendmsg() is only released if some other wakeup happens after the deletion: with TIPCGROUPMEMBEREVTS the leave event delivery calls skdataready() and wakes it, but without member events nothing does and it sleeps indefinitely, since the default send timeout is MAXSCHEDULETIMEOUT.
Commit 99cc2a62e07a ("tipc: reject invalid and unexpected GRPACKMSG to prevent bcackers underflow") already calls this out in its changelog as a pre-existing issue.
Restore the open state exactly on the 1->0 transition in the delete path, mirroring the GRPACKMSG completion path, and invoke sk->skwritespace() from tipcskfilterrcv() when the group just became writable again.
Also make the ack accounting precise. The delete path used to test less(m->bcacked, grp->bcsndnxt - 1), which also matches members that were never counted for the current replicast (JOINING/LEAVING members keep a stale bcacked), and the GRPACKMSG handler accepted an ack from any member whose bcacked differed from the expected value. Either could zero bcackers on behalf of a member that owes nothing and silently void an ack still owed by a real acker. Track whether a member owes an ack for the current replicast in a new per-member bcpending flag, set when the member is counted and cleared when its ack arrives, and use it both to accept an ack and to decide on deletion. bcacked has no remaining user and is removed. Suggested by Tung Quang Nguyen.
This issue was discovered by Tencent CodeBuddy Security.
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In Linux kernel TIPC, restore *grp->open on the 1-to-0 transition in tipc_group_delete_member(); when the group becomes writable, call sk_write_space() from tipc_sk_filter_rcv() so blocked senders are woken.
- Compensating control
Track whether each TIPC group member owes an ack for the current replicast with a per-member bc_pending flag: set it when the member is counted, clear it when removed or when its ack arrives, and use it to validate acknowledgments and keep bc_ackers accounting precise.