[packages/openjdk25] Up to 25.0.5.0.3; drop eMudhra roots from cacerts (CVE-2026-91403)
arekm
arekm at pld-linux.org
Wed Oct 28 08:20:04 CET 2026
commit ebaa13394d25d7bf87293e0ef0ec9f3c8c946027
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Oct 28 00:04:03 2026 +0100
Up to 25.0.5.0.3; drop eMudhra roots from cacerts (CVE-2026-91403)
make-cacerts.sh | 25 +++++++++++++++++++++++++
openjdk25.spec | 7 ++++---
2 files changed, 29 insertions(+), 3 deletions(-)
---
diff --git a/openjdk25.spec b/openjdk25.spec
index 9df9bf6..540a692 100644
--- a/openjdk25.spec
+++ b/openjdk25.spec
@@ -30,12 +30,12 @@
Summary: Open-source implementation of the Java Platform, Standard Edition
Summary(pl.UTF-8): Wolnoźródłowa implementacja Java 25 SE
Name: openjdk25
-Version: 25.0.4
+Version: 25.0.5.0.3
Release: 1
License: GPL v2
Group: Development/Languages/Java
Source0: https://github.com/openjdk/jdk25u/archive/jdk-%{version}-ga/%{name}-%{version}.tar.gz
-# Source0-md5: 77ea8a6162a0850bc322e0b576e67dec
+# Source0-md5: a0569c783077f8b924d1cb4adc4f013a
Source10: make-cacerts.sh
Patch0: no_optflags.patch
Patch1: no_optflags_vardeps.patch
@@ -43,7 +43,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/openjdk25.git/commitdiff/ebaa13394d25d7bf87293e0ef0ec9f3c8c946027
More information about the pld-cvs-commit
mailing list