CVE-2026-139218
published high CVSS 3.1 · 7.8tipc: fix use-after-free of broadcast reception link at node release
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxd25a01257e422a4bdeb426f69529d57c73b235fe to < 970c0081de51a3025db135d966fab5f588113afa · d25a01257e422a4bdeb426f69529d57c73b235fe to < 951c5b16f65143b6aaa40aeb3189ffb97e444d90 · d25a01257e422a4bdeb426f69529d57c73b235fe to < f3ddb30b531230ef757f1fa642498677f4474e50 · d25a01257e422a4bdeb426f69529d57c73b235fe to < 2a4c7cdbaf1623f09c71ab20434cc637c2bbc994 · d25a01257e422a4bdeb426f69529d57c73b235fe to < 4da2e019ad2f3b07523717731eb3f7b793b3db2f · d25a01257e422a4bdeb426f69529d57c73b235fe to < a8cf5f0799fc014c49f016651293a93f9b433898 · d25a01257e422a4bdeb426f69529d57c73b235fe to < 11c64df89050b7e1b84b2605b62c1a83641b13fe · d25a01257e422a4bdeb426f69529d57c73b235fe to < 473167593f42551ce6b00c05cee8cd20309d45ac · 6862fa9077dea0ec2ba5e6ea7c7f90b786288596 · 4.4.64 to < 4.5 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.6 (affected) · 0 to < 4.6 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
Description
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 tipc_node is dropped, the node itself is deferred to the RCU callback tipc_node_free(), but the nested broadcast reception link, n->bc_entry.link, is kfree()d synchronously in tipc_node_kref_release(), before call_rcu(), and the pointer is never cleared. Readers that obtained the node from node_list and then dereference bc_entry.link deep into the link (tipc_link_name() in tipc_nl_node_reset_link_stats(), bcl->name/stats in tipc_nl_add_bc_link() 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 tipc_node_clear_links(); the broadcast entry was missed. The race is reachable through the node cleanup timer: once a peer has been unreachable for NODE_CLEANUP_AFTER (300 s), tipc_node_timeout() -> tipc_node_cleanup() unlinks the node under the write lock, and the final tipc_node_put() at the caller runs outside node_list_lock, so the kfree executes in timer softirq context, concurrently with genl dump/ reset walkers that hold only rcu_read_lock(). (A netlink "peer remove" cannot race those walkers itself: tipc_genl_family has no parallel_ops, 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 poc_eth/371 strlen+0x85/0xa0 tipc_nl_add_bc_link+0x2f9/0xd40 __tipc_nl_add_node_links+0x10c/0x140 tipc_nl_node_dump_link+0x8d5/0xd50 Freed by task 0: kfree+0x121/0x380 tipc_node_timeout+0xa33/0xcf0 run_timer_softirq+0x144/0x250 sysvec_apic_timer_interrupt with the freed object being the kmalloc-1k tipc_link allocated by tipc_link_bc_create() during peer discovery. The same defect fires in strcmp() called from tipc_nl_node_reset_link_stats(). Move the kfree of n->bc_entry.link into the tipc_node_free() RCU callback so the broadcast link lives exactly as long as the enclosing node. All readers are covered: the netlink walkers are inside rcu_read_lock(), and the packet reception path reaches the node via tipc_node_find(), whose kref defers kref_release 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The freed bc_entry.link is dereferenced only by local NETLINK_GENERIC handlers: the TIPC_NL_LINK_GET dump (tipc_nl_node_dump_link -> __tipc_nl_add_node_links -> tipc_nl_add_bc_link) and TIPC_NL_LINK_RESET_STATS (tipc_nl_node_reset_link_stats). A remote peer can create and abandon the node so tipc_node_kref_release() frees the link, but it cannot issue those netlink calls. AC:L - One local attacker links two of its own netns with TIPC over veth, stops one peer so delete_at is set, and loops broadcast-filtered LINK_GET dumps while tipc_node_timeout()->tipc_node_cleanup() drops the last ref and kfree()s the link. Both sides are attacker-driven and repeatable; KASAN hit within two cleanup cycles. Only premise: a host already running TIPC (tipc.ko lacks an autoload alias). PR:L - TIPC_NL_LINK_GET has no permission flag. TIPC_NL_BEARER_ENABLE/DISABLE and TIPC_NL_LINK_RESET_STATS are GENL_UNS_ADMIN_PERM on a netnsok family, so an unprivileged user gets the needed rights in its own netns via unshare -Urn. UI:N - The attacker creates and stops its own TIPC peers and issues the racing netlink dump/reset requests itself; no other user or administrator action is involved. S:U - The use-after-free is on a host-kernel kmalloc-1k tipc_link allocated by tipc_link_bc_create(); the impact stays in the same kernel and crosses no VM, IOMMU or sandbox boundary. C:H - tipc_nl_add_bc_link() copies bcl->name, bcl->max_win and 18 u32 fields of bcl->stats from the freed link into the attacker's netlink reply. Once the kmalloc-1k slot is reclaimed, that reply returns another kernel object's contents to userspace. I:H - tipc_bclink_reset_stats() -> tipc_link_reset_stats() memsets 132 bytes of l->stats inside the freed link, zeroing a fixed range of whatever object reclaims the kmalloc-1k slot; that corruption can be groomed against an attacker-chosen object. A:H - KASAN reports a slab-use-after-free in strlen() from tipc_nl_add_bc_link() and in strcmp() from tipc_nl_node_reset_link_stats(). Without KASAN a reclaimed, non-terminated name or corrupted object can oops the kernel, and new peers can repeat the trigger.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | d25a01257e422a4bdeb426f69529d57c73b235fe to < 970c0081de51a3025db135d966fab5f588113afa (affected · git)d25a01257e422a4bdeb426f69529d57c73b235fe to < 951c5b16f65143b6aaa40aeb3189ffb97e444d90 (affected · git)d25a01257e422a4bdeb426f69529d57c73b235fe to < f3ddb30b531230ef757f1fa642498677f4474e50 (affected · git)d25a01257e422a4bdeb426f69529d57c73b235fe to < 2a4c7cdbaf1623f09c71ab20434cc637c2bbc994 (affected · git)d25a01257e422a4bdeb426f69529d57c73b235fe to < 4da2e019ad2f3b07523717731eb3f7b793b3db2f (affected · git)d25a01257e422a4bdeb426f69529d57c73b235fe to < a8cf5f0799fc014c49f016651293a93f9b433898 (affected · git)d25a01257e422a4bdeb426f69529d57c73b235fe to < 11c64df89050b7e1b84b2605b62c1a83641b13fe (affected · git)d25a01257e422a4bdeb426f69529d57c73b235fe to < 473167593f42551ce6b00c05cee8cd20309d45ac (affected · git)6862fa9077dea0ec2ba5e6ea7c7f90b786288596 (affected · git)4.4.64 to < 4.5 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 4.6 (affected)0 to < 4.6 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/11c64df89050b7e1b84b2605b62c1a83641b13fe
- https://git.kernel.org/stable/c/2a4c7cdbaf1623f09c71ab20434cc637c2bbc994
- https://git.kernel.org/stable/c/473167593f42551ce6b00c05cee8cd20309d45ac
- https://git.kernel.org/stable/c/4da2e019ad2f3b07523717731eb3f7b793b3db2f
- https://git.kernel.org/stable/c/951c5b16f65143b6aaa40aeb3189ffb97e444d90
- https://git.kernel.org/stable/c/970c0081de51a3025db135d966fab5f588113afa
- https://git.kernel.org/stable/c/a8cf5f0799fc014c49f016651293a93f9b433898
- https://git.kernel.org/stable/c/f3ddb30b531230ef757f1fa642498677f4474e50
Provider assertions
1Linux · cna
tipc: fix use-after-free of broadcast reception link at node release
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 91d210e4fad58ba709f9d10d0b684c16b84ae6907fe4b714c92410acabd47075
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record