{"id":"CVE-2025-21786","published":"2025-02-27T02:18:26Z","modified":"2026-08-05T11:54:24Z","title":"workqueue: Put the pwq after detaching the rescuer from the pool","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nworkqueue: Put the pwq after detaching the rescuer from the pool\n\nThe commit 68f83057b913(\"workqueue: Reap workers via kthread_stop() and\nremove detach_completion\") adds code to reap the normal workers but\nmistakenly does not handle the rescuer and also removes the code waiting\nfor the rescuer in put_unbound_pool(), which caused a use-after-free bug\nreported by Cheung Wall.\n\nTo avoid the use-after-free bug, the pool’s reference must be held until\nthe detachment is complete. Therefore, move the code that puts the pwq\nafter detaching the rescuer from the pool.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00232,"percentile":0.14387,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/e7c16028a424dd35be1064a68fa318be4359310f","tags":[]},{"url":"https://git.kernel.org/stable/c/835b69c868f53f959d4986bbecd561ba6f38e492","tags":[]},{"url":"https://git.kernel.org/stable/c/e76946110137703c16423baf6ee177b751a34b7e","tags":[]}],"priority":{"score":8.3,"factors":[{"name":"EPSS percentile","points":2.88},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 68f83057b913467a999e1bf9e0da6a119668f769, < e7c16028a424dd35be1064a68fa318be4359310f",">= 68f83057b913467a999e1bf9e0da6a119668f769, < 835b69c868f53f959d4986bbecd561ba6f38e492",">= 68f83057b913467a999e1bf9e0da6a119668f769, < e76946110137703c16423baf6ee177b751a34b7e"]},{"vendor":"Linux","product":"Linux","versions":["6.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-02-27T18:14:15.335144Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-5141","exploited":false,"provenance":"source"}}