From 16ceb2c04fdeec76773353aadfa48dd4d4d8e340 Mon Sep 17 00:00:00 2001 From: Bryan Cutler Date: Wed, 21 Jun 2023 12:22:38 -0700 Subject: [PATCH 1/2] GH-36209: [Java] Upgrade Netty due to security vulnerability (#36211) Upgrading Netty dependency due to CVE https://github.com/advisories/GHSA-6mjq-h674-j845 This also requires a patch to arrow-memory Upgrading Netty, gRPC and Protobuf dependencies Existing tests No **This PR contains a "Critical Fix".** netty-handler SniHandler 16MB allocation The SniHandler can allocate up to 16MB of heap for each channel during the TLS handshake. When the handler or the channel does not have an idle timeout, it can be used to make a TCP server using the SniHandler to allocate 16MB of heap. https://github.com/advisories/GHSA-6mjq-h674-j845 * Closes: #36209 Authored-by: Bryan Cutler Signed-off-by: David Li --- .../java/io/netty/buffer/PooledByteBufAllocatorL.java | 2 +- java/pom.xml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/java/memory/memory-netty/src/main/java/io/netty/buffer/PooledByteBufAllocatorL.java b/java/memory/memory-netty/src/main/java/io/netty/buffer/PooledByteBufAllocatorL.java index d0a5a9945ce..8364b4a2588 100644 --- a/java/memory/memory-netty/src/main/java/io/netty/buffer/PooledByteBufAllocatorL.java +++ b/java/memory/memory-netty/src/main/java/io/netty/buffer/PooledByteBufAllocatorL.java @@ -161,7 +161,7 @@ public InnerAllocator() { } private UnsafeDirectLittleEndian newDirectBufferL(int initialCapacity, int maxCapacity) { - PoolThreadCache cache = threadCache(); + PoolArenasCache cache = threadCache(); PoolArena directArena = cache.directArena; if (directArena != null) { diff --git a/java/pom.xml b/java/pom.xml index b9d22cdc580..e3bcd34c70d 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -33,10 +33,10 @@ 5.9.0 1.7.25 31.1-jre - 4.1.82.Final - 1.49.1 - 3.21.6 - 2.13.4 + 4.1.94.Final + 1.56.0 + 3.23.1 + 2.15.1 2.7.1 1.12.0 1.10.0 From 2cc7c2fff1ca1d9ffc44f2128e106723950aad3e Mon Sep 17 00:00:00 2001 From: Logan Riggs Date: Wed, 28 Jun 2023 10:45:29 -0700 Subject: [PATCH 2/2] Restore jackson version. --- java/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/pom.xml b/java/pom.xml index e3bcd34c70d..f7295e2ce6b 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -36,7 +36,7 @@ 4.1.94.Final 1.56.0 3.23.1 - 2.15.1 + 2.13.4 2.7.1 1.12.0 1.10.0