CVE-2026-59902
Netty: Memory Exhaustion in SctpMessageCompletionHandler
Description
Summary
SctpMessageCompletionHandler does not limit the total size of buffered fragments, allowing an unauthenticated attacker to cause an OutOfMemoryError by sending large SCTP fragments.
Details
io.netty.handler.codec.sctp.SctpMessageCompletionHandler buffers fragments for incomplete SCTP messages. The fix for CVE-2026-46340 fixed unbounded memory growth by introducing limits on the number of concurrent incomplete messages (maxIncompleteSctpMessages) and the number of fragments per message (maxFragments).
While the count of fragments is now bounded, the handler still does not enforce a maximum size in bytes.
With the default limits of 128 messages and 128 fragments, and a typical max SCTP chunk size of 64KB, an attacker can consume up to ~1GB per connection. By opening a small number of concurrent connections, an attacker can easily exhaust the server's memory, causing an OutOfMemoryError.
Impact
Memory Exhaustion. Any application using Netty's SCTP transport with SctpMessageCompletionHandler is impacted.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| io.netty » netty-transport-sctp | < 4.1.137.Final>= 4.2.0.Final, < 4.2.17.Final | 4.1.137.Final, 4.2.17.Final |
Blast radius
63% of the dependent artifacts (4,090) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 1,965 |
| 2 hops | 30,925 |
| 3 hops | 139,134 |
| 4 hops | 63,565 |
| 5 hops | 48,744 |
| 6 hops | 23,367 |
Most used dependents
- io.netty » netty-all3,584 usages
- org.apache.hadoop » hadoop-common3,482 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 usages
- org.apache.zookeeper » zookeeper2,044 usages
- org.apache.hadoop » hadoop-client1,796 usages
- org.apache.kafka » kafka1,450 usages
- org.apache.hadoop » hadoop-hdfs1,377 usages
- org.apache.hadoop » hadoop-mapreduce-client-core1,366 usages
- org.apache.curator » curator-recipes1,197 usages
- org.apache.curator » curator-framework1,070 usages
- org.apache.curator » curator-test1,002 usages
- org.apache.flink » flink-streaming-java982 usages
- org.apache.hbase » hbase-client960 usages
- org.apache.spark » spark-mllib831 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Webhttps://github.com/netty/netty/security/advisories/GHSA-2qj4-mmr9-4v2f
- Webhttps://github.com/netty/netty/pull/17213
- Webhttps://github.com/netty/netty/pull/17217
- Webhttps://github.com/netty/netty/commit/1b5abc6443b63726c72cdd285af2feb7ddbb8ff7
- Packagehttps://github.com/netty/netty
- Webhttps://github.com/netty/netty/releases/tag/netty-4.1.137.Final
- Webhttps://github.com/netty/netty/releases/tag/netty-4.2.17.Final
