CVE-2024-35874 aio: Fix null ptr deref in aio_complete() wakeup
A null pointer dereference in the Linux kernel's aio_complete function can cause a system crash, requiring a kernel patch.
- 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-35874?
CVE-2024-35874 is a high-severity vulnerability in Linux kernel, published on 19 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:
aio: Fix null ptr deref in aio_complete() wakeup
list_del_init_careful() needs to be the last access to the wait queue entry - it effectively unlocks access.
Previously, finish_wait() would see the empty list head and skip taking the lock, and then we'd return - but the completion path would still attempt to do the wakeup after the task_struct pointer had been overwritten.
Weakness: CWE-476
Which versions are affected by CVE-2024-35874?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-35874?
Apply the vendor's patch.
Is CVE-2024-35874 being exploited?
There is no known exploitation of CVE-2024-35874 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-35874, DEBIAN-CVE-2024-35874, GHSA-mcf7-h35p-c29h, UBUNTU-CVE-2024-35874.