cve.bz

CVE-2025-21786 linux linux kernel: Use After Free

7.8 highEPSS 0.2%Fix available

High (7.8) in linux linux kernel. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 14th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-02-27. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-21786 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-21786?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-21786?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-21786 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux6.11 and later

Fixed in

ProductRelease lineFixed in
Linux6.126.12.16
Linux6.136.13.4
Linuxlater releases6.14

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13, 14linux6.12.16-1DEBIAN-CVE-2025-21786
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2025-21786
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2025-21786
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2025-21786
Ubuntu22.04:LTSlinux-aws-6.86.8.0-1035.37~22.04.1USN-7703-2
Ubuntu22.04:LTSlinux-azure-6.86.8.0-1034.39~22.04.1USN-7737-1
Ubuntu22.04:LTSlinux-gcp-6.86.8.0-1036.38~22.04.1USN-7703-2
Ubuntu22.04:LTSlinux-hwe-6.86.8.0-78.78~22.04.1USN-7703-4
Ubuntu22.04:LTSlinux-ibm-6.86.8.0-1033.33~22.04.1USN-7703-2
Ubuntu22.04:LTSlinux-lowlatency-hwe-6.86.8.0-78.78.1~22.04.1USN-7703-1
Ubuntu22.04:LTSlinux-nvidia-6.86.8.0-1035.38~22.04.1USN-7703-4
Ubuntu22.04:LTSlinux-oracle-6.86.8.0-1032.33~22.04.1USN-7703-3
Ubuntu22.04:LTSlinux-riscv, linux-aws-6.2, linux-aws-6.5 and 30 moreno fix listedUBUNTU-CVE-2025-21786
21 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 29 more0:5.14.0-611.5.1.el9_7RHSA-2025:20518
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 45 more0:5.14.0-611.5.1.el9_7RHSA-2025:20518
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 16 more0:5.14.0-611.5.1.el9_7RHSA-2025:20518
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-core, perf-debuginfo and 18 more0:5.14.0-611.5.1.el9_7RHSA-2025:20518
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-64k, kernel-rt-core and 35 more0:5.14.0-611.5.1.el9_7RHSA-2025:20518
Red Hatenterprise_linux:10.1rv, perf, rtla and 87 more0:6.12.0-124.8.1.el10_1RHSA-2025:20095
Red Hatrhel_eus:9.6::appstreamrv, perf, rtla and 29 more0:5.14.0-570.86.1.el9_6RHSA-2026:2352
Red Hatrhel_eus:9.6::baseoskernel, kernel-64k, kernel-core and 45 more0:5.14.0-570.86.1.el9_6RHSA-2026:2352
Red Hatrhel_eus:9.6::crblibperf, perf-debuginfo, kernel-debuginfo and 16 more0:5.14.0-570.86.1.el9_6RHSA-2026:2352
Red Hatrhel_eus:9.6::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-570.86.1.el9_6RHSA-2026:2352
Red Hatrhel_eus:9.6::realtimekernel-rt, kernel-rt-64k, kernel-rt-core and 35 more0:5.14.0-570.86.1.el9_6RHSA-2026:2352
AlmaLinux9rv, perf, rtla and 71 more5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux10rv, perf, rtla and 72 more6.12.0-124.8.1.el10_1ALSA-2025:20095
Rocky Linux9kernel0:5.14.0-611.5.1.el9_7RLSA-2025:20518
Rocky Linux10kernel0:6.12.0-124.8.1.el10_1RLSA-2025:20095
Azure Linux2kernelno fix listedAZL-58887
Azure Linux3kernelno fix listedAZL-58922
Alpaquita25linux-lts6.12.41-r0BELL-CVE-2025-21786
Alpaquitastreamlinux-lts6.18.35-r1BELL-CVE-2025-21786

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Product Security classifies this bug as Moderate based on the following reasons:

* Workqueues are not accessible to unprivileged users, such as SELinux lockdown.

* Local access is required for this bug to work.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernel-0:6.12.0-124.8.1.el10_1Fixed 2025-11-11RHSA-2025:20095
Red Hat Enterprise Linux 9kernel-0:5.14.0-611.5.1.el9_7Fixed 2025-11-11RHSA-2025:20518
Red Hat Enterprise Linux 9.6 Extended Update Supportkernel-0:5.14.0-570.86.1.el9_6Fixed 2026-02-09RHSA-2026:2352
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelAffected
Red Hat Enterprise Linux 8kernel-rtAffected
Red Hat Enterprise Linux 9kernel-rtAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-21786.

References

Check your stackJSON