{"id":"CVE-2026-68174","aliases":["CVE-2026-68174"],"related":[],"kind":"vulnerability","state":"published","title":"tracing: Fix union collision of module and refcnt for dynamic events","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing: Fix union collision of module and refcnt for dynamic events\n\nIn 'struct trace_event_call', the 'module' pointer and the 'refcnt'\natomic variable share the same memory space in a union. For dynamic\nevents, the union member is 'refcnt', which acts as an active\nreference counter.\n\nWhen a dynamic event (such as kprobe, uprobe, fprobe, eprobe, or\nwprobe) has a non-zero reference count (e.g. due to active event\ntriggers or perf attachments), its 'call->module' evaluates to a\nsmall non-zero integer instead of NULL.\n\nWhen filtering or setting events for a specific module (e.g., writing\n':mod:<module>' to 'set_event'), the code in\n'__ftrace_set_clr_event_nolock()' and 'update_event_fields()' reads\n'call->module' directly without checking whether the event is dynamic.\nThis causes the kernel to treat the small integer (refcnt) as a\n'struct module' pointer, leading to a NULL/invalid pointer dereference\n(Oops) when dereferencing the module name.\n\nFix this by ensuring that the 'TRACE_EVENT_FL_DYNAMIC' flag is checked\nbefore treating 'call->module' as a valid pointer in these code paths.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing: Fix union collision of module and refcnt for dynamic events\n\nIn 'struct trace_event_call', the 'module' pointer and the 'refcnt'\natomic variable share the same memory space in a union. For dynamic\nevents, the union member is 'refcnt', which acts as an active\nreference counter.\n\nWhen a dynamic event (such as kprobe, uprobe, fprobe, eprobe, or\nwprobe) has a non-zero reference count (e.g. due to active event\ntriggers or perf attachments), its 'call->module' evaluates to a\nsmall non-zero integer instead of NULL.\n\nWhen filtering or setting events for a specific module (e.g., writing\n':mod:<module>' to 'set_event'), the code in\n'__ftrace_set_clr_event_nolock()' and 'update_event_fields()' reads\n'call->module' directly without checking whether the event is dynamic.\nThis causes the kernel to treat the small integer (refcnt) as a\n'struct module' pointer, leading to a NULL/invalid pointer dereference\n(Oops) when dereferencing the module name.\n\nFix this by ensuring that the 'TRACE_EVENT_FL_DYNAMIC' flag is checked\nbefore treating 'call->module' as a valid pointer in these code paths.","source":"cvelist"}],"published":"2026-08-10T11:59:44.417Z","modified":"2026-11-30T16:13:21.673Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"4c86bc531e60900053384867c082675bba82c29f","fixed":"b6a4575f22925da7e6aa00171e9fc0e5029c0bc9","status":"affected"},{"type":"git","introduced":"4c86bc531e60900053384867c082675bba82c29f","fixed":"43a23dfe0024afd3d2b0232e987d0292919a9b24","status":"affected"},{"type":"git","introduced":"4c86bc531e60900053384867c082675bba82c29f","fixed":"b4eb07bde606c2096b24252be589e735eff6d413","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.14","status":"unaffected"},{"type":"semver","introduced":"6.18.42","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.6","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/b6a4575f22925da7e6aa00171e9fc0e5029c0bc9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/43a23dfe0024afd3d2b0232e987d0292919a9b24","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b4eb07bde606c2096b24252be589e735eff6d413","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-68174","url":"https://www.cve.org/CVERecord?id=CVE-2026-68174","licence":"CVE Terms of Use","modified":"2026-08-17T05:00:15.155Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-68174","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68174","licence":"Public domain","modified":"2026-11-30T16:13:21.673Z"}],"updatedAt":"2026-11-30T16:17:42.580Z","epss":{"score":0.00206,"percentile":0.06005,"date":"2026-11-30T12:00:22.000Z"}}