tipc: fix broadcast sender hang on last acker departure
NIST has received this entry but not started reviewing it.
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: tipc_group_bc_cong() returns true as long as grp->bc_ackers is non-zero, and clears *grp->open, which is what tipc_poll() uses to report EPOLLOUT (via tsk->group_is_open). When the last outstanding acker departs before acking, tipc_group_delete_member() decrements grp->bc_ackers 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 TIPC_GROUP_MEMBER_EVTS the leave event delivery calls sk_data_ready() and wakes it, but without member events nothing does and it sleeps indefinitely, since the default send timeout is MAX_SCHEDULE_TIMEOUT. Commit 99cc2a62e07a ("tipc: reject invalid and unexpected GRP_ACK_MSG to prevent bc_ackers 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 GRP_ACK_MSG completion path, and invoke sk->sk_write_space() from tipc_sk_filter_rcv() when the group just became writable again. Also make the ack accounting precise. The delete path used to test less(m->bc_acked, grp->bc_snd_nxt - 1), which also matches members that were never counted for the current replicast (JOINING/LEAVING members keep a stale bc_acked), and the GRP_ACK_MSG handler accepted an ack from any member whose bc_acked differed from the expected value. Either could zero bc_ackers 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 bc_pending 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. bc_acked has no remaining user and is removed. Suggested by Tung Quang Nguyen. This issue was discovered by Tencent CodeBuddy Security.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from 2f487712b89376fce267223bbb0db93d393d4b09, before cefacbf3f4e88dd043b91cff678b69383cc81437; from 2f487712b89376fce267223bbb0db93d393d4b09, before ebbd461bd461d341d0b4869ee5d3aea7f1c83050; from 2f487712b89376fce267223bbb0db93d393d4b09, before 089d6e28f0a9b11abf9d141129b2667908a68261; from 2f487712b89376fce267223bbb0db93d393d4b09, before 8daaf9b4352393f7178f5168e51ea09431ac16ef; from 2f487712b89376fce267223bbb0db93d393d4b09, before cb524d331c23234679c957de3fdee638b909b9f4; from 2f487712b89376fce267223bbb0db93d393d4b09, before 3402ea1ee81cb2cfa61184d6eaffd1e9743c754c; and 2 more | cefacbf3f4e88dd043b91cff678b69383cc81437; ebbd461bd461d341d0b4869ee5d3aea7f1c83050; 089d6e28f0a9b11abf9d141129b2667908a68261; 8daaf9b4352393f7178f5168e51ea09431ac16ef |
| Linux Linux | Software | 4.15 | not recorded |
The 7.5 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | None | The attacker does not need an account or password. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | None | No data can be read. |
| Data changed | None | Nothing can be changed. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 3.9 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 3.6 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 8 sources for this flaw, none tagged as a vendor patch.