CVE-2021-47577
Severity CVSS v4.0:
Pending analysis
Type:
CWE-362
Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Publication date:
19/06/2024
Last modified:
29/09/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
io-wq: check for wq exit after adding new worker task_work<br />
<br />
We check IO_WQ_BIT_EXIT before attempting to create a new worker, and<br />
wq exit cancels pending work if we have any. But it&#39;s possible to have<br />
a race between the two, where creation checks exit finding it not set,<br />
but we&#39;re in the process of exiting. The exit side will cancel pending<br />
creation task_work, but there&#39;s a gap where we add task_work after we&#39;ve<br />
canceled existing creations at exit time.<br />
<br />
Fix this by checking the EXIT bit post adding the creation task_work.<br />
If it&#39;s set, run the same cancelation that exit does.
Impact
Base Score 3.x
4.70
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.15.11 (excluding) | |
| cpe:2.3:o:linux:linux_kernel:5.16:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.16:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.16:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:5.16:rc4:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



