CVE-2024-56709: io_uring: check if iowq is killed before queuing
In the Linux kernel, the following vulnerability has been resolved:
iouring: check if iowq is killed before queuing
task work can be executed after the task has gone through iouring termination, whether it's the final taskwork run or the fallback path. In this case, task work will find ->iowq being already killed and null'ed, which is a problem if it then tries to forward the request to ioqueueiowq(). Make ioqueueiowq() fail requests in this case.
Note that it also checks PFKTHREAD, because the user can first close a DEFERTASKRUN ring and shortly after kill the task, in which case ->iowq check would race.
Other sources
In the Linux kernel, the following vulnerability has been resolved:
iouring: check if iowq is killed before queuing
task work can be executed after the task has gone through iouring termination, whether it's the final taskwork run or the fallback path. In this case, task work will find -iowq being already killed and null'ed, which is a problem if it then tries to forward the request to ioqueueiowq(). Make ioqueueiowq() fail requests in this case.
Note that it also checks PFKTHREAD, because the user can first close a DEFERTASKRUN ring and shortly after kill the task, in which case -iowq check would race.
— IBM
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.129-1~deb11u1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-56709?
CVE-2024-56709 has a high severity rating as it could allow task work to be executed improperly after termination.
How do I fix CVE-2024-56709?
To mitigate CVE-2024-56709, update your Linux kernel to the latest version where this vulnerability has been addressed.
What versions of the Linux kernel are affected by CVE-2024-56709?
CVE-2024-56709 affects multiple versions of the Linux kernel that utilize io_uring functionality.
Is CVE-2024-56709 being actively exploited?
As of now, there have been no confirmed reports of active exploitation for CVE-2024-56709.
What impact does CVE-2024-56709 have on system performance?
CVE-2024-56709 may lead to unexpected behavior in task work execution, potentially affecting system stability and performance.