{"id":"CVE-2026-139218","summary":"tipc: fix use-after-free of broadcast reception link at node release","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ntipc: fix use-after-free of broadcast reception link at node release\n\nWhen the last reference to a tipc_node is dropped, the node itself is\ndeferred to the RCU callback tipc_node_free(), but the nested broadcast\nreception link, n-\u003ebc_entry.link, is kfree()d synchronously in\ntipc_node_kref_release(), before call_rcu(), and the pointer is never\ncleared.  Readers that obtained the node from node_list and then\ndereference bc_entry.link deep into the link (tipc_link_name() in\ntipc_nl_node_reset_link_stats(), bcl-\u003ename/stats in\ntipc_nl_add_bc_link() on the link dump path) therefore touch freed\nmemory although the enclosing node stays alive for a full grace period.\nThe sibling per-bearer links get \"kfree + NULL\" under the node write\nlock in tipc_node_clear_links(); the broadcast entry was missed.\n\nThe race is reachable through the node cleanup timer: once a peer has\nbeen unreachable for NODE_CLEANUP_AFTER (300 s), tipc_node_timeout() -\u003e\ntipc_node_cleanup() unlinks the node under the write lock, and the\nfinal tipc_node_put() at the caller runs outside node_list_lock, so the\nkfree executes in timer softirq context, concurrently with genl dump/\nreset walkers that hold only rcu_read_lock().  (A netlink \"peer remove\"\ncannot race those walkers itself: tipc_genl_family has no parallel_ops,\nso all doit/dumpit calls serialize on the global genl lock.)\n\nReproduced in a QEMU/KVM guest running v7.3.0 with KASAN and\nPREEMPT(full): 10 TIPC peer namespaces on veth bearers, bearer removal\nstaggered so the 300 s node cleanup timers expire while other tasks\nloop link dumps with the broadcast filter and reset-link-stats lookups.\nKASAN hit within two cleanup cycles:\n\n  BUG: KASAN: slab-use-after-free in strlen+0x85/0xa0\n  Read of size 1 at addr ffff88800b54a004 by task poc_eth/371\n   strlen+0x85/0xa0\n   tipc_nl_add_bc_link+0x2f9/0xd40\n   __tipc_nl_add_node_links+0x10c/0x140\n   tipc_nl_node_dump_link+0x8d5/0xd50\n  Freed by task 0:\n   kfree+0x121/0x380\n   tipc_node_timeout+0xa33/0xcf0\n   run_timer_softirq+0x144/0x250\n   sysvec_apic_timer_interrupt\n\nwith the freed object being the kmalloc-1k tipc_link allocated by\ntipc_link_bc_create() during peer discovery.  The same defect fires in\nstrcmp() called from tipc_nl_node_reset_link_stats().\n\nMove the kfree of n-\u003ebc_entry.link into the tipc_node_free() RCU\ncallback so the broadcast link lives exactly as long as the enclosing\nnode.  All readers are covered: the netlink walkers are inside\nrcu_read_lock(), and the packet reception path reaches the node via\ntipc_node_find(), whose kref defers kref_release itself.\n\nFound during a static-analysis-assisted audit: candidate sites were\nsurfaced by a Coccinelle rule, and the reader/writer paths were\nconfirmed by LLM-assisted (GLM-5.3) code inspection.","modified":"2026-12-01T07:00:39.070005331Z","published":"2026-11-30T13:32:41.032Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139218.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/11c64df89050b7e1b84b2605b62c1a83641b13fe"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2a4c7cdbaf1623f09c71ab20434cc637c2bbc994"},{"type":"WEB","url":"https://git.kernel.org/stable/c/473167593f42551ce6b00c05cee8cd20309d45ac"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4da2e019ad2f3b07523717731eb3f7b793b3db2f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/951c5b16f65143b6aaa40aeb3189ffb97e444d90"},{"type":"WEB","url":"https://git.kernel.org/stable/c/970c0081de51a3025db135d966fab5f588113afa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a8cf5f0799fc014c49f016651293a93f9b433898"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f3ddb30b531230ef757f1fa642498677f4474e50"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139218.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139218"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d25a01257e422a4bdeb426f69529d57c73b235fe"},{"fixed":"970c0081de51a3025db135d966fab5f588113afa"},{"fixed":"951c5b16f65143b6aaa40aeb3189ffb97e444d90"},{"fixed":"f3ddb30b531230ef757f1fa642498677f4474e50"},{"fixed":"2a4c7cdbaf1623f09c71ab20434cc637c2bbc994"},{"fixed":"4da2e019ad2f3b07523717731eb3f7b793b3db2f"},{"fixed":"a8cf5f0799fc014c49f016651293a93f9b433898"},{"fixed":"11c64df89050b7e1b84b2605b62c1a83641b13fe"},{"fixed":"473167593f42551ce6b00c05cee8cd20309d45ac"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6862fa9077dea0ec2ba5e6ea7c7f90b786288596"}]}],"versions":["v4.4.302","v4.4.301","v4.4.300","v4.4.299","v4.4.298","v4.4.297","v4.4.296","v4.4.295","v4.4.294","v4.4.293","v4.4.292","v4.4.291","v4.4.290","v4.4.289","v4.4.288","v4.4.287","v4.4.286","v4.4.285","v4.4.284","v4.4.283","v4.4.282","v4.4.281","v4.4.280","v4.4.279","v4.4.278","v4.4.277","v4.4.276","v4.4.275","v4.4.274","v4.4.273","v4.4.272","v4.4.271","v4.4.270","v4.4.269","v4.4.268","v4.4.267","v4.4.266","v4.4.265","v4.4.264","v4.4.263","v4.4.262","v4.4.261","v4.4.260","v4.4.259","v4.4.258","v4.4.257","v4.4.256","v4.4.255","v4.4.254","v4.4.253","v4.4.252","v4.4.251","v4.4.250","v4.4.249","v4.4.248","v4.4.247","v4.4.246","v4.4.245","v4.4.244","v4.4.243","v4.4.242","v4.4.241","v4.4.240","v4.4.239","v4.4.238","v4.4.237","v4.4.236","v4.4.235","v4.4.234","v4.4.233","v4.4.232","v4.4.231","v4.4.230","v4.4.229","v4.4.228","v4.4.227","v4.4.226","v4.4.225","v4.4.224","v4.4.223","v4.4.222","v4.4.221","v4.4.220","v4.4.219","v4.4.218","v4.4.217","v4.4.216","v4.4.215","v4.4.214","v4.4.213","v4.4.212","v4.4.211","v4.4.210","v4.4.209","v4.4.208","v4.4.207","v4.4.206","v4.4.205","v4.4.204","v4.4.203","v4.4.202","v4.4.201","v4.4.200","v4.4.199","v4.4.198","v4.4.197","v4.4.196","v4.4.195","v4.4.194","v4.4.193","v4.4.192","v4.4.191","v4.4.190","v4.4.189","v4.4.188","v4.4.187","v4.4.186","v4.4.185","v4.4.184","v4.4.183","v4.4.182","v4.4.181","v4.4.180","v4.4.179","v4.4.178","v4.4.177","v4.4.176","v4.4.175","v4.4.174","v4.4.173","v4.4.172","v4.4.171","v4.4.170","v4.4.169","v4.4.168","v4.4.167","v4.4.166","v4.4.165","v4.4.164","v4.4.163","v4.4.162","v4.4.161","v4.4.160","v4.4.159","v4.4.158","v4.4.157","v4.4.156","v4.4.155","v4.4.154","v4.4.153","v4.4.152","v4.4.151","v4.4.150","v4.4.149","v4.4.148","v4.4.147","v4.4.146","v4.4.145","v4.4.144","v4.4.143","v4.4.142","v4.4.141","v4.4.140","v4.4.139","v4.4.138","v4.4.137","v4.4.136","v4.4.135","v4.4.134","v4.4.133","v4.4.132","v4.4.131","v4.4.130","v4.4.129","v4.4.128","v4.4.127","v4.4.126","v4.4.125","v4.4.124","v4.4.123","v4.4.122","v4.4.121","v4.4.120","v4.4.119","v4.4.118","v4.4.117","v4.4.116","v4.4.115","v4.4.114","v4.4.113","v4.4.112","v4.4.111","v4.4.110","v4.4.109","v4.4.108","v4.4.107","v4.4.106","v4.4.105","v4.4.104","v4.4.103","v4.4.102","v4.4.101","v4.4.100","v4.4.99","v4.4.98","v4.4.97","v4.4.96","v4.4.95","v4.4.94","v4.4.93","v4.4.92","v4.4.91","v4.4.90","v4.4.89","v4.4.88","v4.4.87","v4.4.86","v4.4.85","v4.4.84","v4.4.83","v4.4.82","v4.4.81","v4.4.80","v4.4.79","v4.4.78","v4.4.77","v4.4.76","v4.4.75","v4.4.74","v4.4.73","v4.4.72","v4.4.71","v4.4.70","v4.4.69","v4.4.68","v4.4.67","v4.4.66","v4.4.65","v4.4.64"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139218.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.4.64"},{"fixed":"4.5"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.6.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139218.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}