9.8
CRITICAL CVSS 3.1
CVE-2026-43402
kthread: consolidate kthread exit paths to prevent use-after-free
Description

In the Linux kernel, the following vulnerability has been resolved: kthread: consolidate kthread exit paths to prevent use-after-free Guillaume reported crashes via corrupted RCU callback function pointers during KUnit testing. The crash was traced back to the pidfs rhashtable conversion which replaced the 24-byte rb_node with an 8-byte rhash_head in struct pid, shrinking it from 160 to 144 bytes. struct kthread (without CONFIG_BLK_CGROUP) is also 144 bytes. With CONFIG_SLAB_MERGE_DEFAULT and SLAB_HWCACHE_ALIGN both round up to 192 bytes and share the same slab cache. struct pid.rcu.func and struct kthread.affinity_node both sit at offset 0x78. When a kthread exits via make_task_dead() it bypasses kthread_exit() and misses the affinity_node cleanup. free_kthread_struct() frees the memory while the node is still linked into the global kthread_affinity_list. A subsequent list_del() by another kthread writes through dangling list pointers into the freed and reused memory, corrupting the pid's rcu.func pointer. Instead of patching free_kthread_struct() to handle the missed cleanup, consolidate all kthread exit paths. Turn kthread_exit() into a macro that calls do_exit() and add kthread_do_exit() which is called from do_exit() for any task with PF_KTHREAD set. This guarantees that kthread-specific cleanup always happens regardless of the exit path - make_task_dead(), direct do_exit(), or kthread_exit(). Replace __to_kthread() with a new tsk_is_kthread() accessor in the public header. Export do_exit() since module code using the kthread_exit() macro now needs it directly.

INFO

Published Date :

May 8, 2026, 3:16 p.m.

Last Modified :

Nov. 11, 2026, 8:10 p.m.

Remotely Exploit :

Yes !

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-43402 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 CRITICAL 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
Consolidate kthread exit paths to ensure cleanup and prevent memory corruption.
  • Apply kernel patches to consolidate kthread exit paths.
  • Ensure kthread-specific cleanup always occurs.
  • Update task exit handling logic.
  • Use new tsk_is_kthread() accessor.
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-43402.

