CVE-2024-35815 fs/aio: Check IOCB_AIO_RW before the struct aio_kiocb conversion
A local attacker can cause a kernel crash by triggering a null pointer dereference in the Linux kernel's asynchronous I/O subsystem.
- 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-35815?
CVE-2024-35815 is a medium-severity vulnerability in Debian Debian Linux, 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:
fs/aio: Check IOCB_AIO_RW before the struct aio_kiocb conversion
The first kiocb_set_cancel_fn() argument may point at a struct kiocb that is not embedded inside struct aio_kiocb. With the current code, depending on the compiler, the req->ki_ctx read happens either before the IOCB_AIO_RW test or after that test. Move the req->ki_ctx read such that it is guaranteed that the IOCB_AIO_RW test happens first.
Which versions are affected by CVE-2024-35815?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2024-35815?
Apply the vendor's patch.
Is CVE-2024-35815 being exploited?
There is no known exploitation of CVE-2024-35815 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as BELL-CVE-2024-35815, DEBIAN-CVE-2024-35815, GHSA-w6jm-4gmf-c963, UBUNTU-CVE-2024-35815.