-
Bug
-
Resolution: Fixed
-
P3
-
openjdk8u292, 11.0.11
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8267507 | 11.0.13-oracle | Sean Coffey | P3 | Resolved | Fixed | b01 |
JDK-8269323 | 11.0.12.0.1-oracle | Sean Coffey | P3 | Resolved | Fixed | b01 |
JDK-8267774 | 11.0.12-oracle | Sean Coffey | P3 | Resolved | Fixed | b06 |
JDK-8267766 | openjdk8u302 | Severin Gehwolf | P3 | Resolved | Fixed | b05 |
The change for “JDK-8249906, CVE-2021-2163: Enhance opening JARs” exposes a problem with the caching of algorithms beyond what is being reported in
Exception in thread "main" java.security.NoSuchAlgorithmException: unrecognized algorithm name: SHA384WITHDSA
at java.base/sun.security.x509.AlgorithmId.get(AlgorithmId.java:448)
at java.base/javax.crypto.EncryptedPrivateKeyInfo.<init>(EncryptedPrivateKeyInfo.java:139)
at UseBCAlgo.main(UseBCAlgo.java:8)
The caching is also incorrect when you remove a provider after it was successfully loaded, if a provider is removed the algorithms it provides are still available.
Proposed fix is to clear out the AlgorithmId oidTable whenever signed jar verification completes or the Security providers change, which would cover the regression introduced by JDK-8249906 as well as these issues so that the available Algorithms will reflect the currently loaded providers. This fix is an addition to
- backported by
-
JDK-8267507 Unable to use algorithms from 3p providers
- Resolved
-
JDK-8267766 Unable to use algorithms from 3p providers
- Resolved
-
JDK-8267774 Unable to use algorithms from 3p providers
- Resolved
-
JDK-8269323 Unable to use algorithms from 3p providers
- Resolved
- duplicates
-
JDK-8266261 After 8u282 -> 8u292 update: "unrecognized algorithm name: PBEWithSHA1AndDESede"
- Closed
-
JDK-8266290 Jar Verification performs initializations that cause NoSuchAlgorithmException
- Closed
-
JDK-8270170 Cannot use '-Djava.system.class.loader' with class loader in signed JAR
- Closed
- relates to
-
JDK-8267397 AlgorithmId's OID cache is never refreshed
- Resolved
-
JDK-8268128 ProviderConfig deadlock in JDK 8u291
- Resolved
-
JDK-8266279 8u292 NoSuchAlgorithmException unrecognized algorithm name: PBEWithSHA1AndDESede
- Closed
-
JDK-8270170 Cannot use '-Djava.system.class.loader' with class loader in signed JAR
- Closed