Skip to content
Heist/ feed
Unrated

Netty before 4.1.138.Final ByteBuf Leak in StompSubframeDecoder

Type: advisorySource: OSV1 source record

Netty's STOMP codec (io.netty:netty-codec-stomp) contains a ByteBuf leak in StompSubframeDecoder. Once a frame's declared content-length has been fully read, the decoder allocates a chunk buffer from the channel allocator and parks it in an instance field while waiting for the single NUL byte that terminates the frame. If that byte never arrives, the buffer is never released: the replay Signal thrown by skipNullCharacter extends Error rather than Exception, so the decoder's catch(Exception) release path does not run, and StompSubframeDecoder overrides neither handlerRemoved0 nor channelInactive, so the buffer also survives channel teardown. A remote peer can leak one allocator buffer per connection by sending a complete, well-formed frame body and withholding its terminating NUL byte; with the default pooled allocator the memory is never returned to the pool or reclaimed by garbage collection, so the leak accumulates for the lifetime of the process and can lead to memory exhaustion. This affects versions up to and including 4.1.137.Final and versions 4.2.0.Final through 4.2.17.Final; it is fixed in 4.1.138.Final and 4.2.18.Final.

Announced Group revision 1
Original source ↗

CVE-2026-100657

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:CVE-2026-100657

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "repo": "https://github.com/netty/netty",
        "type": "GIT",
        "events": [
          {
            "introduced": "09e64d259c99be8b5b2a471a78f11e65eb82598a"
          },
          {
            "fixed": "e0789d32c72f46fd2e7c99b6fdbbf7e2f4409e44"
          }
        ],
        "database_specific": {
          "source": "DESCRIPTION",
          "extracted_events": [
            {
              "introduced": "4.2.0.Final"
            },
            {
              "fixed": "4.2.17.Final"
            }
          ]
        }
      }
    ],
    "versions": [
      "netty-4.2.16.Final",
      "netty-4.2.15.Final",
      "netty-4.2.14.Final",
      "netty-4.2.13.Final",
      "netty-4.2.12.Final",
      "netty-4.2.11.Final",
      "netty-4.2.10.Final",
      "netty-4.2.9.Final",
      "netty-4.2.8.Final",
      "netty-4.2.7.Final",
      "netty-4.2.6.Final",
      "netty-4.2.5.Final",
      "netty-4.2.4.Final",
      "netty-4.2.3.Final",
      "netty-4.2.2.Final",
      "netty-4.2.1.Final",
      "netty-4.2.0.Final"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100657.json"
    }
  }
]
Related CVEs
CVE-2026-100657

Source reference: /id

Publisher severity

No explicit severity was provided.

Event
#23956 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement