IBM Support

IV74631: 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

    IV74631

  • Reported component name

    SECURITY

  • Reported component ID

    620700125

  • Reported release

    270

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-06-26

  • Closed date

    2015-06-26

  • Last modified date

    2015-06-26

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

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

    IV74632 IV74635

Fix information

  • Fixed component name

    SECURITY

  • Fixed component ID

    620700125

Applicable component levels

  • R270 PSY

       UP

  • R600 PSY

       UP

  • R260 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":"270","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
07 December 2020