CVE-2026-143174: eventpoll: wake the next waiter when a woken waiter is killed
In the Linux kernel, the following vulnerability has been resolved:
eventpoll: wake the next waiter when a woken waiter is killed
Processes sharing an epoll instance can sleep forever while an event is ready. An event wakes only one waiter, which then wakes the next one in epdonescan() if events are still ready. Since commit c257a340ede0 ("fs, epoll: short circuit fetching events if thread has been killed"), epsendevents() returns before the scan when the waiter has a fatal signal. If the woken waiter is killed before it runs, nobody wakes the next one:
Task A Task B Task C epollwait(ep, -1) epollwait(ep, -1) write(efd) / wakes A only / kill(A, SIGKILL) epsendevents() return -EINTR / skips epdonescan() / / still asleep /
B then sleeps until another file on the instance becomes ready, if ever. This can hit eg a pre-fork server whose worker gets OOM killed. Commit 7fab29e35630 ("fs/epoll: restore waking from epdonescan()") fixed the same kind of hang when the wakeup in epdonescan() was removed.
Keep the early return so that a dying task still doesn't take events nobody will see, but wake the next waiter there if events are ready, as epdonescan() would have. With the fix, B gets the event.
This bug was identified and confirmed with the help of a deterministic hypervisor currently under development. The C reproducer below however hits it within about 2s.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
In ep_send_events(), keep the early return when the waiter has a fatal signal, but wake the next waiter if events are still ready.
Event History
Frequently Asked Questions
Which deployments are most likely to encounter this issue?
Applications with multiple processes or threads waiting on the same epoll instance are exposed to the hang condition. A pre-fork server is an example, particularly if a worker can be OOM-killed while handling an epoll wakeup.
What sequence causes another waiter to remain blocked?
An event must wake one waiter, and that waiter must receive a fatal signal before it completes the event scan and wakes another waiter. Other waiters can then remain asleep despite a ready event until another file on the shared epoll instance becomes ready.
How might the issue appear in production?
A worker waiting in epoll_wait() can remain blocked indefinitely even though an event is already ready. The condition may clear only when an additional event occurs on another file associated with that epoll instance.