CVE-2024-50079: io_uring/sqpoll: ensure task state is TASK_RUNNING when running task_work

Published Oct 29, 2024
·
Updated

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

iouring/sqpoll: ensure task state is TASKRUNNING when running taskwork

When the sqpoll is exiting and cancels pending work items, it may need to run taskwork. If this happens from within iouringcancelgeneric(), then it may be under waiting for the iouringtask waitqueue. This results in the below splat from the scheduler, as the ring mutex may be attempted grabbed while in a TASKINTERRUPTIBLE state.

Ensure that the task state is set appropriately for that, just like what is done for the other cases in ioruntaskwork().

do not call blocking ops when !TASKRUNNING; state=1 set at [<0000000029387fd2>] preparetowait+0x88/0x2fc WARNING: CPU: 6 PID: 59939 at kernel/sched/core.c:8561 mightsleep+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 : mightsleep+0xf4/0x140 lr : mightsleep+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: mightsleep+0xf4/0x140 mutexlock+0x84/0x124 iohandletwlist+0xf4/0x260 tctxtaskworkrun+0x94/0x340 ioruntaskwork+0x1ec/0x3c0 iouringcancelgeneric+0x364/0x524 iosqthread+0x820/0x124c retfromfork+0x10/0x20

Other sources

This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.

Launchpad

Affected Software

5 affected componentsFixes available
Linux Linux kernel>=6.9<6.11.5
Linux Linux kernel=6.12-rc1
Linux Linux kernel=6.12-rc2
Linux Linux kernel=6.12-rc3
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1

Event History

Oct 29, 2024
CVE Published
via MITRE·12:50 AM
Data Sourced
via MITRE·12:50 AM
Description
Data Sourced
via NVD·01:15 AM
RemedyDescriptionSeverityAffected Software
Feb 20, 2025
Data Sourced
via Launchpad·12:45 AM
Description
Mar 28, 2025
Data Sourced
via Ubuntu·12:52 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-50079?

The severity of CVE-2024-50079 is classified to be of moderate impact.

2

How do I fix CVE-2024-50079?

To fix CVE-2024-50079, update the Linux kernel to version 6.12 or later.

3

Which versions of the Linux kernel are affected by CVE-2024-50079?

CVE-2024-50079 affects Linux kernel versions from 6.9 up to 6.11.5 and includes versions 6.12-rc1, 6.12-rc2, and 6.12-rc3.

4

What does CVE-2024-50079 affect in the Linux kernel?

CVE-2024-50079 affects the io_uring subsystem in the Linux kernel.

5

Is CVE-2024-50079 related to task management in Linux?

Yes, CVE-2024-50079 involves task management specifically regarding the task state during task work execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203