[packages/openjdk17] Up to 17.0.21.0.3; drop eMudhra roots from cacerts (CVE-2026-91403)
arekm
arekm at pld-linux.org
Wed Oct 28 08:17:59 CET 2026
commit 1d6388e67e3797d8e776a1fafe58a9c87502a0e3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Oct 28 00:02:12 2026 +0100
Up to 17.0.21.0.3; drop eMudhra roots from cacerts (CVE-2026-91403)
make-cacerts.sh | 25 +++++++++++++++++++++++++
openjdk17.spec | 7 ++++---
2 files changed, 29 insertions(+), 3 deletions(-)
---
diff --git a/openjdk17.spec b/openjdk17.spec
index 81f20be..2288206 100644
--- a/openjdk17.spec
+++ b/openjdk17.spec
@@ -25,12 +25,12 @@
Summary: Open-source implementation of the Java Platform, Standard Edition
Summary(pl.UTF-8): Wolnoźródłowa implementacja Java 17 SE
Name: openjdk17
-Version: 17.0.20
+Version: 17.0.21.0.3
Release: 1
License: GPL v2
Group: Development/Languages/Java
Source0: https://github.com/openjdk/jdk17u/archive/jdk-%{version}-ga/%{name}-%{version}.tar.gz
-# Source0-md5: 3f5337621e9f061c6b3c5f5853bc5326
+# Source0-md5: f669aa1e593a5c7bb85f2567492be28f
Source10: make-cacerts.sh
Patch0: no_optflags.patch
Patch1: x32.patch
@@ -38,7 +38,8 @@ URL: http://openjdk.java.net/
BuildRequires: alsa-lib-devel
BuildRequires: autoconf
BuildRequires: bash
-%{?with_cacerts:BuildRequires: ca-certificates-update}
+# cacerts is generated from it; 20260816-1 drops the compromised eMudhra roots (CVE-2026-91403)
+%{?with_cacerts:BuildRequires: ca-certificates-update >= 20260816-1}
BuildRequires: cups-devel
BuildRequires: elfutils-devel
BuildRequires: fontconfig-devel
diff --git a/make-cacerts.sh b/make-cacerts.sh
index b99cf2b..94e039b 100755
--- a/make-cacerts.sh
+++ b/make-cacerts.sh
@@ -25,6 +25,9 @@
# USA.
#
+# the spec runs this script through sh, which ignores -e on the #! line
+set -e
+
verbose=0
DESTDIR=
while [ $# -gt 0 ];
@@ -53,11 +56,33 @@ KEYTOOL=$PWD/tmp-bin/keytool
export LC_ALL=C.utf-8
+# Roots OpenJDK dropped from its own cacerts (JDK-8395690, CVE-2026-91403);
+# keep them out of ours even while the system bundle still trusts them.
+distrusted() {
+ fp=$($KEYTOOL -printcert -file "$1" | sed -n 's/^[[:space:]]*SHA256: //p')
+ if [ -z "$fp" ]; then
+ echo "E: cannot read the SHA256 fingerprint of $1" >&2
+ exit 1
+ fi
+ case "$fp" in
+ D7:A7:A0:FB:5D:7E:27:31:D7:71:E9:48:4E:BC:DE:F7:1D:5F:0C:3E:0A:29:48:78:2B:C8:3E:E0:EA:69:9E:F4) return 0;; # AAA Certificate Services
+ 86:A1:EC:BA:08:9C:4A:8D:3B:BE:27:34:C6:12:BA:34:1D:81:3E:04:3C:F9:E8:A8:62:CD:5C:57:A3:6B:BE:6B) return 0;; # emSign ECC Root CA - G3
+ 40:F6:AF:03:46:A9:9A:A1:CD:1D:55:5A:4E:9C:CE:62:C7:F9:63:46:03:EE:40:66:15:83:3D:C8:C8:D0:03:67) return 0;; # emSign Root CA - G1
+ 1A:A0:C2:70:9E:83:1B:D6:E3:B5:12:9A:00:BA:41:F7:EE:EF:02:08:72:F1:E6:50:4B:F0:F6:C3:F2:4F:3A:F3) return 0;; # emSign Root CA - G2
+ esac
+ return 1
+}
+
# Adds a certificate to the list of trusted ones.
# Adds the certificate to the cacerts file
add() {
CERT="$1"
NAME="$2"
+
+ if distrusted "$CERT"; then
+ echo " skipping distrusted '$CERT'"
+ return
+ fi
ALIAS="$(echo "$NAME" | sed -e 's/.\(crt|pem\)$//' -e 's/ /_/g' \
-e 's/[()]/=/g' -e 's/,/_/g')"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/openjdk17.git/commitdiff/1d6388e67e3797d8e776a1fafe58a9c87502a0e3
More information about the pld-cvs-commit
mailing list