VDB

CVE-2025-21786

CVE-2025-21786 PUBLISHED CVSS 7.8 HIGH

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

Reported by linux · Published February 27, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux6.14, 6.13.4, 6.12.16
LinuxLinuxe7c16028a424dd35be1064a68fa318be4359310f, e76946110137703c16423baf6ee177b751a34b7e, 6.11

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux68f83057b913467a999e1bf9e0da6a119668f769, 68f83057b913467a999e1bf9e0da6a119668f769, 68f83057b913467a999e1bf9e0da6a119668f769
LinuxLinux6.11, 0, 6.12.16
linuxlinux_kernel6.11, 6.11, 6.11
LinuxLinux68f83057b913467a999e1bf9e0da6a119668f769, 68f83057b913467a999e1bf9e0da6a119668f769, 0

Timeline

  • Feb 26, 2025 CVE Published
  • Feb 27, 2025 EPSS Score (30 in total, the first dated here)
  • Mar 17, 2025 Coalition ESS Score (20 in total, the first dated here)
  • Dec 22, 2025 Security Advisory (374 in total, the first dated here)
  • Apr 29, 2026 Distribution Patch (329 in total, the first dated here)
  • Nov 11, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-21786
vulnetix vdb fixes CVE-2025-21786

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-21786/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›