CVE-2026-31481
tracing: Drain deferred trigger frees if kthread creation fails
Description
In the Linux kernel, the following vulnerability has been resolved: tracing: Drain deferred trigger frees if kthread creation fails Boot-time trigger registration can fail before the trigger-data cleanup kthread exists. Deferring those frees until late init is fine, but the post-boot fallback must still drain the deferred list if kthread creation never succeeds. Otherwise, boot-deferred nodes can accumulate on trigger_data_free_list, later frees fall back to synchronously freeing only the current object, and the older queued entries are leaked forever. To trigger this, add the following to the kernel command line: trace_event=sched_switch trace_trigger=sched_switch.traceon,sched_switch.traceon The second traceon trigger will fail and be freed. This triggers a NULL pointer dereference and crashes the kernel. Keep the deferred boot-time behavior, but when kthread creation fails, drain the whole queued list synchronously. Do the same in the late-init drain path so queued entries are not stranded there either.
INFO
Published Date :
April 22, 2026, 2:16 p.m.
Last Modified :
Nov. 11, 2026, 11:10 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update the Linux kernel to the latest version.
- Apply the specific patch for tracing deferred trigger frees.
- Ensure kthread creation does not fail during boot.
- Synchronously drain the deferred free list if kthread creation fails.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-31481.
| URL | Resource |
|---|---|
| https://git.kernel.org/stable/c/250ab25391edeeab8462b68be42e4904506c409c | Patch |
| https://git.kernel.org/stable/c/771624b7884a83bb9f922ae64ee41a5f8b7576c9 | Patch |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-31481 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-31481
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-31481 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-31481 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Nov. 11, 2026
Action Type Old Value New Value Added Translation Title: Linux Kernel, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: rastreo: Drenar liberaciones de disparadores diferidas si la creación de kthread falla El 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. De 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. Para activar esto, añada lo siguiente a la línea de comandos del kernel: trace_event=sched_switch trace_trigger=sched_switch.traceon,sched_switch.traceon El segundo disparador traceon fallará y será liberado. Esto activa una desreferencia de puntero NULL y bloquea el kernel. Mantenga 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í. -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '61d445af0a7c70018111919e47beaaee15653f2f', 'lessThan': '771624b7884a83bb9f922ae64ee41a5f8b7576c9', 'versionType': 'git'}, {'status': 'affected', 'version': '61d445af0a7c70018111919e47beaaee15653f2f', 'lessThan': '250ab25391edeeab8462b68be42e4904506c409c', 'versionType': 'git'}], 'programFiles': ['kernel/trace/trace_events_trigger.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.19'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.19', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.19.11', 'versionType': 'semver', 'lessThanOrEqual': '6.19.*'}, {'status': 'unaffected', 'version': '7.0', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['kernel/trace/trace_events_trigger.c'], 'defaultStatus': 'affected'}] -
Initial Analysis by [email protected]
Apr. 28, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE CWE-476 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.19:-:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19.1 up to (excluding) 6.19.11 Added Reference Type kernel.org: https://git.kernel.org/stable/c/250ab25391edeeab8462b68be42e4904506c409c Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/771624b7884a83bb9f922ae64ee41a5f8b7576c9 Types: Patch -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Apr. 22, 2026
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: tracing: Drain deferred trigger frees if kthread creation fails Boot-time trigger registration can fail before the trigger-data cleanup kthread exists. Deferring those frees until late init is fine, but the post-boot fallback must still drain the deferred list if kthread creation never succeeds. Otherwise, boot-deferred nodes can accumulate on trigger_data_free_list, later frees fall back to synchronously freeing only the current object, and the older queued entries are leaked forever. To trigger this, add the following to the kernel command line: trace_event=sched_switch trace_trigger=sched_switch.traceon,sched_switch.traceon The second traceon trigger will fail and be freed. This triggers a NULL pointer dereference and crashes the kernel. Keep the deferred boot-time behavior, but when kthread creation fails, drain the whole queued list synchronously. Do the same in the late-init drain path so queued entries are not stranded there either. Added Reference https://git.kernel.org/stable/c/250ab25391edeeab8462b68be42e4904506c409c Added Reference https://git.kernel.org/stable/c/771624b7884a83bb9f922ae64ee41a5f8b7576c9