CVE-2026-139218: tipc: fix use-after-free of broadcast reception link at node release

Published Nov 30, 2026
·
Updated

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

tipc: fix use-after-free of broadcast reception link at node release

When the last reference to a tipcnode is dropped, the node itself is deferred to the RCU callback tipcnodefree(), but the nested broadcast reception link, n->bcentry.link, is kfree()d synchronously in tipcnodekrefrelease(), before callrcu(), and the pointer is never cleared. Readers that obtained the node from nodelist and then dereference bcentry.link deep into the link (tipclinkname() in tipcnlnoderesetlinkstats(), bcl->name/stats in tipcnladdbclink() on the link dump path) therefore touch freed memory although the enclosing node stays alive for a full grace period. The sibling per-bearer links get "kfree + NULL" under the node write lock in tipcnodeclearlinks(); the broadcast entry was missed.

The race is reachable through the node cleanup timer: once a peer has been unreachable for NODECLEANUPAFTER (300 s), tipcnodetimeout() -> tipcnodecleanup() unlinks the node under the write lock, and the final tipcnodeput() at the caller runs outside nodelistlock, so the kfree executes in timer softirq context, concurrently with genl dump/ reset walkers that hold only rcureadlock(). (A netlink "peer remove" cannot race those walkers itself: tipcgenlfamily has no parallelops, so all doit/dumpit calls serialize on the global genl lock.)

Reproduced in a QEMU/KVM guest running v7.3.0 with KASAN and PREEMPT(full): 10 TIPC peer namespaces on veth bearers, bearer removal staggered so the 300 s node cleanup timers expire while other tasks loop link dumps with the broadcast filter and reset-link-stats lookups. KASAN hit within two cleanup cycles:

BUG: KASAN: slab-use-after-free in strlen+0x85/0xa0 Read of size 1 at addr ffff88800b54a004 by task poceth/371 strlen+0x85/0xa0 tipcnladdbclink+0x2f9/0xd40 tipcnladdnodelinks+0x10c/0x140 tipcnlnodedumplink+0x8d5/0xd50 Freed by task 0: kfree+0x121/0x380 tipcnodetimeout+0xa33/0xcf0 runtimersoftirq+0x144/0x250 sysvecapictimerinterrupt

with the freed object being the kmalloc-1k tipclink allocated by tipclinkbccreate() during peer discovery. The same defect fires in strcmp() called from tipcnlnoderesetlinkstats().

Move the kfree of n->bcentry.link into the tipcnodefree() RCU callback so the broadcast link lives exactly as long as the enclosing node. All readers are covered: the netlink walkers are inside rcureadlock(), and the packet reception path reaches the node via tipcnodefind(), whose kref defers krefrelease itself.

Found during a static-analysis-assisted audit: candidate sites were surfaced by a Coccinelle rule, and the reader/writer paths were confirmed by LLM-assisted (GLM-5.3) code inspection.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Defer freeing n->bc_entry.link to the tipc_node_free() RCU callback instead of freeing it synchronously in tipc_node_kref_release().

Event History

Nov 30, 2026
CVE Published
via MITRE·01:32 PM
Data Sourced
via MITRE·01:32 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203