CVE-2026-48040
Beschrijving NL
De netty incubator codec.bhttp is een javataal binaire http parser. De bibliotheek implementeert Oblivious http (RFC 9458) met behulp van de HPKE C-bibliotheek van BoringSSL via JNI. Bij het afleiden van native geheugenadressen voor cryptografische bewerkingsversies vóór 0.0.22. Definitief een terugvalpad bieden voor directe ByteBufs die hun geheugenadres niet blootstellen via `hasMemoryAddress()`. Deze terugval treedt op wanneer `sun.misc.Unsafe` niet beschikbaar is voor Netty — bijvoorbeeld wanneer de JVM wordt gestart met `-Dio.netty.noUnsafe =true`, wanneer een SecurityManager onveilige toegang beperkt, of wanneer deze wordt uitgevoerd op niet-HotSpot JVM's. In deze configuraties retourneert de standaard 'PooledByteBufAllocator' van Netty `PooledDirectByteBuf` instances waarvoor `hasMemoryAddress()` false retourneert. Onder de ingeschakelde JVM-configuratie kan een niet-geverifieerde netwerkaanvaller ervoor zorgen dat de OHTTP-gateway het geheugen van andere gelijktijdige verbindingen beschadigt en de inhoud van aangrenzende gepoolde directe buffers openbaar maakt door cryptografische bewerkingen met vervaardigde OHTTP-verzoeken te activeren. De corruptie treedt op ongeacht of de AEAD-tagverificatie slaagt, omdat BoringSSL de uitvoerbuffer op nul stelt bij storing. Het pad voor het vrijgeven van informatie biedt de aanvaller de coderingssleutel die nodig is om de gelekte gegevens te extraheren. Dit schendt de vertrouwelijkheid en integriteit van alle verbindingen die dezelfde Netty-bufferarena delen. Versie 0.0.22.Final lost het probleem op.
Origineel (Engels) tonen
The netty incubator codec.bhttp is a java language binary http parser. The library implements Oblivious HTTP (RFC 9458) using BoringSSL's HPKE C library via JNI. When deriving native memory addresses for cryptographic operations versions prior to 0.0.22.Final provide a fallback path for direct ByteBufs that do not expose their memory address through `hasMemoryAddress()`. This fallback occurs when `sun.misc.Unsafe` is unavailable to Netty — for example, when the JVM is started with `-Dio.netty.noUnsafe=true`, when a SecurityManager restricts Unsafe access, or when running on non-HotSpot JVMs. In these configurations, Netty's default `PooledByteBufAllocator` returns `PooledDirectByteBuf` instances for which `hasMemoryAddress()` returns false. Under the enabling JVM configuration, an unauthenticated network attacker can cause the OHTTP gateway to corrupt memory belonging to other concurrent connections and disclose the contents of adjacent pooled direct buffers by triggering cryptographic operations with crafted OHTTP requests. The corruption occurs regardless of whether the AEAD tag verification succeeds, as BoringSSL zeroizes the output buffer on failure. The information disclosure path provides the attacker with the encryption key needed to extract the leaked data. This violates the confidentiality and integrity of all connections sharing the same Netty buffer arena. Version 0.0.22.Final fixes the issue.