Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-7772

SIGSEGV on my_aes_encrypt_cbc when -DWITH_SSL=bundled

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.1.3
    • Fix Version/s: 10.1.4
    • Component/s: Encryption
    • Labels:
      None

      Description

      • Read/Write outside of buffer at memcpy(); yaSSL related
      • OPENSSL_assert(EVP_CIPHER_CTX_iv_length(&ctx.ctx) == iv_length); // ECB does not use IV, thus incorrect assertion

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              jplindst Jan Lindström added a comment -

              How to repeat:

              • Build with cmake . -DCMAKE_BUILD_TYPE=Debug -DWITH_SSL=bundled
              • ./mysql-test-run --vardir=/dev/shm innodb-page_encryption_log_encryption
              Show
              jplindst Jan Lindström added a comment - How to repeat: Build with cmake . -DCMAKE_BUILD_TYPE=Debug -DWITH_SSL=bundled ./mysql-test-run --vardir=/dev/shm innodb-page_encryption_log_encryption
              Hide
              jplindst Jan Lindström added a comment - - edited

              Added:

              • mysql-test/include/have_file_key_management_plugin.combinations ( to run with aes_cbc and aes_ecb)
              • mysql-test/include/have_openssl_ctr.combinations ( to run with aes_cbc, aes_ecb and aes_ctr)
              Show
              jplindst Jan Lindström added a comment - - edited Added: mysql-test/include/have_file_key_management_plugin.combinations ( to run with aes_cbc and aes_ecb) mysql-test/include/have_openssl_ctr.combinations ( to run with aes_cbc, aes_ecb and aes_ctr)
              Hide
              jplindst Jan Lindström added a comment -

              http://lists.askmonty.org/pipermail/commits/2015-March/007584.html

              InnoDB/XtraDB changes are trivial fixes for newer compilers (C++11).

              Show
              jplindst Jan Lindström added a comment - http://lists.askmonty.org/pipermail/commits/2015-March/007584.html InnoDB/XtraDB changes are trivial fixes for newer compilers (C++11).
              Hide
              jplindst Jan Lindström added a comment -

              No need to review InnoDB/XtraDB changes.

              Show
              jplindst Jan Lindström added a comment - No need to review InnoDB/XtraDB changes.
              Hide
              jplindst Jan Lindström added a comment -

              commit a3e68b4a558e1dd0ff61e497316cb6a32d3de410
              Author: Jan Lindström <jan.lindstrom@mariadb.com>
              Date: Fri Mar 13 14:18:07 2015 +0200

              MDEV-7772: SIGSEGV on my_aes_encrypt_cbc when -DWITH_SSL=bundled

              Two problems:

              • Read/Write outside of buffer at memcpy() because of incorrect parameters
                . OPENSSL_assert(EVP_CIPHER_CTX_iv_length(&ctx.ctx) == iv_length); // ECB does not use IV, thus incorrect assertion

              Added:
              mysql-test/include/encryption_algorithms.combinations to run tests with methods cbc, ecb and ctr in those systems where they are available (see suite.pm).

              Show
              jplindst Jan Lindström added a comment - commit a3e68b4a558e1dd0ff61e497316cb6a32d3de410 Author: Jan Lindström <jan.lindstrom@mariadb.com> Date: Fri Mar 13 14:18:07 2015 +0200 MDEV-7772 : SIGSEGV on my_aes_encrypt_cbc when -DWITH_SSL=bundled Two problems: Read/Write outside of buffer at memcpy() because of incorrect parameters . OPENSSL_assert(EVP_CIPHER_CTX_iv_length(&ctx.ctx) == iv_length); // ECB does not use IV, thus incorrect assertion Added: mysql-test/include/encryption_algorithms.combinations to run tests with methods cbc, ecb and ctr in those systems where they are available (see suite.pm).

                People

                • Assignee:
                  jplindst Jan Lindström
                  Reporter:
                  jplindst Jan Lindström
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: