Netty netty-incubator-codec-ohttp
netty-incubator-codec-ohttp: [OHttpServerCodec] Native Direct-Memory Leak on AEAD Decryption Failure Leads to Gateway Denial of Service
netty-incubator-codec-ohttp implements Oblivious HTTP (OHTTP) gateway and client functionality using Netty. Prior to 0.0.23.Final, the OHTTP gateway decryption path in codec-ohttp/src/main/java/io/netty/incubator/codec/ohttp/OHttpRequestResponseContext.java allocates a pooled direct ByteBuf for decrypted plaintext before the AEAD tag is verified. When an invalid tag causes decryptChunk() to throw CryptoException, OHttpRequestResponseContext.decodeChunk() does not release the ByteBuf because the allocation is not guarded by try/finally. Repeated invalid encrypted requests can therefore leak native off-heap memory until the gateway is unable to continue serving requests. This issue is fixed in version 0.0.23.Final.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.0.23.Final
Fixed in 0.0.23.Final
- < 0.0.23.Final
Fixed in 0.0.23.Final
Mitigation
Upgrade netty-incubator-codec-ohttp to 0.0.23.Final or later.
Upgrade netty-incubator-codec-ohttp to 0.0.23.Final or later.
References
- Vendor advisory github.com/netty/netty-incubator-codec-ohttp/s…
- Patch github.com/netty/netty-incubator-codec-ohttp/c…
- Release notes github.com/netty/netty-incubator-codec-ohttp/r…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.