# CVE-2024-40922: io\_uring/rsrc: don't lock while !TASK\_RUNNING

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-07-12T12:25:03.570Z
- **Modified:** 2026-06-17T07:46:52.617Z

## Who should check

- Anyone running Linux \>= 4ea15b56f0810f0d8795d475db1bb74b3a7c1b2f, \< 0c9df3df0c888d9ec8d11a68474a4aa04d371cff; \>= 4ea15b56f0810f0d8795d475db1bb74b3a7c1b2f, \< 4429c6c77e176a4c5aa7a3bbd1632f9fc0582518; \>= 4ea15b56f0810f0d8795d475db1bb74b3a7c1b2f, \< 54559642b96116b45e4b5ca7fd9f7835b8561272
- Anyone running Linux 6.4

## Description

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

io\_uring/rsrc: don't lock while !TASK\_RUNNING

There is a report of io\_rsrc\_ref\_quiesce() locking a mutex while not
TASK\_RUNNING, which is due to forgetting restoring the state back after
io\_run\_task\_work\_sig() and attempts to break out of the waiting loop.

do not call blocking ops when !TASK\_RUNNING; state=1 set at
\[\<ffffffff815d2494\>\] prepare\_to\_wait+0xa4/0x380
kernel/sched/wait.c:237
WARNING: CPU: 2 PID: 397056 at kernel/sched/core.c:10099
\_\_might\_sleep+0x114/0x160 kernel/sched/core.c:10099
RIP: 0010:\_\_might\_sleep+0x114/0x160 kernel/sched/core.c:10099
Call Trace:
 \<TASK\>
 \_\_mutex\_lock\_common kernel/locking/mutex.c:585 \[inline\]
 \_\_mutex\_lock+0xb4/0x940 kernel/locking/mutex.c:752
 io\_rsrc\_ref\_quiesce+0x590/0x940 io\_uring/rsrc.c:253
 io\_sqe\_buffers\_unregister+0xa2/0x340 io\_uring/rsrc.c:799
 \_\_io\_uring\_register io\_uring/register.c:424 \[inline\]
 \_\_do\_sys\_io\_uring\_register+0x5b9/0x2400 io\_uring/register.c:613
 do\_syscall\_x64 arch/x86/entry/common.c:52 \[inline\]
 do\_syscall\_64+0xd8/0x270 arch/x86/entry/common.c:83
 entry\_SYSCALL\_64\_after\_hwframe+0x6f/0x77

## Affected and fixed versions

- Linux: \>= 4ea15b56f0810f0d8795d475db1bb74b3a7c1b2f, \< 0c9df3df0c888d9ec8d11a68474a4aa04d371cff; \>= 4ea15b56f0810f0d8795d475db1bb74b3a7c1b2f, \< 4429c6c77e176a4c5aa7a3bbd1632f9fc0582518; \>= 4ea15b56f0810f0d8795d475db1bb74b3a7c1b2f, \< 54559642b96116b45e4b5ca7fd9f7835b8561272 (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- Upgrade Linux to 54559642b96116b45e4b5ca7fd9f7835b8561272 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-40922. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-40922.md
Affected: Linux >= 4ea15b56f0810f0d8795d475db1bb74b3a7c1b2f, < 0c9df3df0c888d9ec8d11a68474a4aa04d371cff; >= 4ea15b56f0810f0d8795d475db1bb74b3a7c1b2f, < 4429c6c77e176a4c5aa7a3bbd1632f9fc0582518; >= 4ea15b56f0810f0d8795d475db1bb74b3a7c1b2f, < 54559642b96116b45e4b5ca7fd9f7835b8561272; Linux 6.4
Fixed in: Linux 0c9df3df0c888d9ec8d11a68474a4aa04d371cff, Linux 4429c6c77e176a4c5aa7a3bbd1632f9fc0582518, Linux 54559642b96116b45e4b5ca7fd9f7835b8561272

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-40922 being exploited?

There is no confirmed exploitation: CVE-2024-40922 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-40922?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-40922?

Linux \>= 4ea15b56f0810f0d8795d475db1bb74b3a7c1b2f, \< 0c9df3df0c888d9ec8d11a68474a4aa04d371cff; \>= 4ea15b56f0810f0d8795d475db1bb74b3a7c1b2f, \< 4429c6c77e176a4c5aa7a3bbd1632f9fc0582518; \>= 4ea15b56f0810f0d8795d475db1bb74b3a7c1b2f, \< 54559642b96116b45e4b5ca7fd9f7835b8561272; Linux 6.4.

### Is there a fix for CVE-2024-40922?

Yes. Fixed in Linux 0c9df3df0c888d9ec8d11a68474a4aa04d371cff, Linux 4429c6c77e176a4c5aa7a3bbd1632f9fc0582518, Linux 54559642b96116b45e4b5ca7fd9f7835b8561272. Upgrade Linux to 54559642b96116b45e4b5ca7fd9f7835b8561272 or later.

### How do I check if I'm affected by CVE-2024-40922?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/0c9df3df0c888d9ec8d11a68474a4aa04d371cff>
- patch: <https://git.kernel.org/stable/c/4429c6c77e176a4c5aa7a3bbd1632f9fc0582518>
- patch: <https://git.kernel.org/stable/c/54559642b96116b45e4b5ca7fd9f7835b8561272>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-40922>

HTML: <https://flawdb.com/CVE-2024-40922> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-40922>
