CVE-2024-26764: fs/aio: Restrict kiocb_set_cancel_fn() to I/O submitted via libaio
In the Linux kernel, the following vulnerability has been resolved:
fs/aio: Restrict kiocbsetcancelfn() to I/O submitted via libaio
If kiocbsetcancelfn() is called for I/O submitted via iouring, the following kernel warning appears:
WARNING: CPU: 3 PID: 368 at fs/aio.c:598 kiocbsetcancelfn+0x9c/0xa8 Call trace: kiocbsetcancelfn+0x9c/0xa8 ffsepfilereaditer+0x144/0x1d0 ioread+0x19c/0x498 ioissuesqe+0x118/0x27c iosubmitsqes+0x25c/0x5fc arm64sysiouringenter+0x104/0xab0 invokesyscall+0x58/0x11c el0svccommon+0xb4/0xf4 doel0svc+0x2c/0xb0 el0svc+0x2c/0xa4 el0t64synchandler+0x68/0xb4 el0t64sync+0x1a4/0x1a8
Fix this by setting the IOCBAIORW flag for read and write I/O that is submitted by libaio.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-26764?
CVE-2024-26764 is classified as a medium severity vulnerability in the Linux kernel.
How do I fix CVE-2024-26764?
To fix CVE-2024-26764, update the Linux kernel to one of the patched versions: 5.10.223-1, 5.10.226-1, 6.1.119-1, 6.1.123-1, 6.12.10-1, or 6.12.11-1.
What is impacted by CVE-2024-26764?
CVE-2024-26764 affects Linux kernel systems that utilize the kiocb_set_cancel_fn() function, particularly with I/O submitted via io_uring.
What are the symptoms of CVE-2024-26764?
The symptoms include kernel warnings appearing related to the usage of the kiocb_set_cancel_fn() in inappropriate contexts.
Is CVE-2024-26764 exploitable?
CVE-2024-26764 is not known to be directly exploitable; however, it is advisable to apply the patch to mitigate potential issues.