GrepBoard/Manuals
605 manuals ·

OpenJDK October 2026 Security Update — Check Your JDK Version

·Tested on Ubuntu 24.04.5 · openjdk-21-jre-headless 21.0.12.1+1-1~24.04.4 · openjdk-17-jre-headless 17.0.20.1+1-1~24.04·Test scope ↓·7 steps

The OpenJDK 2026-10-20 advisory lists 21.0.12.1 and earlier as affected. Read your build with java -version and see if the apt candidate is affected too.

The OpenJDK advisory of 2026-10-20 lists the affected versions as 26.0.2.1, 25.0.4.1, 21.0.12.1, 17.0.20.1, 11.0.32.1 and 8u504, "and earlier", and only says to upgrade as soon as possible. It names no fixed version number, so first check whether your JDK falls in that range.

[1] Read the version of the java that actually runs. The value in quotes is the version. The output below comes from the Ubuntu 24.04 openjdk-21-jre-headless package, downloaded and unpacked without installing it.

console
$ java -version
output
openjdk version "21.0.12.1" 2026-08-18OpenJDK Runtime Environment (build 21.0.12.1+1-1-24.04.4-Ubuntu)OpenJDK 64-Bit Server VM (build 21.0.12.1+1-1-24.04.4-Ubuntu, mixed mode, sharing)
output
    java.version = 21.0.12.1    java.version.date = 2026-08-18

[2] Compare with the advisory. If the number in your release line is equal to or lower than the value below, you are on an affected build.

Release lineHighest affected version in the advisory
2626.0.2.1
2525.0.4.1
2121.0.12.1
1717.0.20.1
1111.0.32.1
88u504

Release lines missing from the table (22 to 24 and other unsupported builds) also fall under "and earlier", so move to a supported line.

21.0.12.1 from step 1 equals the 21 line limit, so it is affected. The 17 line is the same.

output
openjdk version "17.0.20.1" 2026-08-18

[3] If you installed through the package manager, look at the candidate version. The Candidate line is what apt upgrade would give you.

console
$ apt-cache policy openjdk-21-jre-headless openjdk-17-jre-headless
output
openjdk-21-jre-headless:  Installed: (none)  Candidate: 21.0.12.1+1-1~24.04.4  Version table:     21.0.12.1+1-1~24.04.4 500        500 http://kr.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages        500 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages     21.0.3+9-1ubuntu1 500        500 http://kr.archive.ubuntu.com/ubuntu noble/main amd64 Packagesopenjdk-17-jre-headless:  Installed: (none)  Candidate: 17.0.20.1+1-1~24.04  Version table:     17.0.20.1+1-1~24.04 500        500 http://kr.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages        500 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages     17.0.11+9-1 500        500 http://kr.archive.ubuntu.com/ubuntu noble/main amd64 Packages

Both candidates carry the same number as the table limit. With this package index (fetched 2026-10-23 03:59 UTC), apt upgrade leaves you on an affected build.

[4] The top entries of the changelog show what the candidate contains.

console
$ apt changelog openjdk-21-jre-headless | sed -n 2,16p
output
openjdk-21 (21.0.12.1+1-1~24.04.4) noble-security; urgency=medium   * Upload to Ubuntu 24.04.  * d/control: regenerate for noble  * d/rules: workaround for C2 crash on s390x  -- …  Fri, 04 Sep 2026 11:44:02 +0530 openjdk-21 (21.0.12.1+1-1) unstable; urgency=medium   * OpenJDK 21.0.12.1 release, build 1.    - CVEs:      + CVE-2026-61308      + CVE-2026-70907      + CVE-2026-60589

The top entry is a September 4 upload and the one below it is the August release (21.0.12.1). Because the top entry is a September 4 upload, fixes for the October 20 advisory are not in it yet. When a package fix lands, the version number and the CVE list here change.

[5] JDKs from other sources (Temurin, Oracle JDK, Corretto) and container images do not show up in apt. Run step 1 with that JDK directly. For an image, run it inside the image, as in docker run --rm <image> java -version.

[6] For Oracle Java SE, the Japanese IPA notice of 2026-10-21 lists 27, 26.0.2, 25.0.4.1, 21.0.12.1, 17.0.20.1, 11.0.32.1 and 8 Update 503 (including 8 Update 503-perf) as targets, and gives no fixed version numbers. 27 is not in the OpenJDK table above, but it is a target on the Oracle side. Oracle's October CPU page could not be read.

[7] After updating, run step 1 again and confirm the number is higher than the limit in the step 2 table. A running service picks up the new build only after the JVM restarts.

Where the check goes wrong

  • The advisory limit means "and earlier". 21.0.12.1 is the last affected number, not a fixed one. A number that looks high is still affected if it is equal.
  • Sources write the 8 line differently. OpenJDK says 8u504 and earlier, while the IPA notice names Oracle Java SE 8 Update 503.
  • The highest scores in the advisory are CVE-2026-91415 in OpenJDK (2D, CVSS 7.0) and CVE-2026-43660 in OpenJFX (javafx/web, CVSS 7.5). A server without JavaFX is not exposed to the second one.

#openjdk#java#security-advisory#apt