CVE-2026-43402
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedIn 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceA use-after-free vulnerability in the Linux kernel's kthread subsystem allows memory corruption when kthreads exit via make_task_dead(). The bug occurs because struct pid (144 bytes) and struct kthread (144 bytes) share the same slab cache, and when a kthread exits without going through kthread_exit(), the affinity_node cleanup is missed. This leaves dangling pointers in the global kthread_affinity_list that get corrupted by subsequent list_del() operations, corrupting the pid's rcu.func pointer.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 6.14, < 6.18.19>= 6.19, < 6.19.9= 7.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify running kernel versionRun 'uname -r' or 'cat /proc/version' to get the exact kernel version stringAffected if The version falls within >= 6.14, < 6.18.19; >= 6.19, < 6.19.9; or = 7.0
-
Verify kthread affinity list support existsCheck if /sys/kernel/debug/sched/kthread_affinity exists or look for CONFIG_KTHREAD_AFFINITY in kernel config via 'cat /boot/config-$(uname -r)' or 'zcat /proc/config.gz' if availableAffected if The kernel has kthread affinity support enabled (CONFIG_KTHREAD_AFFINITY=y or =m)
-
Check for active kthreads with CPU affinityList kthreads with affinity set by examining /sys/kernel/debug/sched/kthread_affinity if it exists, or check 'ps -o pid,comm,psr' for kthreads with specific CPU bindingsAffected if There are kthreads with non-default CPU affinity masks (bound to specific CPUs rather than -1 for all CPUs)
-
Inspect kthread exit code pathsCheck if the running kernel has the patched exit path by examining /proc/kallsyms for symbols 'kthread_exit' and 'do_exit', or analyze the kernel source if accessibleAffected if The kernel is still using the vulnerable make_task_dead() bypass path without the consolidated do_exit() or kthread_do_exit() implementation
You are affected if your kernel version is in the vulnerable range AND kthreads with CPU affinity are in use on the system, allowing the dangling pointer scenario in kthread_affinity_list to trigger.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped6.18.196.19.9
Apply the kernel patch that consolidates all kthread exit paths by making kthread_exit() a macro calling do_exit() and adding kthread_do_exit() called from do_exit() for PF_KTHREAD tasks. This ensures kthread-specific cleanup always occurs regardless of exit path.
6.18.19 or later for 6.14-6.18.x branches; 6.19.9 or later for 6.19.x branch; 7.1 or later for 7.0
- Identify the currently running kernel version using `uname -r`
- If running kernel >= 6.14 and < 6.18.19: plan upgrade to kernel version 6.18.19 or later
- If running kernel >= 6.19 and < 6.19.9: plan upgrade to kernel version 6.19.9 or later
- If running kernel 7.0: wait for 7.1 stable release and upgrade then
- Apply the upgrade through your distribution's package manager (e.g., `apt-get dist-upgrade`, `yum update`, or `dnf upgrade`)
- Reboot the system into the new kernel
- Verify the kernel version after reboot with `uname -r` to confirm the fix is applied
- Alternatively, if immediate patching is required, cherry-pick commit 28aaa9c39945b7925a1cc1d513c8f21ed38f5e4f from kernel.org and rebuild the kernel
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation6.0 h
- Implementation12.0 h
- Testing16.0 h
- Review / QA8.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $11,520.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-43402 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-43402 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data