#31819·openssl

openssl speed -bytes 'len' -mb causes a segmentation fault or a halt when 'len' is small

Author: KazKobaraCreated Jul 1, 2026Updated Sep 16, 2026
Labelsissue: bug reporttriaged: bug

'len' < 408 causes a segmentation fault:

bash
$ ./util/wrap.pl -fips ./apps/openssl speed -bytes 407 -mb -seconds 1 -evp aes-256-cbc-hmac-sha256
Doing AES-256-CBC-HMAC-SHA256 ops for 1s on 407 size blocks:
$ echo  $?
139

which comes from aesni_multi_cbc_encrypt(ciph_d, &ctx->ks, n4x) in the following part of providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c (as of 49057cbe)

c
        do {
            sha256_multi_block(mctx, edges, n4x);
            aesni_multi_cbc_encrypt(ciph_d, &ctx->ks, n4x);

and aesni_multi_cbc_encrypt_avx from ./libcrypto.so.4.

Some of 408 <= 'len' < 913 halt their commands, which comes from sha256_multi_block(mctx, hash_d, n4x) in providers/implementations/ciphers/cipher_aes_cbc_hmac_sha256_hw.c (as of 49057cbe).