HIGH Introduced in 4.19
tipc NodeRef UAF
CVE-2026-99053
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI6.7MEDIUM
01Description
In the Linux kernel, the following vulnerability has been resolved: tipc: hold a reference to nodes found by link name tipc_node_find_by_name() returns a node after dropping its RCU read lock without taking a reference. The LINK_SET, LINK_GET and LINK_RESET_STATS handlers then lock and access the node, racing with timer-driven cleanup of a down peer. Generic netlink serialization does not exclude the node timer. The following interleaving can leave a handler using a freed node: CPU 0: find the node under RCU and release the node read lock CPU 1: tipc_node_timeout() clears the links and unlinks the down node CPU 1: drop the list and timer references, queuing tipc_node_free() CPU 0: leave the RCU read-side critical section CPU 1: complete the grace period and free the node CPU 0: acquire the node lock through the stale pointer LINK_SET also uses the node's media address after releasing the node lock, when passing queued packets to tipc_bearer_xmit(). KASAN on v7.3-rc5 reported: BUG: KASAN: slab-use-after-free in _raw_read_lock_bh Write of size 4 at addr ffff88807e06f008 by task poc/92 Call Trace: _raw_read_lock_bh kernel/locking/spinlock.c:287 tipc_nl_node_set_link net/tipc/node.c:2475 genl_family_rcv_msg_doit net/netlink/genetlink.c:1114 genl_rcv_msg net/netlink/genetlink.c:1209 netlink_rcv_skb net/netlink/af_netlink.c:2575 Allocated by task 0: tipc_node_create net/tipc/node.c:539 tipc_node_check_dest net/tipc/node.c:1196 tipc_disc_rcv net/tipc/discover.c:252 Freed by task 92: kfree mm/slub.c:6801 rcu_core kernel/rcu/tree.c:2919 Last potentially related work creation: __call_rcu_common.constprop.0 kernel/rcu/tree.c:3181 tipc_node_timeout net/tipc/node.c:814 Acquire a reference to the selected node with kref_get_unless_zero() before leaving RCU, returning NULL if the node has already been released. Release that reference on every caller exit after the last node access, including transmission in LINK_SET. Keep the existing link lookup order and locking so concurrent link removal still takes the existing error paths.
02KernelScan AI Analysis
Risk summary
A local attacker with CAP_NET_ADMIN (obtainable in an unprivileged user namespace) can trigger a use-after-free in the TIPC subsystem by racing netlink link-management commands against the node cleanup timer. Successful exploitation yields arbitrary kernel memory read/write and privilege escalation, but requires winning a narrow race window.
Vulnerability analysis
The function tipc_node_find_by_name() locates a TIPC node under RCU protection but drops the RCU read lock without incrementing the node's reference count. Callers handling the LINK_SET, LINK_GET, and LINK_RESET_STATS netlink commands then lock and dereference the returned pointer, while a concurrent timer callback (tipc_node_timeout) can unlink and free the same node after its grace period expires. The fix makes tipc_node_find_by_name() acquire a kref before leaving RCU (returning NULL if the node is already being freed) and adds matching tipc_node_put() calls in all three netlink handlers after their last node access, including after packet transmission in LINK_SET. The vulnerability is reachable only from a local context via Generic Netlink and requires CAP_NET_ADMIN, which an unprivileged process can hold inside a user namespace.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 4.19 | 5.10.273 | 384edc67201f |
| 5.15 | 4.19 | 5.15.224 | 5b7e58e8be90 |
| 6.1 | 4.19 | 6.1.191 | 92f3b3368722 |
| 6.12 | 4.19 | 6.12.113 | f17e70206a1e |
| 6.18 | 4.19 | 6.18.57 | 1428c5f1d346 |
| 6.6 | 4.19 | 6.6.160 | b60259d4047f |
| 7.2 | 4.19 | 7.2.11 | 3c3b308ee6e2 |
| mainline | 4.19 | 7.3 | 17e73bae400f |
| cip/6.12 | 4.19 | 6.12.114-cip34 | f17e70206a1e |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.114-cip34 |
| cip/6.1 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip136) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip136-rt50) |