CVE-2026-46242
Use-After-Free in Linux Kernel eventpoll
Publication date: 2026-05-30
Last updated on: 2026-05-30
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a use-after-free (UAF) issue in the Linux kernel's eventpoll subsystem, specifically in the ep_remove() function. The problem occurs because ep_remove() clears a pointer (file->f_ep) under a lock but continues to use the file structure inside the critical section. Concurrently, another function (__fput()) may observe this cleared pointer and skip necessary cleanup steps, leading to the freeing of memory that is still in use.
This results in subsequent operations writing into freed memory, causing memory corruption. Additionally, the file structure can be recycled and reinitialized while still in use, allowing an attacker to manipulate kernel memory caches incorrectly.
The fix involves pinning the file structure at the start of ep_remove() to prevent it from being freed while still in use, ensuring proper synchronization and preventing the use-after-free condition.
How can this vulnerability impact me? :
This vulnerability can lead to memory corruption in the Linux kernel, which may be exploitable by an attacker to cause system instability, crashes, or potentially execute arbitrary code with kernel privileges.
Because it involves use-after-free and improper memory handling, an attacker with the ability to trigger this vulnerability could compromise the security and reliability of the affected system.
What immediate steps should I take to mitigate this vulnerability?
The vulnerability has been resolved by changes in the Linux kernel's eventpoll subsystem, specifically by pinning the file structure at the start of ep_remove() to prevent use-after-free conditions.
Immediate mitigation steps would typically include updating the Linux kernel to a version that contains this fix.