CVE-2024-53187: io_uring: check for overflows in io_pin_pages
In the Linux kernel, the following vulnerability has been resolved:
iouring: check for overflows in iopinpages
WARNING: CPU: 0 PID: 5834 at iouring/memmap.c:144 iopinpages+0x149/0x180 iouring/memmap.c:144 CPU: 0 UID: 0 PID: 5834 Comm: syz-executor825 Not tainted 6.12.0-next-20241118-syzkaller #0 Call Trace: <TASK> iouaddrmap+0xfb/0x2d0 iouring/memmap.c:183 ioringsmap iouring/iouring.c:2611 [inline] ioallocatescqurings+0x1c0/0x650 iouring/iouring.c:3470 iouringcreate+0x5b5/0xc00 iouring/iouring.c:3692 iouringsetup iouring/iouring.c:3781 [inline] ... </TASK>
iopinpages()'s uaddr parameter came directly from the user and can be garbage. Don't just add size to it as it can overflow.
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
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-53187?
CVE-2024-53187 has a high severity due to potential memory overflow vulnerabilities in the Linux kernel's io_uring functionality.
How do I fix CVE-2024-53187?
To fix CVE-2024-53187, update the Linux kernel to version 6.12.2 or later.
Which Linux kernel versions are affected by CVE-2024-53187?
CVE-2024-53187 affects Linux kernel versions up to 6.11.11 and from 6.12 to 6.12.2.
What components are impacted by CVE-2024-53187?
CVE-2024-53187 specifically impacts the io_uring component in the Linux kernel.
What potential risks are associated with CVE-2024-53187?
The risks associated with CVE-2024-53187 include possible system crashes and unauthorized access due to memory overflows.