# CVE-2024-50079: io\_uring/sqpoll: ensure task state is TASK\_RUNNING when running task\_work

> 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, CNA) `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.26% (percentile 11, 2026-11-26)
- **Published:** 2024-10-29T00:50:21.508Z
- **Modified:** 2026-06-17T08:03:31.790Z

## Who should check

- Anyone running Linux \>= af5d68f8892f8ee8f137648b79ceb2abc153a19b, \< 887ba598d9cfb537bdb3dfd95f087ff8a08cb74d; \>= af5d68f8892f8ee8f137648b79ceb2abc153a19b, \< 8f7033aa4089fbaf7a33995f0f2ee6c9d7b9ca1b
- Anyone running Linux 6.9

## Description

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

io\_uring/sqpoll: ensure task state is TASK\_RUNNING when running task\_work

When the sqpoll is exiting and cancels pending work items, it may need
to run task\_work. If this happens from within io\_uring\_cancel\_generic(),
then it may be under waiting for the io\_uring\_task waitqueue. This
results in the below splat from the scheduler, as the ring mutex may be
attempted grabbed while in a TASK\_INTERRUPTIBLE state.

Ensure that the task state is set appropriately for that, just like what
is done for the other cases in io\_run\_task\_work().

do not call blocking ops when !TASK\_RUNNING; state=1 set at \[\<0000000029387fd2\>\] prepare\_to\_wait+0x88/0x2fc
WARNING: CPU: 6 PID: 59939 at kernel/sched/core.c:8561 \_\_might\_sleep+0xf4/0x140
Modules linked in:
CPU: 6 UID: 0 PID: 59939 Comm: iou-sqp-59938 Not tainted 6.12.0-rc3-00113-g8d020023b155 \#7456
Hardware name: linux,dummy-virt (DT)
pstate: 61400005 (nZCv daif +PAN -UAO -TCO +DIT -SSBS BTYPE=--)
pc : \_\_might\_sleep+0xf4/0x140
lr : \_\_might\_sleep+0xf4/0x140
sp : ffff80008c5e7830
x29: ffff80008c5e7830 x28: ffff0000d93088c0 x27: ffff60001c2d7230
x26: dfff800000000000 x25: ffff0000e16b9180 x24: ffff80008c5e7a50
x23: 1ffff000118bcf4a x22: ffff0000e16b9180 x21: ffff0000e16b9180
x20: 000000000000011b x19: ffff80008310fac0 x18: 1ffff000118bcd90
x17: 30303c5b20746120 x16: 74657320313d6574 x15: 0720072007200720
x14: 0720072007200720 x13: 0720072007200720 x12: ffff600036c64f0b
x11: 1fffe00036c64f0a x10: ffff600036c64f0a x9 : dfff800000000000
x8 : 00009fffc939b0f6 x7 : ffff0001b6327853 x6 : 0000000000000001
x5 : ffff0001b6327850 x4 : ffff600036c64f0b x3 : ffff8000803c35bc
x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff0000e16b9180
Call trace:
 \_\_might\_sleep+0xf4/0x140
 mutex\_lock+0x84/0x124
 io\_handle\_tw\_list+0xf4/0x260
 tctx\_task\_work\_run+0x94/0x340
 io\_run\_task\_work+0x1ec/0x3c0
 io\_uring\_cancel\_generic+0x364/0x524
 io\_sq\_thread+0x820/0x124c
 ret\_from\_fork+0x10/0x20

## Affected and fixed versions

- Linux: \>= af5d68f8892f8ee8f137648b79ceb2abc153a19b, \< 887ba598d9cfb537bdb3dfd95f087ff8a08cb74d; \>= af5d68f8892f8ee8f137648b79ceb2abc153a19b, \< 8f7033aa4089fbaf7a33995f0f2ee6c9d7b9ca1b (cvelist)
- Linux: 6.9 (cvelist)

## Mitigation

- Upgrade Linux to 8f7033aa4089fbaf7a33995f0f2ee6c9d7b9ca1b 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-50079. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-50079.md
Affected: Linux >= af5d68f8892f8ee8f137648b79ceb2abc153a19b, < 887ba598d9cfb537bdb3dfd95f087ff8a08cb74d; >= af5d68f8892f8ee8f137648b79ceb2abc153a19b, < 8f7033aa4089fbaf7a33995f0f2ee6c9d7b9ca1b; Linux 6.9
Fixed in: Linux 887ba598d9cfb537bdb3dfd95f087ff8a08cb74d, Linux 8f7033aa4089fbaf7a33995f0f2ee6c9d7b9ca1b

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-50079 being exploited?

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

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

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

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

Linux \>= af5d68f8892f8ee8f137648b79ceb2abc153a19b, \< 887ba598d9cfb537bdb3dfd95f087ff8a08cb74d; \>= af5d68f8892f8ee8f137648b79ceb2abc153a19b, \< 8f7033aa4089fbaf7a33995f0f2ee6c9d7b9ca1b; Linux 6.9.

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

Yes. Fixed in Linux 887ba598d9cfb537bdb3dfd95f087ff8a08cb74d, Linux 8f7033aa4089fbaf7a33995f0f2ee6c9d7b9ca1b. Upgrade Linux to 8f7033aa4089fbaf7a33995f0f2ee6c9d7b9ca1b or later.

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

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/887ba598d9cfb537bdb3dfd95f087ff8a08cb74d>
- patch: <https://git.kernel.org/stable/c/8f7033aa4089fbaf7a33995f0f2ee6c9d7b9ca1b>

## 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-50079>

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