Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2026-46242: Linux kernel eventpoll ep_remove() use-after-free

Published May 30, 2026 · Updated 23 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS0.18%4th percentile
CISA KEVNoNot listed
In the wildReported2 exploitation records in Mallory
Vendor
Linux
IdentifiersCVE-2026-46242CWE-416 · Use After Free
Also known asbad_epoll

CVE-2026-46242 is a race-induced use-after-free vulnerability in the Linux kernel eventpoll subsystem. During ep_remove(), file->f_ep is cleared under file->f_lock, but the file object continues to be used without a reference preventing concurrent destruction. A concurrent __fput() can observe the cleared pointer, bypass eventpoll_release_file(), and free the file. When one epoll instance watches another, this can also free the watched struct eventpoll before hlist_del_rcu() updates its embedded list head, causing a write into freed memory. Because struct file uses SLAB_TYPESAFE_BY_RCU, its storage can also be recycled while ep_remove() still uses its lock and fields, potentially causing an attacker-controllable kmem_cache_free() against the wrong slab cache.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

A local, low-privileged attacker can trigger kernel memory corruption, potentially causing kernel crashes and denial of service or enabling privilege escalation and code execution in kernel context. Successful exploitation could compromise system confidentiality, integrity, and availability. These higher-impact outcomes are potential consequences; a specific end-to-end exploitation outcome is not established.

Mitigation

If you can’t patch tonight, do this now.

Until patched, restrict local access by untrusted users and workloads, particularly their ability to execute arbitrary native code and manipulate epoll file descriptors. Apply least privilege and host-access controls. These measures reduce exposure but do not correct the defect; no reliable vulnerability-specific workaround is established.

Remediation

Patch, then assume compromise.

Install a vendor kernel update or compatible live patch containing the eventpoll ep_remove() fix. The fix acquires a file reference using epi_fget() before entering the critical section, preventing concurrent file destruction and keeping the watched eventpoll object alive. If reference acquisition fails, it leaves f_ep intact so synchronized teardown performs cleanup safely. Debian fixed versions include 6.12.101-1 for trixie/security, 7.1.8-2 for forky, and 7.1.9-1 for sid; Debian bullseye and bookworm are not affected because the vulnerable code is absent. Google COS fixes include version 18613.613.29 or later for the COS 117 stream and 18867.381.148 or later for the COS 121 stream. For other distributions, apply the update appropriate to the deployed kernel stream. Reboot into the fixed kernel unless an applicable live patch has been activated, and verify the running kernel or live-patch status.

Public exploits

Exploits

2 exploits validated by Mallory's analysis. Hidden: 5 rejected by Mallory's analysis as not a working exploit.

View more in app →
CVE-2026-46242Repository contains a single C proof-of-concept exploit and a README. The main file, CVE-2026-46242.c, is a self-contained local Linux kernel exploit targeting CVE-2026-46242, a use-after-free race in the eventpoll/epoll subsystem. The exploit creates multiple interconnected epoll instances, starts a racing thread that repeatedly closes and recreates selected epoll file descriptors, and concurrently performs repeated close/recreate operations on target descriptors to trigger a UAF condition. It also performs light file-descriptor spraying using /dev/null and dup() to improve allocator reuse and detect or leverage corruption. The intended post-exploitation outcome is local privilege escalation; if the process becomes UID 0, it executes /bin/sh. There are no network indicators or remote endpoints because this is a purely local exploit. The README describes affected kernel ranges, impact, and mitigation, but it inaccurately claims the repository does not contain exploit code; the C file is clearly exploit code. Overall, this is an operational local privilege-escalation PoC with a basic hardcoded payload rather than a detection-only script.0xBlackash · Disclosed Jul 4, 2026 · c · markdown · localOperationalCVE-2026-46242Repository is a small standalone Linux kernel local privilege escalation PoC for CVE-2026-46242 ('Bad Epoll'). The main artifact is exploit.c, a large C program implementing a multi-phase exploit chain against a race-condition use-after-free in the Linux epoll subsystem. The code is not part of a common exploit framework. README.md briefly states this is a 'full poc and lpe' and lists affected kernel ranges. analysis.md is a long technical write-up describing the vulnerability, root cause in fs/eventpoll.c, affected versions, exploitation strategy, and defensive context. Two GitHub Actions workflows automate compilation and QEMU-based verification against Ubuntu mainline kernel 6.4, including one variant that disables KASLR with the nokaslr boot parameter and relaxes kptr_restrict/dmesg_restrict to make testing easier. The exploit itself is clearly intended as a local privilege escalation tool rather than a remote exploit. It uses epoll, timerfd, eventfd, pipes, atomics, threading, CPU affinity, and timing primitives to repeatedly trigger a close-vs-close race in linked epoll objects. The visible structure shows phases for setup, linked epoll pair creation, heap spraying, slab hole creation, repeated race attempts, cross-cache reclamation, an infoleak verification step, and finally ROP-based privilege escalation. The code comments and visible symbols indicate it resolves or accepts a kernel base address, derives absolute addresses for commit_creds, init_cred, a KPTI trampoline, and a pop rdi gadget, then builds and triggers a kernel ROP chain to call commit_creds(init_cred) and return to user mode where a root shell is spawned. Capabilities: unprivileged local execution, repeated race triggering, heap shaping, optional KASLR bypass/address discovery, kernel infoleak checking, kernel ROP construction, privilege escalation to root, and root shell spawning. The exploit appears to be a research PoC rather than a fully weaponized tool: it contains extensive commentary, explicit failure messages, and even notes that some corruption stages may not be fully implemented ('f_op corruption not implemented in this PoC'). That makes POC the best maturity classification despite the presence of a root-shell payload path. Fingerprintable endpoints are mostly local file paths and CI download URLs. In the exploit code, notable paths include /proc/kallsyms for kernel symbol leakage, /proc/self/fdinfo for leak verification, and /bin/sh for post-exploitation shell execution. In the workflows, the repository downloads exploit.c from raw.githubusercontent.com and a kernel package from kernel.ubuntu.com, then mounts /proc, /sys, and /dev inside an initramfs and executes /bin/exploit. Overall, the repository's purpose is to demonstrate and validate exploitation of a Linux kernel epoll UAF leading to local root on vulnerable kernels, with supporting documentation and reproducible QEMU test harnesses.Baba01hacker666 · Disclosed Jul 11, 2026 · c · yaml · localPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
LinuxLinux Kerneloperating_system
FAQ

Frequently asked questions

Is CVE-2026-46242 exploited in the wild?
Yes. As of Nov 5, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2026-46242?
Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2026-46242, the earliest disclosed Jul 4, 2026.
Is there a patch for CVE-2026-46242?
Install a vendor kernel update or compatible live patch containing the eventpoll ep_remove() fix. The fix acquires a file reference using epi_fget() before entering the critical section, preventing concurrent file destruction and keeping the watched eventpoll object alive.
What products are affected by CVE-2026-46242?
Linux Kernel.
How severe is CVE-2026-46242?
CVE-2026-46242 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.18% (4th percentile) as of Nov 5, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity105Community discussion across Reddit, Mastodon, and other social sources.