{"id":"CVE-2026-31481","published":"2026-04-22T13:54:08Z","modified":"2026-05-11T22:09:34Z","title":"tracing: Drain deferred trigger frees if kthread creation fails","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing: Drain deferred trigger frees if kthread creation fails\n\nBoot-time trigger registration can fail before the trigger-data cleanup\nkthread exists. Deferring those frees until late init is fine, but the\npost-boot fallback must still drain the deferred list if kthread\ncreation never succeeds.\n\nOtherwise, boot-deferred nodes can accumulate on\ntrigger_data_free_list, later frees fall back to synchronously freeing\nonly the current object, and the older queued entries are leaked\nforever.\n\nTo trigger this, add the following to the kernel command line:\n\n  trace_event=sched_switch trace_trigger=sched_switch.traceon,sched_switch.traceon\n\nThe second traceon trigger will fail and be freed. This triggers a NULL\npointer dereference and crashes the kernel.\n\nKeep the deferred boot-time behavior, but when kthread creation fails,\ndrain the whole queued list synchronously. Do the same in the late-init\ndrain path so queued entries are not stranded there either.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00111,"percentile":0.01389,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/771624b7884a83bb9f922ae64ee41a5f8b7576c9","tags":[]},{"url":"https://git.kernel.org/stable/c/250ab25391edeeab8462b68be42e4904506c409c","tags":[]}],"priority":{"score":0.3,"factors":[{"name":"EPSS percentile","points":0.28}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 61d445af0a7c70018111919e47beaaee15653f2f, < 771624b7884a83bb9f922ae64ee41a5f8b7576c9",">= 61d445af0a7c70018111919e47beaaee15653f2f, < 250ab25391edeeab8462b68be42e4904506c409c"]},{"vendor":"Linux","product":"Linux","versions":["6.19"]}],"euvd":{"id":"EUVD-2026-24841","exploited":false,"provenance":"source"}}