Bug 2334795 (CVE-2024-56709) - CVE-2024-56709 kernel: io_uring: check if iowq is killed before queuing
Summary: CVE-2024-56709 kernel: io_uring: check if iowq is killed before queuing
Keywords:
Status: NEW
Alias: CVE-2024-56709
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-29 09:01 UTC by OSIDB Bzimport
Modified: 2024-12-29 10:18 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-12-29 09:01:34 UTC
In the Linux kernel, the following vulnerability has been resolved:

io_uring: check if iowq is killed before queuing

task work can be executed after the task has gone through io_uring
termination, whether it's the final task_work run or the fallback path.
In this case, task work will find ->io_wq being already killed and
null'ed, which is a problem if it then tries to forward the request to
io_queue_iowq(). Make io_queue_iowq() fail requests in this case.

Note that it also checks PF_KTHREAD, because the user can first close
a DEFER_TASKRUN ring and shortly after kill the task, in which case
->iowq check would race.

Comment 1 Avinash Hanwate 2024-12-29 10:13:57 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024122918-CVE-2024-56709-655c@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.