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][branch-4.2] Upgrade Netty to 4.1.140 and netty-tcnative to 2.0.85 to address several CVEs and bugs by lhotari · Pull Request #27311 · apache/pulsar

Conversation

@lhotari

@lhotari lhotari commented Nov 2, 2026

Copy link
Copy Markdown
Member

Motivation

Netty 4.1.140.Final is a bug-fix
and security release. Its release notes list 8 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 yes
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-84gx-4cj4-rm7q unbounded memory usage netty-codec-mqtt no

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

  • SslHandler: don't spin in wrapMultiple(...) when the engine consumes nothing (#17822); size the unwrap output buffer for the plaintext, not the record (#18182)
  • ReferenceCountedOpenSslEngine: don't lose the alert when the handshake fails (#18157); send bad_certificate when the TrustManager rejects the certificate (#18181); choose server key types from the client's signature algorithms for TLS 1.3 (#17809)
  • HAProxy codec: validate the length of all TLV types (#17845); fix v2 header framing with a non-zero reader index (#17882), 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 (#17828); don't let a negatively cached search domain shadow a positive one (#17805)
  • Epoll native fixes, among them a signed-overflow fix in the epoll_wait timeout calculation (#18194)

netty-tcnative. netty-bom:4.1.140.Final moves netty-tcnative from 2.0.84.Final to 2.0.85.Final
(<tcnative.version>2.0.85.Final</tcnative.version>). branch-4.2 takes netty-tcnative from the
Netty BOM, so bumping <netty.version> upgrades it too; only the LICENSE.bin.txt entries need
editing. 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)
  • 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).

This is the branch-4.2 counterpart of #27310 (Netty 4.2.20.Final on master).

Modifications

  • pom.xml: <netty.version> 4.1.139.Final → 4.1.140.Final
  • Update the bundled jar lists in distribution/server/src/assemble/LICENSE.bin.txt and
    distribution/shell/src/assemble/LICENSE.bin.txt for Netty 4.1.140.Final and netty-tcnative
    2.0.85.Final

Netty's published module set (the netty-bom artifact list) is the same in 4.1.139.Final and
4.1.140.Final, so only version strings changed in the LICENSE.bin.txt files.

Verifying this change

  • Make sure that the change passes the CI checks.

This change is already covered by existing tests. In addition:

  • Every jar named in the two LICENSE.bin.txt files was confirmed to exist on Maven Central.
  • A standalone Maven project importing netty-bom:4.1.140.Final resolves netty-tcnative-boringssl-static
    and netty-tcnative-classes to 2.0.85.Final, matching the updated LICENSE.bin.txt entries.

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.1.139.Final to 4.1.140.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][branch-4.2] Upgrade Netty to 4.1.140 and netty-tcnative to…
5e03ace
… 2.0.85 to address 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:42
merlimat
merlimat approved these changes Nov 2, 2026
View reviewed changes
@lhotari lhotari added release/4.2.6 release/4.0.15 labels Nov 2, 2026
codelipenghui
codelipenghui approved these changes Nov 3, 2026
View reviewed changes

@codelipenghui codelipenghui left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed head 5e03ace. No actionable findings identified within the reviewed scope.

Sorry, something went wrong.

Uh oh!

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

All reactions
@lhotari
lhotari merged commit a2b2b36 into apache:branch-4.2 Nov 3, 2026
51 of 53 checks passed

Uh oh!

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

lhotari added a commit that referenced this pull request Nov 3, 2026
@lhotari
[fix][sec][branch-4.2] Upgrade Netty to 4.1.140 and netty-tcnative to…
e34ac50
… 2.0.85 to address several CVEs and bugs (#27311)

(cherry picked from commit a2b2b36)
@lhotari lhotari added cherry-picked/branch-4.0 cherry-picked/branch-4.2 labels Nov 3, 2026
nodece pushed a commit to ascentstream/pulsar that referenced this pull request Nov 16, 2026
@lhotari @nodece
[fix][sec][branch-4.2] Upgrade Netty to 4.1.140 and netty-tcnative to…
e90c02c
… 2.0.85 to address several CVEs and bugs (apache#27311)

(cherry picked from commit a2b2b36)
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
@codelipenghui codelipenghui codelipenghui 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-
@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-4.0 cherry-picked/branch-4.2 release/4.0.15 release/4.2.6

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

3 participants

@lhotari @merlimat @codelipenghui
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.