Skip to main content
Linux Security· Updated · 5 min read· in Technology

The Six-Instruction Race Condition Behind the Linux Kernel's 'Bad Epoll' Flaw

A newly disclosed Linux kernel vulnerability known as 'Bad Epoll' allows local privilege escalation to root on servers and Android devices. This evidence pack breaks down the six-instruction race condition, why frontier AI models missed it, and how the open-source community is deploying patches.

By Sergei Orlov

Share this story

Listen

A newly disclosed vulnerability in the Linux kernel, dubbed "Bad Epoll" (CVE-2026-46242), has surfaced as a critical test of modern operating system security and the limits of automated bug hunting. Discovered by security researcher Jaeyoung Chung of Seoul National University, the flaw allows an unprivileged local user to escalate their permissions to full root access.

Because the vulnerability resides in a core kernel component, it affects a vast ecosystem ranging from enterprise Linux servers and desktop distributions to billions of Android smartphones. The public release of a proof-of-concept (PoC) exploit has accelerated the timeline for defenders, transforming a theoretical risk into an immediate patching mandate.[1]

The mechanism behind Bad Epoll is a highly specific "use-after-free" race condition located within the kernel's `epoll` subsystem. The `epoll` facility is an I/O event notification mechanism that allows applications to efficiently monitor multiple file descriptors to see if I/O is possible. According to technical disclosures, the vulnerability triggers when two parts of the kernel attempt to clean up the same internal object simultaneously.

If one eventpoll list monitors another and both are closed at the exact same moment, one process frees the memory object while the other continues to write to it. This transient collision corrupts kernel memory, providing an attacker with the leverage needed to hijack the system's execution flow.

What makes Bad Epoll particularly remarkable is the microscopic margin of error required to exploit it. The timing window where the two execution paths collide is exceptionally narrow—spanning only about six machine instructions. Under normal circumstances, a random attempt to trigger this collision would almost certainly fail.

However, Chung's proof-of-concept exploit artificially widens this window and utilizes a non-crashing retry loop. By repeatedly attempting the race condition without triggering a kernel panic, the exploit achieves a staggering 99% reliability rate on tested systems, turning a theoretical edge case into a deterministic weapon.[1]

The Bad Epoll vulnerability triggers when two kernel processes collide within a microscopic six-instruction window.

The impact of Bad Epoll extends significantly further than standard Linux privilege-escalation bugs because of its deep integration into the operating system. Many kernel vulnerabilities rely on optional modules that can simply be unloaded or disabled by administrators to mitigate the threat. The `epoll` subsystem, however, is a permanent, built-in feature that the operating system, network services, and web browsers all fundamentally rely upon. Consequently, there is no simple "kill switch" or configuration workaround available; the only definitive mitigation is applying the upstream kernel patch.

This architectural permanence is exactly why Bad Epoll poses a unique threat to the Android ecosystem. Out of roughly 130 vulnerabilities previously exploited on Google's kernelCTF platform, only about ten possessed the characteristics necessary to achieve root access on Android devices. Bad Epoll joins this rare class.

Furthermore, researchers note that the vulnerability can be reached from inside the highly restricted Chrome renderer sandbox. This raises the alarming possibility that an attacker could chain a browser exploit with Bad Epoll to break out of the sandbox and achieve full kernel code execution.[1]

Beyond the technical mechanics, the discovery of Bad Epoll offers a fascinating case study in the current limitations of artificial intelligence in cybersecurity. The vulnerability traces back to a single commit made to the Linux kernel in 2023, which inadvertently introduced two separate race conditions into a 2,500-line stretch of the `epoll` code. The first of these flaws, tracked as CVE-2026-43074, was successfully discovered and reported earlier this year by Anthropic's frontier AI model, Mythos. The AI's success was heralded as a milestone for automated vulnerability research.

Yet, the same AI model completely missed Bad Epoll, which sat adjacent to the first bug. Security researchers attribute this blind spot to the way Bad Epoll interacts with the kernel's diagnostic tools.

Because of its incredibly narrow timing window, Bad Epoll rarely triggers the Kernel Address Sanitizer (KASAN)—the primary dynamic memory error detector used by developers and AI agents to identify memory corruption during runtime. Without KASAN generating a clear error signal, the AI lacked the necessary runtime evidence to flag the anomaly, leaving the discovery to human intuition and rigorous manual analysis.

While frontier AI models successfully identified one race condition in the epoll code, human intuition was required to uncover Bad Epoll.

