All reports
Medium

kernel: aio: Fix null ptr deref in aio_complete() wakeup

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2024-35874

Probability of exploitation in the next 30 days: 0.21%

FIRST EPSS · 2026-11-19

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.

A vulnerability was found in the Linux kernel that causes a NULL pointer dereference in the aio_complete() function during a wakeup operation. The issue arises because finish_wait() may skip locking if it encounters an empty list head. This leads to a NULL pointer dereference when attempting a wakeup after the task structure pointer is overwritten.