IBM Support

IV74635: PKCS11IMPL SECURITY PROVIDER PROBLEMS WITH MEMORY MANAGEMENT AFT ER CIPHER EXCEPTION THROWN

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: When pkcs11 memory management is enabled
    (default), sporadic <Object<PIPE>Key<PIPE>Session> is invalid
    messages are seen doing Cipher operations following a Cipher
    operation that generates an exception (e.g. ShortBufferException
    or IllegalBlockSizeException).
    The problem does not occur if the Cipher exceptions are not
    thrown.
    Problem is seen with Java 6, 7 and 8.
    .
    Stack Trace: N/A
    .
    

Local fix

Problem summary

  • When pkcs11 memory management is enabled (default), sporadic
    <Object<PIPE>Key<PIPE>Session> is invalid messages are seen
    doing Cipher operations following a Cipher operation that
    generates an exception (e.g. ShortBufferException or
    IllegalBlockSizeException).
    The problem does not occur if the Cipher exceptions are not
    thrown.
    Problem is seen with Java 6, 7 and 8.
    

Problem conclusion

  • A hardware session handle was incorrectly being closed following
    the exception thrown.  This hardware session handle was again
    being closed during the cleanup of the Java session object.
    The code has been modified to ensure that only the Java session
    class will clean up the hardware session handle when PKCS#11
    memory management is enabled.
    .
    This APAR will be fixed in the following Java Releases:
       8    SR1 FP10  (8.0.1.10)
       6    SR16 FP7  (6.0.16.7)
       5.0  SR16 FP13 (5.0.16.13)
       7 R1 SR3 FP10  (7.1.3.10)
       7    SR9 FP 10 (7.0.9.10)
       6 R1 SR8 FP7   (6.1.8.7)
    .
    Contact your IBM Product's Service Team for these Service
    Refreshes and Fix Packs.
    For those running stand-alone, information about the available
    Service Refreshes and Fix Packs can be found at:
               https://www.ibm.com/developerworks/java/jdk/
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV74635

  • Reported component name

    JAVA 5 SECURITY

  • Reported component ID

    620500125

  • Reported release

    500

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-06-26

  • Closed date

    2015-06-27

  • Last modified date

    2015-06-27

  • APAR is sysrouted FROM one or more of the following:

    IV74631

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    JAVA 5 SECURITY

  • Fixed component ID

    620500125

Applicable component levels

  • R500 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"5.0","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
07 December 2020