CVE-2026-142868: aio: prevent eventfd/epoll recursion on poll
In the Linux kernel, the following vulnerability has been resolved:
aio: prevent eventfd/epoll recursion on poll
aiopollwake() can complete a keyed poll request inline while the provider waitqueue lock is held. If the polled file is an epoll instance and the AIO result eventfd is watched by that same instance, signaling the result can feed back into epoll and try to take the provider waitqueue lock again.
For example, a timerfd wake can follow this path:
timerfd -> eppollcallback -> aiopollwake -> aiocomplete -> eventfdsignal -> eppollcallback -> eppollsafewake
The second eppollsafewake() recursively acquires ep->pollwait.lock. eventfdsignalallowed() does not prevent this because the wake chain did not begin in eventfd, so the task's eventfd recursion bit is still clear when aiopollwake() decides to complete inline.
An unprivileged process can construct this graph and make a CPU spin on the recursive lock. DEBUGSPINLOCK reports "BUG: spinlock recursion", and lockdep reports the same epoll waitqueue lock as both held and requested.
Always defer eventfd-backed poll completions through the existing aiopollputwork() path. At this point the request has already been detached from the waitqueue and active request list, so the work item can publish the completion after the provider callback releases its lock. Poll completions without a result eventfd remain inline.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Compensating control
Defer eventfd-backed poll completions through the existing aio_poll_put_work() path; keep poll completions without a result eventfd inline.
Event History
Frequently Asked Questions
Who can exploit this issue?
An unprivileged local process can construct the required poll, epoll, and eventfd relationship. The described impact is a CPU spin on a recursively acquired epoll waitqueue lock.
What conditions are needed to trigger it?
The polled file must be an epoll instance, and the AIO result eventfd must be watched by that same epoll instance. A wakeup such as a timerfd event can then cause inline AIO poll completion and feed the eventfd signal back into epoll.
How can I identify whether this is occurring?
On systems with DEBUG_SPINLOCK or lockdep enabled, the issue can report "BUG: spinlock recursion" and show the same epoll waitqueue lock as both held and requested. Affected systems may also exhibit a CPU spinning on the recursive lock.