How to mitigate CVE-2025-21502 in Carbon Black EDR server using adoptium temurin java (jdk-11.0.26).
Carbon Black EDR Server: 7.8.1 and below.
openjdk-11 is now end of life and not all sources are providing patches. RedHat has patch available for ELS-1 subscriber only. At the time of writing this article, there was one medium vulnerability made public against openjdk-11 (CVE-2025-21502)
EDR 7.9.0 server is moving to JDK 17 but in the interim, alternative repository can be used to mitigate open vulnerability on 11.0.25 version (available as latest via most of the providers)
In order to have EDR standalone server or cluster use java-11.0.26, we could use openjdk provided by adoptium:
https://adoptium.net/temurin/release-notes/?version=jdk-11.0.26+4
It includes commit against mentioned CVE-2025-21502 (JDK-8330045)
commit: commit: https://github.com/openjdk/jdk11u-dev/commit/7cee7d037e664fcf84f58d1ae22f96520ef62cff
To use this version of openjdk, follow below steps:
[root@linux tmp]# cat /etc/yum.repos.d/adoptium.repo
[Adoptium]
name=Adoptium
baseurl=https://packages.adoptium.net/artifactory/rpm/rocky/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=https://packages.adoptium.net/artifactory/api/gpg/key/public
NOTE: The baseurl above needs to be modified to one of the supported OS from list provided here: https://packages.adoptium.net/ui/native/rpm/ |
yum install temurin-11-jdk # (This needs to be done on all nodes in case of cluster)
[root@linux tmp]# /usr/lib/jvm/temurin-11-jdk//bin/java -version
openjdk version "11.0.26" 2025-01-21
OpenJDK Runtime Environment Temurin-11.0.26+4 (build 11.0.26+4)
OpenJDK 64-Bit Server VM Temurin-11.0.26+4 (build 11.0.26+4, mixed mode)
[root@linux tmp]# cat /etc/cb/cb.conf | grep CbJavaHome
#CbJavaHome=/usr/lib/jvm/jre-11/
CbJavaHome=/usr/lib/jvm/temurin-11-jdk/