# CVE-2025-21786: workqueue: Put the pwq after detaching the rescuer from the pool

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 15% of CVEs (2026-11-30)
- Published: 2025-02-27T02:18:26.406Z
- Modified: 2026-08-05T11:54:24.903Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

workqueue: Put the pwq after detaching the rescuer from the pool

The commit 68f83057b913("workqueue: Reap workers via kthread_stop() and
remove detach_completion") adds code to reap the normal workers but
mistakenly does not handle the rescuer and also removes the code waiting
for the rescuer in put_unbound_pool(), which caused a use-after-free bug
reported by Cheung Wall.

To avoid the use-after-free bug, the pool’s reference must be held until
the detachment is complete. Therefore, move the code that puts the pwq
after detaching the rescuer from the pool.

(As written by CVE List.)

## Affected

- Linux Linux: from 68f83057b913467a999e1bf9e0da6a119668f769 before e7c16028a424dd35be1064a68fa318be4359310f; from 68f83057b913467a999e1bf9e0da6a119668f769 before 835b69c868f53f959d4986bbecd561ba6f38e492; from 68f83057b913467a999e1bf9e0da6a119668f769 before e76946110137703c16423baf6ee177b751a34b7e; 6.11 (not affected: before 6.11; from 6.12.16 up to 6.12.*; from 6.13.4 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: before 6.12.16; from 6.13 before 6.13.4

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/e7c16028a424dd35be1064a68fa318be4359310f> (patch)
- <https://git.kernel.org/stable/c/835b69c868f53f959d4986bbecd561ba6f38e492> (patch)
- <https://git.kernel.org/stable/c/e76946110137703c16423baf6ee177b751a34b7e> (patch)

## Sources

- CVE List: [CVE-2025-21786](https://www.cve.org/CVERecord?id=CVE-2025-21786), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-21786](https://nvd.nist.gov/vuln/detail/CVE-2025-21786), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-21786 · Whole record: https://cve.day/CVE-2025-21786.json · Rebuilt by cve.day 2026-11-25T22:58:54.564Z
