GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [fix][sec] Upgrade Netty to 4.2.20 and netty-tcnative to 2.0.85 to address several CVEs and bugs by lhotari · Pull Request #27310 · apache/pulsar

Conversation

@lhotari

@lhotari lhotari commented Nov 2, 2026

Copy link
Copy Markdown
Member

Motivation

Netty 4.2.20.Final is a bug-fix and security
release. Its release notes list 10 security advisories. At the time of writing they are not yet
published in GitHub's advisory database, so the links below may only resolve once upstream
publishes them. By affected artifact:

Advisory Issue Netty artifact Bundled by Pulsar?
GHSA-m77g-r4c7-3w77 out-of-bounds read netty-buffer yes
GHSA-rx4g-qxm6-238r out-of-bounds read netty-buffer yes
GHSA-qhw9-p586-v948 out-of-bounds read netty-buffer yes
GHSA-6xv6-9mgg-mfvc mTLS auth bypass via session resumption netty-handler, netty-codec-quic yes (netty-handler)
GHSA-cqmg-wc9g-fpj8 insufficient entropy netty-resolver-dns yes
GHSA-hc9x-r52h-gh4x unbounded memory usage netty-codec-http2 yes
GHSA-42mp-m8rq-6rgj insufficient control character neutralization netty-codec-http yes
GHSA-v2v6-vch9-4pcg inefficient CPU computation netty-codec-http3 no
GHSA-w53r-xhgx-8582 use-after-free netty-codec-classes-quic no
GHSA-84gx-4cj4-rm7q unbounded memory usage netty-codec-mqtt no

Non-security fixes. 4.2.20.Final also carries fixes in areas Pulsar uses, for example:

  • SslHandler: don't spin in wrapMultiple(...) when the engine consumes nothing (#17728); size the unwrap output buffer for the plaintext, not the record (#18028)
  • ReferenceCountedOpenSslEngine: don't lose the alert when the handshake fails (#18155); send bad_certificate when the TrustManager rejects the certificate (#18164); choose server key types from the client's signature algorithms for TLS 1.3 (#17764)
  • HAProxy codec: validate the length of all TLV types (#17834); fix v2 header framing with a non-zero reader index (#17832), which is relevant to the broker and proxy's haProxyProtocolEnabled support
  • DNS resolver: release the DNS response when a query future loses a cancel race (#17475); don't let a negatively cached search domain shadow a positive one (#17623)
  • Round up the NIO select timeout again to avoid busy spinning (#18138)
  • Epoll/io_uring native fixes, among them a signed-overflow fix in the epoll_wait timeout calculation (#18213)
  • AdaptiveByteBuf: a faster memoryAddress() (#17767); setBytes(int, ByteBuf, int, int) no longer allocates NIO buffer views (#17840)

netty-tcnative. This PR bumps netty-tcnative from 2.0.84.Final to 2.0.85.Final, the version that
netty-bom:4.2.20.Final declares (<tcnative.version>2.0.85.Final</tcnative.version>). This matters
because Pulsar defaults to the native TLS engine whenever OpenSsl.isAvailable().
The commits between those
releases

contain no BoringSSL change (boringsslCommitSha is identical at
0226f30467f540a3f62ef48d453f93927da199b6 in both parent POMs) and no public API change
(javap -public over all of netty-tcnative-classes is identical). They do contain JNI memory-safety
fixes, among them:

  • Fix an out-of-bounds read in select_next_proto when no protocol matches (#1044)
  • Native memory leak fixes in SSL.parseX509Chain, SSLContext.setPrivateKeyMethod0, SSL_CTX_setup_certs and JNI_OnLoad (#1025, #1026, #1031, #1027)
  • Check for allocation failures that were previously unchecked (#1040)
  • Don't sign-extend int options into the 64-bit SSL options (#1035); validate the timeout, cache mode and cache size before narrowing them (#1036)
  • Send unknown_ca when the chain was truncated and the TrustManager rejected the certificate (#1038)

The Linux natives were checked for a raised glibc floor: the highest versioned reference is
unchanged at GLIBC_2.12 (x86_64) and GLIBC_2.17 (aarch64). The published classifiers
(linux-x86_64, linux-aarch_64, osx-x86_64, osx-aarch_64, windows-x86_64) are all still present.
The macOS deployment target was raised to 11
(#1012).

Modifications

  • gradle/libs.versions.toml: netty 4.2.19.Final → 4.2.20.Final, netty-tcnative 2.0.84.Final → 2.0.85.Final
  • Update the bundled jar lists in distribution/server/src/assemble/LICENSE.bin.txt and
    distribution/shell/src/assemble/LICENSE.bin.txt to the new versions

Netty's published module set (the netty-bom artifact list) is the same in 4.2.19.Final and
4.2.20.Final, so only version strings changed in the LICENSE.bin.txt files. Every jar named there
was confirmed to exist on Maven Central.

Verifying this change

  • Make sure that the change passes the CI checks.

This change is already covered by existing tests. In addition, ./gradlew checkBinaryLicense --rerun
was run locally to confirm that the LICENSE.bin.txt entries match the jars that are actually
bundled, and ./gradlew spotlessCheck checkstyleMain checkstyleTest passes.

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Netty is upgraded from 4.2.19.Final to 4.2.20.Final and netty-tcnative from 2.0.84.Final to
2.0.85.Final.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@lhotari
[fix][sec] Upgrade Netty to 4.2.20 and netty-tcnative to 2.0.85 to ad…
f4f4436
…dress several CVEs and bugs

Assisted-by: Claude Code (claude-opus-5-5)
@lhotari
lhotari requested review from Denovo1998, Technoboy-, codelipenghui, dao-jun, merlimat and nodece November 2, 2026 20:15
@lhotari lhotari mentioned this pull request Nov 2, 2026
[fix][sec][branch-4.2] Upgrade Netty to 4.1.140 and netty-tcnative to 2.0.85 to address several CVEs and bugs #27311
Merged
1 of 11 tasks
merlimat
merlimat approved these changes Nov 2, 2026
View reviewed changes
@merlimat
merlimat merged commit 78500ac into apache:master Nov 2, 2026
43 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@merlimat merlimat added this to the 5.1.0 milestone Nov 2, 2026
@merlimat merlimat added the release/5.0.2 label Nov 2, 2026
lhotari added a commit that referenced this pull request Nov 2, 2026
@lhotari
[fix][sec] Upgrade Netty to 4.2.20 and netty-tcnative to 2.0.85 to ad…
627f6dc
…dress several CVEs and bugs (#27310)

(cherry picked from commit 78500ac)
@lhotari lhotari added the cherry-picked/branch-5.0 label Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@merlimat merlimat merlimat approved these changes
@nodece nodece Awaiting requested review from nodece
@dao-jun dao-jun Awaiting requested review from dao-jun
@Technoboy- Technoboy- Awaiting requested review from Technoboy-
@codelipenghui codelipenghui Awaiting requested review from codelipenghui
@Denovo1998 Denovo1998 Awaiting requested review from Denovo1998

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cherry-picked/branch-5.0 release/5.0.2

Projects

None yet

Milestone

5.1.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@lhotari @merlimat
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.