Skip to main content

Netty CVE-2026-42577

HIGH
Missing Release of Resource after Effective Lifetime (CWE-772)
2026-05-06 https://github.com/netty/netty GHSA-rwm7-x88c-3g2p
7.5
CVSS 3.1 · Vendor: https://github.com/netty/netty
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Open TCP connection to epoll-based Netty server
  2. Delivery
    Send FIN to half-close the input
  3. Exploit
    Send RST via SO_LINGER=0 close
  4. Execution
    EPOLLERR/EPOLLHUP never processed, channelInactive never fires
  5. Impact
    Repeat to leak fds/memory or pin event loop at 100% CPU

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup on lifecycle end
Exploitation Conditions

Exploitation requires the target to use Netty's native epoll transport on Linux and for the affected connection to be half-closed - either because ALLOW_HALF_CLOSURE is enabled on the channel, or because the connection is placed in a half-closed state by the HTTP codec. Given those conditions, an unauthenticated remote attacker triggers the bug simply by sending a FIN (half-close) followed by a RST (e.g. closing with SO_LINGER=0); the server then fails to fire channelInactive and never releases the channel. Limiting factors: the epoll (Linux-native) transport must be in use, and the half-closure condition must hold, so services running the NIO transport or with half-closure disabled are not exposed; the worst-case 100% CPU busy-loop additionally depends on code paths where clearEpollIn0() is not called during the ChannelInputShutdownReadComplete event, whereas the file-descriptor/memory leak occurs more broadly.

Impact

The signals are internally consistent and point to a genuine but bounded availability risk. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H = 7.5) captures a remotely reachable, unauthenticated, availability-only impact with no confidentiality or integrity loss - appropriate for a DoS. That High CVSS should be read against a very low EPSS (0.04%, 11th percentile), no CISA KEV listing, and no observed public exploit, so this is not a mass-exploitation candidate; it is a High-CVSS/low-real-world-urgency issue at present. The one nuance the raw vector hides is a deployment precondition: the connection must have ALLOW_HALF_CLOSURE enabled or otherwise be in a half-closed state via the HTTP codec, so AC:L slightly understates the practical prerequisite. Impact severity is real where it applies - the CPU busy-loop variant can take down an entire event loop and every connection on it - but exposure depends on configuration, so prioritize based on whether your Netty services run the epoll transport with half-closure semantics.

Exploit ScenarioDerived

An attacker opens many TCP connections to an internet-facing Netty service that uses the epoll transport with half-closure enabled, sends a FIN to half-close each one, then immediately sends a RST by closing with SO_LINGER=0. Each connection is left as a stale, never-cleaned-up channel, and on vulnerable code paths one such fd pins the event-loop thread at 100% CPU, degrading or denying service for all other clients on that loop. No authentication or user interaction is required and no public exploit code is currently known, but the sequence is trivial to script with raw sockets.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 23, 2026

Denial of service in Netty's native epoll transport (netty-transport-native-epoll 4.2.0.Final through 4.2.12.Final) lets an unauthenticated remote peer leave server-side channels permanently stuck by sending a FIN to half-close a connection and then a RST. Because the EPOLLERR/EPOLLHUP condition is never processed once input is marked shut down, channelInactive never fires, so connections leak and, in code paths where clearEpollIn0() is skipped, the event-loop thread spins at 100% CPU and starves every other multiplexed connection. There is no public exploit identified at time of analysis, and the EPSS score is very low (0.04%, 11th percentile), consistent with a resource-exhaustion bug rather than a code-execution one.

RemediationAI

