{"id":"CVE-2026-31481","aliases":["CVE-2026-31481"],"related":[],"kind":"vulnerability","state":"published","title":"tracing: Drain deferred trigger frees if kthread creation fails","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nrastreo: Drenar liberaciones de disparadores diferidas si la creación de kthread falla\n\nEl registro de disparadores en tiempo de arranque puede fallar antes de que exista el kthread de limpieza de datos del disparador. Diferir esas liberaciones hasta la inicialización tardía está bien, pero la alternativa posterior al arranque aún debe drenar la lista diferida si la creación de kthread nunca tiene éxito.\n\nDe lo contrario, los nodos diferidos en el arranque pueden acumularse en trigger_data_free_list, las liberaciones posteriores recurren a liberar sincrónicamente solo el objeto actual, y las entradas en cola más antiguas se filtran para siempre.\n\nPara activar esto, añada lo siguiente a la línea de comandos del kernel:\n\ntrace_event=sched_switch trace_trigger=sched_switch.traceon,sched_switch.traceon\n\nEl segundo disparador traceon fallará y será liberado. Esto activa una desreferencia de puntero NULL y bloquea el kernel.\n\nMantenga el comportamiento diferido en tiempo de arranque, pero cuando la creación de kthread falla, drene toda la lista en cola sincrónicamente. Haga lo mismo en la ruta de drenaje de inicialización tardía para que las entradas en cola tampoco queden varadas allí.","source":"nvd"}],"published":"2026-04-22T13:54:08.236Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"61d445af0a7c70018111919e47beaaee15653f2f","fixed":"771624b7884a83bb9f922ae64ee41a5f8b7576c9","status":"affected"},{"type":"git","introduced":"61d445af0a7c70018111919e47beaaee15653f2f","fixed":"250ab25391edeeab8462b68be42e4904506c409c","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.19","status":"unaffected"},{"type":"semver","introduced":"6.19.11","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.19.1","fixed":"6.19.11"},{"status":"affected","version":"6.19"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/771624b7884a83bb9f922ae64ee41a5f8b7576c9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/250ab25391edeeab8462b68be42e4904506c409c","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31481","url":"https://www.cve.org/CVERecord?id=CVE-2026-31481","licence":"CVE Terms of Use","modified":"2026-05-11T22:09:34.083Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31481","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31481","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.284Z","epss":{"score":0.00111,"percentile":0.01477,"date":"2026-12-01T12:00:22.000Z"}}