JDK-8312306 : Add more Reference.reachabilityFence() calls to the security classes using Cleaner
Type:Enhancement
Component:security-libs
Sub-Component:javax.crypto
Affected Version:11,17,21,22
Priority:P3
Status:Resolved
Resolution:Fixed
OS:generic
CPU:generic
Submitted:2023-07-18
Updated:2025-06-03
Resolved:2023-08-31
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
Needs to update various Key impl classes with similar changes as in JDK-8311902.
Comments
Yes, this would affect older releases also.
06-09-2023
Valerie, I think this affects previous releases too, right? I marked down to 11, since I see Cleaner uses there too:
src/java.base//share/classes/com/sun/crypto/provider/PBEKey.java: // Use the cleaner to zero the key when no longer referenced
src/java.base//share/classes/com/sun/crypto/provider/PBEKey.java: CleanerFactory.cleaner().register(this,
src/java.base//share/classes/com/sun/crypto/provider/PBKDF2KeyImpl.java: // Use the cleaner to zero the key when no longer referenced
src/java.base//share/classes/com/sun/crypto/provider/PBKDF2KeyImpl.java: CleanerFactory.cleaner().register(this,
src/java.base//share/classes/com/sun/crypto/provider/DESedeKey.java: // Use the cleaner to zero the key when no longer referenced
src/java.base//share/classes/com/sun/crypto/provider/DESedeKey.java: CleanerFactory.cleaner().register(this,
src/java.base//share/classes/com/sun/crypto/provider/DESKey.java: // Use the cleaner to zero the key when no longer referenced
src/java.base//share/classes/com/sun/crypto/provider/DESKey.java: CleanerFactory.cleaner().register(this,