CVE-2026-46242·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: eventpoll: fix ep_remove struct eventpoll / struct file UAF ep_remove() (via ep_remove_file()) cleared file->f_ep under file->f_lock but then kept using @file inside the critical section (is_file_epoll(), hlist_del_rcu() through the head, spin_unlock). A concurrent __fput() taking the eventpoll_release() fastpath in that window observed the transient NULL, skipped eventpoll_release_file() and ran to f_op->release / file_free(). For the epoll-watches-epoll case, f_op->release is ep_eventpoll_release() -> ep_clear_and_put() -> ep_free(), which kfree()s the watched struct eventpoll. Its embedded ->refs hlist_head is exactly where epi->fllink.pprev points, so the subsequent hlist_del_rcu()'s "*pprev = next" scribbles into freed kmalloc-192 memory. In addition, struct file is SLAB_TYPESAFE_BY_RCU, so the slot backing @file could be recycled by alloc_empty_file() -- reinitializing f_lock and f_ep -- while ep_remove() is still nominally inside that lock. The upshot is an attacker-controllable kmem_cache_free() against the wrong slab cache. Pin @file via epi_fget() at the top of ep_remove() and gate the critical section on the pin succeeding. With the pin held @file cannot reach refcount zero, which holds __fput() off and transitively keeps the watched struct eventpoll alive across the hlist_del_rcu() and the f_lock use, closing both UAFs. If the pin fails @file has already reached refcount zero and its __fput() is in flight. Because we bailed before clearing f_ep, that path takes the eventpoll_release() slow path into eventpoll_release_file() and blocks on ep->mtx until the waiter side's ep_clear_and_put() drops it. The bailed epi's share of ep->refcount stays intact, so the trailing ep_refcount_dec_and_test() in ep_clear_and_put() cannot free the eventpoll out from under eventpoll_release_file(); the orphaned epi is then cleaned up there. A successful pin also proves we are not racing eventpoll_release_file() on this epi, so drop the now-redundant re-check of epi->dying under f_lock. The cheap lockless READ_ONCE(epi->dying) fast-path bailout stays.
- Severity
- high
- Software
- Kernel
- Fixed in
- 7.0.10
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.18% — higher than 7% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-46242 scores 7.8 on CVSS, so a successful attack would be serious — but at 0.18%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.19
Until: 7.0.10
Fixed in: 7.0.10
How to fix this CVE
Update your Linux kernel to version 7.0.10 or later to resolve a use-after-free vulnerability in the eventpoll subsystem that could allow privilege escalation. This patch corrects a race condition in ep_remove() that could lead to memory corruption when multiple file descriptor operations occur concurrently. Apply the update immediately, especially for systems running kernel versions 6.19 through 7.0.9.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check current kernel version: uname -r
- Verify if system is vulnerable: if kernel version is between 6.19 and 7.0.9 (inclusive), the system is affected
- Check for eventpoll-related system calls in audit logs: grep -i eventpoll /var/log/audit/audit.log
- Confirm patch installation: uname -r should show 7.0.10 or later; verify with: cat /proc/version
FAQ
What is CVE-2026-46242?
This is a use-after-free vulnerability in the Linux kernel's eventpoll mechanism that occurs when file descriptors are removed during concurrent operations. An attacker with local access could trigger memory corruption leading to privilege escalation.
Is CVE-2026-46242 being actively exploited?
No, this vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities catalog and no public exploit is available.
What versions of Kernel are affected by CVE-2026-46242?
Linux kernel versions 6.19 through 7.0.9 are vulnerable; version 7.0.10 and later contain the fix.
How do I check if my server is vulnerable to CVE-2026-46242?
Run 'uname -r' to see your kernel version; if it shows 6.19 or higher but below 7.0.10, your system is vulnerable.
Does Defensia detect CVE-2026-46242?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Linux kernel is installed on a monitored server, CVE-2026-46242 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/2de4db145b2992da496fea6c51f9839be678ae24
- https://git.kernel.org/stable/c/3e1144d2515d28e4312e663ea05eac203101491d
- https://git.kernel.org/stable/c/9324de74a3a59b9fde9b62ee45ebaa71458ba2e5
- https://git.kernel.org/stable/c/a10fbbe74e1c743beb1bb312109366667461df8a
- https://git.kernel.org/stable/c/a6dc643c69311677c574a0f17a3f4d66a5f3744b
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-46242. Free for 1 server.
Get started free