Upgrade the netty-transport-native-epoll dependency to 4.2.13.Final, the fixed release; note the advisory states this release was not yet cut as of 2026-04-25, so if a tagged 4.2.13.Final is not yet available in your repository, build from the 4.2 branch at commit 0ec3d97fab376e243d328ac95fbd288ba0f6e22d (PR https://github.com/netty/netty/pull/16689) which removes the stale fd from the epoll set once no events are of interest. Because Netty is usually a transitive dependency, pin the version explicitly (for example via a Maven dependencyManagement or Gradle resolution constraint) so upstream frameworks do not pull the vulnerable range back in. If you cannot upgrade immediately, apply idle-timeout handlers on connections (e.g. an IdleStateHandler that closes read-idle channels) to cap the lifetime of stale channels and reclaim leaked file descriptors - the trade-off is that overly aggressive timeouts can prematurely close legitimate long-lived or keep-alive connections, so tune the idle window to your traffic. Where feasible, also review whether ALLOW_HALF_CLOSURE is actually required for a given pipeline, since disabling it removes the primary trigger condition.

Affected Packages

maven io.netty:netty-transport-classes-epoll fix: 4.2.13.Final
maven io.netty:netty-transport-native-epoll fix: 4.2.13.Final

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in maven

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Netty is a high-performance asynchronous Java networking framework, and netty-transport-native-epoll is its Linux-specific JNI transport that drives sockets directly through the epoll(7) event notification interface instead of Java NIO. The bug is rooted in how Netty reacts (or fails to react) to epoll readiness events on a half-closed socket: epollOutReady() is a no-op with no pending flush, epollInReady() short-circuits through shouldBreakEpollInReady() because input is already shut down, and as a result the EPOLLERR/EPOLLHUP raised by the incoming RST is never handled. This maps to CWE-772 (Missing Release of Resource after Effective Lifetime): the file descriptor, channel object, and memory tied to the dead connection are never released. The fix (PR #16689, commit 0ec3d97) introduces an EpollIoOps.NONE sentinel that calls Native.epollCtlDel to remove the fd from the epoll set once nothing is interesting anymore, preventing the perpetual EPOLLHUP/EPOLLERR re-notification. The single affected artifact is the Maven package io.netty:netty-transport-native-epoll.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/netty/netty) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Remote unauthenticated FIN+RST sequence causes availability-only DoS (A:H) with no confidentiality/integrity impact; AC:L since the deployment precondition (half-closure) is not per-attack complexity.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 7.5 HIGH

Primary rating from Vendor (https://github.com/netty/netty).

CVSS VectorVendor: https://github.com/netty/netty

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

Summary

Netty's epoll transport fails to detect and close TCP connections that receive a RST after being half-closed, leading to stale channels that are never cleaned up and, in some code paths, a 100% CPU busy-loop in the event loop thread.

Affected versions

All versions of 4.2.x netty-transport-native-epoll up to and including 4.2.12.Final

Fixed in

4.2.13.Final (fix merged into the 4.2 branch via #16689; release not yet cut as of 2026-04-25).

Severity

Medium - Denial of Service (resource exhaustion / CPU spin)

CWE: CWE-772: Missing Release of Resource after Effective Lifetime

Description

When a TCP connection using Netty's epoll transport has ALLOW_HALF_CLOSURE enabled (or is in a half-closed state via the HTTP codec), and the remote peer:

  1. Sends a FIN (half-close), causing the server to mark the input as shutdown, then
  2. Sends a RST (e.g. by closing with SO_LINGER=0)

the server-side channel is never closed. This happens because:

  • epollOutReady() is a no-op when there is no pending flush.
  • epollInReady() short-circuits via shouldBreakEpollInReady() because input is already marked as shutdown.
  • The EPOLLERR/EPOLLHUP error condition is therefore never processed, and channelInactive is never fired.

Depending on the Netty version and configuration, this results in:

  • Stale channels: The connection is never closed or deregistered. An unauthenticated remote attacker can repeat the sequence to accumulate stale connections, exhausting file descriptors, memory, or connection-count limits.
  • CPU busy-loop: In code paths where clearEpollIn0() is not called during the ChannelInputShutdownReadComplete event, epoll_wait returns immediately on every iteration for the affected fd, causing 100% CPU utilization on the event loop thread and starving all other connections multiplexed on it.

Mitigation

  • Upgrade to 4.2.13.Final when released (or build from the 4.2 branch at commit 0ec3d97).
  • If upgrading is not immediately possible, configure idle timeouts on connections to limit the lifetime of stale channels.

Resources

  • Issue: https://github.com/netty/netty/issues/16683
  • Fix: https://github.com/netty/netty/pull/16689

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 200 maven packages depend on io.netty:netty-transport-classes-epoll (5 direct, 195 indirect)
  • 182 maven packages depend on io.netty:netty-transport-native-epoll (21 direct, 161 indirect)

Ecosystem-wide dependent count for version 4.2.0.Final and other introduced versions.

Executive ViewAI

Why It Matters

Netty's native epoll transport (versions 4.2.0 through 4.2.12) contains a denial-of-service vulnerability allowing unauthenticated remote attackers to exhaust server resources and trigger event-loop thread starvation. Affected deployments experience connection leaks and service degradation when malformed connection sequences are processed. Organizations using vulnerable Netty versions in any network-facing application should prioritize remediation to protect application availability.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Prevalence
High
Netty underpins many Java servers; epoll transport common in Linux production
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

pkg:maven/io.netty:netty-transport-native-epoll

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy