Skip to content

jdk-21, jdk-25, jdk-27: built from source at the Java4Shell fix tags (CVE-2026-114938) - #1556

Draft
bryan-minimal wants to merge 1 commit into
mainfrom
jdk-from-source-v3
Draft

bryan-minimal wants to merge 1 commit into
mainfrom
jdk-from-source-v3

Conversation

@bryan-minimal

Copy link
Copy Markdown
Member

jdk-21, jdk-25 and jdk-27 built from source, at the tags that fix Java4Shell (CVE-2026-114938).

Java4Shell is a CVSS 9.2 flaw in HotSpot's x86-64 AVX-512 Base64 intrinsic. OpenJDK tagged the fixes jdk-21.0.13.1-ga, jdk-25.0.5.1-ga and jdk-27.0.1.1-ga on 2026-11-17; Corretto and Zulu shipped within hours. Temurin, which these packages download today, had not shipped when this was opened.

What this is. It revives the from-source recipes of bryan/jdk-from-source-v2 (dd19d822). That branch built and passed its tests on both arches on 2026-11-05, as part of #1242. Each JDK is:

  • booted by its bootstrap JVM-ladder rung: openjdk-21 21.0.2, openjdk-25 25.0.2 and openjdk-26 26.0.2.1, the gen-15 pins, which are byte-identical to gen-18;
  • compiled by the production toolchain;
  • given the existing determinism steps: normalised jar, jmod and zip entries, no CDS archives, no src.zip, a sorted classlist.
tag build
jdk-21 jdk-21.0.13.1-ga +2
jdk-25 jdk-25.0.5.1-ga +2
jdk-27 jdk-27.0.1.1-ga (boots from openjdk-26) +4

Reconciled with main since v2:

Sources: GitHub tag archives mirrored to gs://minimal-staging-archives/jdk-<version>-ga.tar.gz. The pinned sha256 of each is the sha256 of the mirrored object itself, re-hashed from the bucket.

What changes for users vs Temurin (msample asked for this on #1242):

  • java -version vendor is minimal, not Eclipse Adoptium.
  • No class-data-sharing archive (classes.jsa), so JVM startup is somewhat slower. It isn't reproducible yet.
  • No src.zip.
  • The trust store is OpenJDK's own cacerts with the eMudhra/AAA anchors removed, not Temurin's.
  • More runtime deps (X11 client libs, alsa, freetype, lcms2, libpng, giflib, libjpeg-turbo, zlib), because AWT, sound and fonts link them dynamically.

Planned follow-ups (phase 2), not in this PR:

  • --with-cacerts-src built from our ca-certificates, with ASCII-only file names: NetLock's non-ASCII name breaks GenerateCacerts under LC_ALL=C.
  • One shared build script for the three JDKs.
  • --with-stdc++lib=static.
  • --disable-cds-archive instead of deleting the archives.
  • Dropping v2 patches that no longer do anything at these tags.

Draft until it is built green on main and on #1545's gcc 16 tree. Temurin stays the shipped binary until we decide to switch the jdk pointer.

Coordinated with the bootstrap side (the JVM ladder): the boot objects are unchanged and no new rung is needed.

🤖 Generated with Claude Code

Revives the from-source recipes of bryan/jdk-from-source-v2
(dd19d82, green on both arches 2026-11-05), each booted by its
bootstrap JVM-ladder rung (openjdk-21, openjdk-25, openjdk-26) and
compiled by the production toolchain, at the out-of-band tags that fix
CVE-2026-114938 (Java4Shell, HotSpot x86-64 AVX-512 Base64 intrinsic):
jdk-21.0.13.1-ga (+2), jdk-25.0.5.1-ga (+2), jdk-27.0.1.1-ga (+4).
Temurin had not shipped these when this was written.

Reconciled with main since v2:
- CVE-2026-111943: main's eMudhra step (../jdk/cve-2026-111943.*) and
  its test are restored in all three. OpenJDK's own cacerts at these
  tags still holds both distrusted anchors. This is the blocker
  msample's review of #1242 found.
- #1406's test_deps (bash-bootstrap, grep, coreutils) replace `base`.
- jdk-27 is at 27.0.1.1, past main's Temurin 27.0.1.0.2, not 27 GA.

Sources are the GitHub tag archives mirrored to staging-archives.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant