VOOZH about

URL: https://www.ibm.com/support/pages/apar/IJ10490

⇱ IJ10490: AES/GCM CIPHER - AAD NOT RESET TO UN-INIT STATE AFTER DOFINAL( ) AND INIT( )


IJ10490: AES/GCM CIPHER - AAD NOT RESET TO UN-INIT STATE AFTER DOFINAL( ) AND INIT( )

APAR status

  • Closed as program error.

Error description

  • Error Message: N/A
    .
    Stack Trace: N/A
    .
    When the same AES/GCM cipher object is used to perform both the
    encryption and the decryption of a piece of data, the customer
    observed that if an AAD value with length=0 is supplied for
    decryption, then the decryption operation would unexpectedly
    succeed.
    

Local fix

Problem summary

  • The IBMJCEPlus provider code was failing to reset the AAD value
    to its uninitialized state within the AES/GCM cipher object
    state during init( ) processing and doFinal( ) processing, as
    dictated by the Cipher javadocs.
    The Cipher framework updateAAD( ) method discards any AAD values
    with length=0. Therefore, the AAD value supplied to the AES/GCM
    cipher object for decryption was being discarded, and the AAD
    value that had been supplied for encryption was retained and was
    reused for decryption.
    

Problem conclusion

  • The AES/GCM cipher code of the IBMJCEPlus provider has been
    modified to set the AAD value within the cipher object to its
    uninitialized state during init( ) and doFinal( ) processing.
    The GIT issue associated with this change is #160.
    The RTC Problem report associated with this change is 139433.
    The affected IBM JVM's are: 80sr5fp25
    The affected jar file is ibmjceplus.jar.
    The build level of the updated IBMJCEPlus jar file is: 20181011
    This build also includes support for DSA in IBMJCEPlusFIPS.
    .
    This APAR will be fixed in the following Java Releases:
     8 SR5 FP30 (8.0.5.30)
    .
    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

    IJ10490

  • Reported component name

    SECURITY

  • Reported component ID

    620700125

  • Reported release

    270

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-10-11

  • Closed date

    2018-11-28

  • Last modified date

    2018-11-28

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

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

  • Fixed component name

    SECURITY

  • Fixed component ID

    620700125

Applicable component levels

[{"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