{"id":21668,"date":"2026-09-12T04:31:29","date_gmt":"2026-09-11T20:31:29","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-89746"},"modified":"2026-09-12T04:31:29","modified_gmt":"2026-09-11T20:31:29","slug":"cve-2026-89746","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-89746","title":{"rendered":"CVE-2026-89746 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\ntracing: Fix use-afte"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>tracing: Fix use-after-free with same-name named triggers<\/p>\n<p>When two hist triggers on different events are registered with the same<br \/>\nname=, the second one reuses the first as named_data.  Both are added to<br \/>\ntr-&gt;hist_vars by save_hist_vars() during event_hist_trigger_parse(),<br \/>\nbecause save_hist_vars() is called before event_trigger_register() while<br \/>\nthe named reuse is only detected later, in hist_register_trigger().<\/p>\n<p>In the named-data branch hist_register_trigger() then frees the second<br \/>\nhistogram&#8217;s hist_data via destroy_hist_data(), but never removes its<br \/>\ntr-&gt;hist_vars list entry, leaving a dangling pointer and leaking the<br \/>\ntrace_array reference it holds.<\/p>\n<p>A later hist trigger that references a variable makes find_var_file()<br \/>\nwalk tr-&gt;hist_vars and dereference the freed hist_data.  The bug is<br \/>\nreproducible from userspace by writing three hist triggers to tracefs:<\/p>\n<p>  cd \/sys\/kernel\/tracing<br \/>\n  echo &#8216;hist:keys=common_pid:x=common_pid:name=mh&#8217; &gt; events\/sched\/sched_switch\/trigger<br \/>\n  echo &#8216;hist:keys=common_pid:x=common_pid:name=mh&#8217; &gt; events\/sched\/sched_process_fork\/trigger<br \/>\n  echo &#8216;hist:keys=common_pid:vals=$x&#8217; &gt; events\/sched\/sched_process_exit\/trigger<\/p>\n<p>The third write panics the kernel:<\/p>\n<p>  BUG: KASAN: slab-use-after-free in find_var_file.part.0+0x272\/0x290<br \/>\n  Read of size 8 at addr ffff888001f8a0e0 by task sh\/1<br \/>\n  CPU: 1 UID: 0 PID: 1 Comm: sh Tainted: G      D          N<br \/>\n  Call Trace:<br \/>\n    find_var_file.part.0<br \/>\n    find_event_var<br \/>\n    parse_atom<br \/>\n    parse_expr<br \/>\n    __create_val_field<br \/>\n    event_hist_trigger_parse<br \/>\n    trigger_process_regex<br \/>\n    event_trigger_write<br \/>\n    vfs_write<br \/>\n    ksys_write<br \/>\n    do_syscall_64<br \/>\n    entry_SYSCALL_64_after_hwframe<br \/>\n  Allocated by task 1:<br \/>\n    event_hist_trigger_parse<br \/>\n  Freed by task 1:<br \/>\n    hist_register_trigger+0x618\/0xa30<br \/>\n    event_hist_trigger_parse<br \/>\n  The buggy address belongs to freed 2048-byte region<br \/>\n  Oops: general protection fault &#8230; RIP: find_var_file.part.0<br \/>\n  Kernel panic &#8211; not syncing: Attempted to kill init! exitcode=0x0000000b<\/p>\n<p>Fix by removing the hist_data from tr-&gt;hist_vars and releasing the<br \/>\ntrace_array reference in the named-data branch of hist_register_trigger()<br \/>\nbefore freeing the hist_data.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>tracing: Fix use-after-free with same-name named triggers<\/p>\n<p>When two hist triggers on different events are registered with the same<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-21668","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/21668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}