CVE-2024-35831 io_uring: Fix release of pinned pages when __io_uaddr_map fails
A memory leak in the Linux kernel io_uring subsystem can lead to resource exhaustion and denial of service when page pinning fails.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-35831?
CVE-2024-35831 is a medium-severity memory corruption vulnerability in Linux kernel, published on 17 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
io_uring: Fix release of pinned pages when __io_uaddr_map fails
Looking at the error path of __io_uaddr_map, if we fail after pinning the pages for any reasons, ret will be set to -EINVAL and the error handler won't properly release the pinned pages.
I didn't manage to trigger it without forcing a failure, but it can happen in real life when memory is heavily fragmented.
Weakness: CWE-401
Which versions are affected by CVE-2024-35831?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-35831?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-35831 being exploited?
There is no known exploitation of CVE-2024-35831 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-35831, DEBIAN-CVE-2024-35831, GHSA-hhcf-pxch-r4cf, UBUNTU-CVE-2024-35831.