# CVE-2026-43402: kthread: consolidate kthread exit paths to prevent use-after-free

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.67% (percentile 47, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-05-08T14:21:43.550Z
- **Modified:** 2026-11-11T20:10:00.273Z

## Who should check

- Anyone running Linux \>= 4d13f4304fa43471bfea101658a11feec7b28ac0, \< 4729c7b00a347fd37d0cbc265b85f2884c3e06b6; \>= 4d13f4304fa43471bfea101658a11feec7b28ac0, \< 5a591d7a5e48d30100943940a30a6ab41b15c672; \>= 4d13f4304fa43471bfea101658a11feec7b28ac0, \< 28aaa9c39945b7925a1cc1d513c8f21ed38f5e4f
- Anyone running Linux 6.14

## 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.

## Affected and fixed versions

- Linux: \>= 4d13f4304fa43471bfea101658a11feec7b28ac0, \< 4729c7b00a347fd37d0cbc265b85f2884c3e06b6; \>= 4d13f4304fa43471bfea101658a11feec7b28ac0, \< 5a591d7a5e48d30100943940a30a6ab41b15c672; \>= 4d13f4304fa43471bfea101658a11feec7b28ac0, \< 28aaa9c39945b7925a1cc1d513c8f21ed38f5e4f (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

- Upgrade Linux to 28aaa9c39945b7925a1cc1d513c8f21ed38f5e4f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-43402. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-43402.md
Affected: Linux >= 4d13f4304fa43471bfea101658a11feec7b28ac0, < 4729c7b00a347fd37d0cbc265b85f2884c3e06b6; >= 4d13f4304fa43471bfea101658a11feec7b28ac0, < 5a591d7a5e48d30100943940a30a6ab41b15c672; >= 4d13f4304fa43471bfea101658a11feec7b28ac0, < 28aaa9c39945b7925a1cc1d513c8f21ed38f5e4f; Linux 6.14
Fixed in: Linux 4729c7b00a347fd37d0cbc265b85f2884c3e06b6, Linux 5a591d7a5e48d30100943940a30a6ab41b15c672, Linux 28aaa9c39945b7925a1cc1d513c8f21ed38f5e4f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-43402 being exploited?

There is no confirmed exploitation: CVE-2026-43402 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.67% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-43402?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-43402?

Linux \>= 4d13f4304fa43471bfea101658a11feec7b28ac0, \< 4729c7b00a347fd37d0cbc265b85f2884c3e06b6; \>= 4d13f4304fa43471bfea101658a11feec7b28ac0, \< 5a591d7a5e48d30100943940a30a6ab41b15c672; \>= 4d13f4304fa43471bfea101658a11feec7b28ac0, \< 28aaa9c39945b7925a1cc1d513c8f21ed38f5e4f; Linux 6.14.

### Is there a fix for CVE-2026-43402?

Yes. Fixed in Linux 4729c7b00a347fd37d0cbc265b85f2884c3e06b6, Linux 5a591d7a5e48d30100943940a30a6ab41b15c672, Linux 28aaa9c39945b7925a1cc1d513c8f21ed38f5e4f. Upgrade Linux to 28aaa9c39945b7925a1cc1d513c8f21ed38f5e4f or later.

### How do I check if I'm affected by CVE-2026-43402?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/4729c7b00a347fd37d0cbc265b85f2884c3e06b6>
- patch: <https://git.kernel.org/stable/c/5a591d7a5e48d30100943940a30a6ab41b15c672>
- patch: <https://git.kernel.org/stable/c/28aaa9c39945b7925a1cc1d513c8f21ed38f5e4f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-43402>

HTML: <https://flawdb.com/CVE-2026-43402> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-43402>
