You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Daniel Becker (Jira)" <ji...@apache.org> on 2025/05/08 09:41:00 UTC

[jira] [Created] (IMPALA-14052) DCHECK with GCM in aes_decrypt()

Daniel Becker created IMPALA-14052:
--------------------------------------

             Summary: DCHECK with GCM in aes_decrypt()
                 Key: IMPALA-14052
                 URL: https://issues.apache.org/jira/browse/IMPALA-14052
             Project: IMPALA
          Issue Type: Bug
          Components: Backend
            Reporter: Daniel Becker


If aes_decrypt() is called with GCM mode and a ciphertext that is shorter than AES_BLOCK_SIZE, Impala hits a DCHECK and crashes. Note that this input is invalid because the GCM tag is AES_BLOCK SIZE long, so the ciphertext should be at least this long, but we should return an error message instead of crashing.

The cause is that during decryption we deduct AES_BLOCK_SIZE from the length of the ciphertext to get the part without the GCM tag, and in the above case the length becomes negative.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org