netty-tcnative is vulnerable to Out-of-bounds Write
82
CVE Score
High
Out-of-bounds Write
Before the fix, tcn_write_to_bytebuffer computed the ring buffer's write start index without wrapping it modulo the buffer size, so after a wrapping write the index exceeded the buffer and the next write called memcpy with an out-of-bounds destination and a negative length cast to size_t, overflowing the heap. Any remote TLS peer could drive this BIO write callback with handshake, renegotiation, or post-handshake bytes when the native OpenSSL/BoringSSL engine runs with heap ByteBuffers, because an SSL_read may write data. The fix wraps the start index with % nonApplicationBufferSize, keeping every write in bounds.
Upgrade the io.netty:netty-tcnative or io.netty:netty-tcnative-boringssl-static package to 2.0.84.Final or later.
You are affected if you are using a version that falls within the vulnerable range and serve TLS with netty-tcnative's native OpenSSL/BoringSSL engine over heap ByteBuffers, accepting connections from remote peers.
2.0.0.Final - 2.0.83.Final
Fixed in 2.0.84.Finalnetty-tcnative is vulnerable to Out-of-bounds Write in versions 2.0.0.Final - 2.0.83.Final.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.