URL Resource
https://git.kernel.org/stable/c/28aaa9c39945b7925a1cc1d513c8f21ed38f5e4f Patch
https://git.kernel.org/stable/c/4729c7b00a347fd37d0cbc265b85f2884c3e06b6 Patch
https://git.kernel.org/stable/c/5a591d7a5e48d30100943940a30a6ab41b15c672 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-43402 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-43402 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-43402 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-43402 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: kthread: consolidar las rutas de salida de kthread para prevenir el uso después de liberación Guillaume informó de fallos a través de punteros de función de callback RCU corruptos durante las pruebas de KUnit. El fallo se rastreó hasta la conversión de rhashtable de pidfs que reemplazó el rb_node de 24 bytes con un rhash_head de 8 bytes en la estructura pid, reduciéndola de 160 a 144 bytes. La estructura kthread (sin CONFIG_BLK_CGROUP) también es de 144 bytes. Con CONFIG_SLAB_MERGE_DEFAULT y SLAB_HWCACHE_ALIGN, ambos se redondean a 192 bytes y comparten la misma caché de slab. struct pid.rcu.func y struct kthread.affinity_node ambos se encuentran en el desplazamiento 0x78. Cuando un kthread sale a través de make_task_dead(), omite kthread_exit() y la limpieza de affinity_node. free_kthread_struct() libera la memoria mientras el nodo aún está vinculado a la kthread_affinity_list global. Una posterior list_del() por otro kthread escribe a través de punteros de lista colgantes en la memoria liberada y reutilizada, corrompiendo el puntero rcu.func del pid. En lugar de parchear free_kthread_struct() para manejar la limpieza omitida, consolidar todas las rutas de salida de kthread. Convertir kthread_exit() en una macro que llama a do_exit() y añadir kthread_do_exit() que es llamada desde do_exit() para cualquier tarea con PF_KTHREAD establecido. Esto garantiza que la limpieza específica de kthread siempre ocurre independientemente de la ruta de salida - make_task_dead(), do_exit() directo, o kthread_exit(). Reemplazar __to_kthread() con un nuevo accesor tsk_is_kthread() en el encabezado público. Exportar do_exit() ya que el código del módulo que usa la macro kthread_exit() ahora lo necesita directamente.
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Oct. 19, 2026

    Action Type Old Value New Value
    Added CWE CWE-416
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Oct. 16, 2026

    Action Type Old Value New Value
    Added Reference https://git.kernel.org/stable/c/28aaa9c39945b7925a1cc1d513c8f21ed38f5e4f
    Added Reference https://git.kernel.org/stable/c/4729c7b00a347fd37d0cbc265b85f2884c3e06b6
    Added Reference https://git.kernel.org/stable/c/5a591d7a5e48d30100943940a30a6ab41b15c672
    Removed Reference https://git.kernel.org/stable/c/28aaa9c39945b7925a1cc1d513c8f21ed38f5e4f
    Removed Reference https://git.kernel.org/stable/c/4729c7b00a347fd37d0cbc265b85f2884c3e06b6
    Removed Reference https://git.kernel.org/stable/c/5a591d7a5e48d30100943940a30a6ab41b15c672
    Removed Reference Type https://git.kernel.org/stable/c/28aaa9c39945b7925a1cc1d513c8f21ed38f5e4f Types: Patch
    Removed Reference Type https://git.kernel.org/stable/c/4729c7b00a347fd37d0cbc265b85f2884c3e06b6 Types: Patch
    Removed Reference Type https://git.kernel.org/stable/c/5a591d7a5e48d30100943940a30a6ab41b15c672 Types: Patch
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Oct. 16, 2026

    Action Type Old Value New Value
    Added SSVC {'id': 'CVE-2026-43402', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'yes'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-10-16T15:17:02.801558Z'}
  • 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': '4d13f4304fa43471bfea101658a11feec7b28ac0', 'lessThan': '4729c7b00a347fd37d0cbc265b85f2884c3e06b6', 'versionType': 'git'}, {'status': 'affected', 'version': '4d13f4304fa43471bfea101658a11feec7b28ac0', 'lessThan': '5a591d7a5e48d30100943940a30a6ab41b15c672', 'versionType': 'git'}, {'status': 'affected', 'version': '4d13f4304fa43471bfea101658a11feec7b28ac0', 'lessThan': '28aaa9c39945b7925a1cc1d513c8f21ed38f5e4f', 'versionType': 'git'}], 'programFiles': ['include/linux/kthread.h', 'kernel/exit.c', 'kernel/kthread.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.14'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.14', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.18.19', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '6.19.9', 'versionType': 'semver', 'lessThanOrEqual': '6.19.*'}, {'status': 'unaffected', 'version': '7.0', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['include/linux/kthread.h', 'kernel/exit.c', 'kernel/kthread.c'], 'defaultStatus': 'affected'}]
  • Initial Analysis by [email protected]

    May. 21, 2026

    Action Type Old Value New Value
    Added CWE CWE-416
    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:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 6.19.9 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.14 up to (excluding) 6.18.19
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/28aaa9c39945b7925a1cc1d513c8f21ed38f5e4f Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/4729c7b00a347fd37d0cbc265b85f2884c3e06b6 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/5a591d7a5e48d30100943940a30a6ab41b15c672 Types: Patch
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 11, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    May. 08, 2026

    Action Type Old Value New Value
    Added Description In the Linux kernel, the following vulnerability has been resolved: kthread: consolidate kthread exit paths to prevent use-after-free Guillaume reported crashes via corrupted RCU callback function pointers during KUnit testing. The crash was traced back to the pidfs rhashtable conversion which replaced the 24-byte rb_node with an 8-byte rhash_head in struct pid, shrinking it from 160 to 144 bytes. struct kthread (without CONFIG_BLK_CGROUP) is also 144 bytes. With CONFIG_SLAB_MERGE_DEFAULT and SLAB_HWCACHE_ALIGN both round up to 192 bytes and share the same slab cache. struct pid.rcu.func and struct kthread.affinity_node both sit at offset 0x78. When a kthread exits via make_task_dead() it bypasses kthread_exit() and misses the affinity_node cleanup. free_kthread_struct() frees the memory while the node is still linked into the global kthread_affinity_list. A subsequent list_del() by another kthread writes through dangling list pointers into the freed and reused memory, corrupting the pid's rcu.func pointer. Instead of patching free_kthread_struct() to handle the missed cleanup, consolidate all kthread exit paths. Turn kthread_exit() into a macro that calls do_exit() and add kthread_do_exit() which is called from do_exit() for any task with PF_KTHREAD set. This guarantees that kthread-specific cleanup always happens regardless of the exit path - make_task_dead(), direct do_exit(), or kthread_exit(). Replace __to_kthread() with a new tsk_is_kthread() accessor in the public header. Export do_exit() since module code using the kthread_exit() macro now needs it directly.
    Added Reference https://git.kernel.org/stable/c/28aaa9c39945b7925a1cc1d513c8f21ed38f5e4f
    Added Reference https://git.kernel.org/stable/c/4729c7b00a347fd37d0cbc265b85f2884c3e06b6
    Added Reference https://git.kernel.org/stable/c/5a591d7a5e48d30100943940a30a6ab41b15c672
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.