GitHub Advisoryadvisory · Maven

GHSA-5xrh-qmmq-w6ch Netty: SCTP reassembly nests buffers without bound

HIGH Published 2026-06-08 Modified 2026-06-12 Official page ↗
Aliases
CVE-2026-46340
Ecosystem
Maven
Packages
io.netty:netty-transport-sctp
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-770
Reviewed
2026-06-08

Affected packages

• Maven io.netty:netty-transport-sctp: >= 4.2.0.Final, < 4.2.15.Final → fixed in 4.2.15.Final • Maven io.netty:netty-transport-sctp: < 4.1.135.Final → fixed in 4.1.135.Final

Description

For each non-complete SctpMessage fragment the handler does `fragments.put(streamId, Unpooled.wrappedBuffer(frag, byteBuf))`, wrapping the previous accumulator and the new slice into a *new* CompositeByteBuf every time. After N fragments the accumulator is an N-deep chain of composites, each holding references and component arrays; readableBytes()/getBytes() on the final buffer recurse N levels. There is no limit on N, on total bytes, or on the number of streamIdentifiers an attacker can open (each gets its own map entry). A peer that never sets the `complete` flag can grow this structure indefinitely from tiny 1-byte DATA chunks.

Related

Alias · CVE (1)

  • CVE-2026-46340 Netty is a network application framework for development of protocol servers and clients. vulnerability

Weakness · CWE (1)

  • CWE-770 Allocation of Resources Without Limits or Throttling weakness

References