What’s Vulnerable › Vulnerabilities
CVE-2024-35874: aio: Fix null ptr deref in aio_complete() wakeup
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-05-19 · updated 2026-08-04
- Weakness: CWE-476
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.
Affected products
- Linux kernel: from 6.8 before 6.8.5; 6.9-rc1, 6.9-rc2 — fixed in 6.8.5
How to fix
Upgrade to a fixed version: Linux kernel 6.8.5. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/9678bcc6234d83759fe091c197f5017a32b468da
- https://git.kernel.org/stable/c/caeb4b0a11b3393e43f7fa8e0a5a18462acc66bd
- https://git.kernel.org/stable/c/9678bcc6234d83759fe091c197f5017a32b468da
- https://git.kernel.org/stable/c/caeb4b0a11b3393e43f7fa8e0a5a18462acc66bd
Get alerted when CVE-2024-35874 or the next vulnerability affects your stack