aio: prevent eventfd/epoll recursion on poll
Summary
| CVE | CVE-2026-142868 |
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-12-03 04:18:24 UTC |
| Updated | 2026-12-03 04:18:24 UTC |
| Description | In the Linux kernel, the following vulnerability has been resolved:
aio: prevent eventfd/epoll recursion on poll
aio_poll_wake() 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 -> ep_poll_callback -> aio_poll_wake -> aio_complete
-> eventfd_signal -> ep_poll_callback -> ep_poll_safewake
The second ep_poll_safewake() recursively acquires ep->poll_wait.lock.
eventfd_signal_allowed() does not prevent this because the wake chain did
not begin in eventfd, so the task's eventfd recursion bit is still clear
when aio_poll_wake() decides to complete inline.
An unprivileged process can construct this graph and make a CPU spin on the
recursive lock. DEBUG_SPINLOCK 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
aio_poll_put_work() 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. |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|
| CNA |
Linux |
Linux |
affected e8693bcfa0b4a56268946f0756153d942cb66cf7 7ed7db5b108d3e84755652c607c38329d30eb566 git |
Not specified |
| CNA |
Linux |
Linux |
affected e8693bcfa0b4a56268946f0756153d942cb66cf7 397f351f79f90fffdb5843e1fb998d799a11cbd1 git |
Not specified |
| CNA |
Linux |
Linux |
affected e8693bcfa0b4a56268946f0756153d942cb66cf7 3452c46499c4e60087f907c91637eb325d541753 git |
Not specified |
| CNA |
Linux |
Linux |
affected e8693bcfa0b4a56268946f0756153d942cb66cf7 3ab92a6d711792c3c86b428dfb658151e0ff7c5c git |
Not specified |
| CNA |
Linux |
Linux |
affected e8693bcfa0b4a56268946f0756153d942cb66cf7 17dd102dcaab51ea9323ede174978ab6fe4a62eb git |
Not specified |
| CNA |
Linux |
Linux |
affected e8693bcfa0b4a56268946f0756153d942cb66cf7 96540793dd7e55b81e0724e9efa024bbd26dbfaa git |
Not specified |
| CNA |
Linux |
Linux |
affected e8693bcfa0b4a56268946f0756153d942cb66cf7 75484c58a1b75518f405e61cd20bf67afc245a7d git |
Not specified |
| CNA |
Linux |
Linux |
affected e8693bcfa0b4a56268946f0756153d942cb66cf7 398e3fa789aa5ffddc8689d8cbc7b31e1824130c git |
Not specified |
| CNA |
Linux |
Linux |
affected 4.19 |
Not specified |
| CNA |
Linux |
Linux |
unaffected 4.19 semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.10.275 5.10.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 5.15.226 5.15.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.1.193 6.1.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.6.163 6.6.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.12.117 6.12.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 6.18.63 6.18.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.3.4 7.3.* semver |
Not specified |
| CNA |
Linux |
Linux |
unaffected 7.4-rc1 * original_commit_for_fix |
Not specified |
References
| Reference | Source | Link | Tags |
|---|
| git.kernel.org/stable/c/3452c46499c4e60087f907c91637eb325d541753 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/3ab92a6d711792c3c86b428dfb658151e0ff7c5c |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/75484c58a1b75518f405e61cd20bf67afc245a7d |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/96540793dd7e55b81e0724e9efa024bbd26dbfaa |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/7ed7db5b108d3e84755652c607c38329d30eb566 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/397f351f79f90fffdb5843e1fb998d799a11cbd1 |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/17dd102dcaab51ea9323ede174978ab6fe4a62eb |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| git.kernel.org/stable/c/398e3fa789aa5ffddc8689d8cbc7b31e1824130c |
416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
git.kernel.org |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.