aio: Fix null ptr deref in aio_complete() wakeup
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's aio_complete() wakeup path has a null pointer dereference caused by accessing a wait queue entry after it is effectively unlocked. An attacker could trigger a kernel fault during this path; the input does not specify the required access or user interaction.
Engineers running Linux kernels should check whether their kernel includes the aio_complete() wakeup fix; affected versions are not specified.