The human element proved equally essential in developing the fix. Race conditions are notoriously difficult to patch correctly because they involve complex, asynchronous state changes. When Bad Epoll was first reported as a zero-day submission to Google's kernelCTF program—earning Chung a bounty of over $71,337—the initial patch proposed by kernel maintainers failed to fully resolve the underlying synchronization issue. It took nearly two months of collaborative engineering to land a comprehensive and correct fix, highlighting the immense difficulty of securing fundamental operating system primitives.[1]

With the proof-of-concept exploit now public, the focus has shifted entirely to defense and remediation. The vulnerability affects Linux distributions utilizing kernel versions 6.4 and newer, as older kernels do not contain the flawed 2023 commit. Major Linux vendors, including Debian, Red Hat, SUSE, and Ubuntu, have already integrated the corrected code into their security update pipelines. Cloud infrastructure providers and hosting services have similarly begun rolling out updated virtual machine kernels, urging customers to reboot their instances to apply the protections.[2]

The vulnerability impacts Linux distributions utilizing kernel versions 6.4 and newer, requiring immediate patching.

For enterprise defenders and system administrators, the mandate is clear: inventory systems for vulnerable kernel versions and prioritize patching. While there is currently no evidence of Bad Epoll being exploited in the wild by malicious actors, the availability of a highly reliable PoC significantly lowers the barrier to entry for attackers. Government cybersecurity agencies, including the Hong Kong Computer Emergency Response Team Coordination Centre (HKCERT), have issued high-threat alerts advising immediate action to mitigate the elevated risk of cyber attacks.[2]

Ultimately, the Bad Epoll saga underscores the resilience of the open-source security model. A critical flaw was introduced, an AI found half of the problem, a human researcher found the rest, and a global community of developers collaborated to engineer a robust solution. As operating systems grow increasingly complex, the defense against sophisticated race conditions will require exactly this kind of hybrid approach—leveraging the scale of automated tools while relying on the deep, contextual expertise of human researchers to secure the foundational layers of the digital world.[1]

Key points

  • Bad Epoll (CVE-2026-46242) is a critical use-after-free race condition in the Linux kernel's epoll subsystem.
  • The flaw allows unprivileged local users to gain full root access on Linux servers, desktops, and Android devices.
  • The race condition occurs within a microscopic six-instruction window, but a public exploit achieves 99% reliability.
  • Anthropic's Mythos AI found a sibling bug in the same code but missed Bad Epoll because it rarely triggers memory error detectors.

What we don’t know

  • It remains unclear if any advanced persistent threat (APT) groups discovered and utilized Bad Epoll prior to its public disclosure.
  • The exact timeline for when all major Android smartphone manufacturers will push the upstream kernel patch to end-user devices is still developing.
  • Researchers are still investigating whether other core kernel subsystems introduced in recent years harbor similar, highly constrained race conditions.

How we got here

  1. April 2023

    A single commit to the Linux kernel's epoll subsystem inadvertently introduces two separate race conditions.

  2. Early 2026

    Anthropic's Mythos AI discovers the first race condition (CVE-2026-43074), which is subsequently patched.

  3. May 2026

    Researcher Jaeyoung Chung discovers the second flaw, Bad Epoll, and submits it to Google's kernelCTF program.

  4. June 2026

    Kernel maintainers release a finalized, correct patch for Bad Epoll after an initial fix attempt falls short.

  5. July 2026

    Technical details and a highly reliable proof-of-concept exploit are published, prompting urgent patching advisories.

Security Researchers 40%Linux Maintainers 30%Enterprise Defenders 30%
Security Researchers
Emphasize the technical complexity of race conditions and the ongoing necessity of human vulnerability analysis alongside AI tools.
Linux Maintainers
Focus on the architectural difficulty of patching core kernel components without disrupting system stability.
Enterprise Defenders
Prioritize rapid inventory and patching across server fleets and mobile device management profiles.

Perspectives this story doesn't cover

  • Android Smartphone Manufacturers
  • Cloud Infrastructure Providers

Sources

Source coverage

2 outlets

3 viewpoints surfaced

Security Researchers 40%Linux Maintainers 30%Enterprise Defenders 30%
  1. [1]Seoul National University Computer Security LabSecurity Researchers

    Bad Epoll: The bug missed by Mythos

    Read on Seoul National University Computer Security Lab →
  2. [2]HKCERTEnterprise Defenders

    High Threat Security Alert: Vulnerability in Linux Kernel

    Read on HKCERT →
Listen

Comments

Stay informed

Every angle. Every day.

Get Technology stories with full source coverage and perspective breakdowns, free every day.