Hello Klaus,
I tried to have a look at the dmesg line you supplied.
That leads to evp_enc.c, line 985.
That function shows up in a maybe similar crash in freerdp.
There it was caused by using some legacy algorithms, which seem
got disabled in libssl3.
Got this encrypted directory created with some older encfs version, some time ago?
If yes, can you remember which Debian release this might have been?
Kind regards,
Bernhard
(gdb) pipe info proc mapping | grep crypto
0x7f9795000000 0x7f97950c4000 0xc4000 0x0 r--p /usr/lib/x86_64-linux-gnu/libcrypto.so.3
0x7f97950c4000 0x7f979533d000 0x279000 0xc4000 r-xp /usr/lib/x86_64-linux-gnu/libcrypto.so.3
0x7f979533d000 0x7f979541b000 0xde000 0x33d000 r--p /usr/lib/x86_64-linux-gnu/libcrypto.so.3
0x7f979541b000 0x7f979547c000 0x61000 0x41b000 r--p /usr/lib/x86_64-linux-gnu/libcrypto.so.3
0x7f979547c000 0x7f979547f000 0x3000 0x47c000 rw-p /usr/lib/x86_64-linux-gnu/libcrypto.so.3
(gdb) find /b 0x7f97950c4000, 0x7f979533d000, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00, 0x41, 0x54, 0x41, 0x89, 0xf4, 0x55, 0x48, 0x89, 0xfd, 0x48, 0x81, 0xec, 0xa8, 0x00, 0x00, 0x00, 0x64, 0x48, 0x8b, 0x04, 0x25, 0x28, 0x00, 0x00, 0x00, 0x48, 0x89, 0x84, 0x24, 0x98, 0x00, 0x00, 0x00, 0x48, 0x8b, 0x07, 0x48, 0x83, 0x78, 0x78, 0x00, 0x0f, 0x84, 0xe1, 0x00, 0x00, 0x00, 0x66, 0x0f, 0xef, 0xc0, 0x48, 0x63, 0xc6, 0x48, 0x89, 0x44, 0x24
0x7f9795205fba
1 pattern found.
(gdb) b * (0x7f9795205fba + 42)
Breakpoint 1 at 0x7f9795205fe4: file ../crypto/evp/evp_enc.c, line 985.
(gdb) info b
Num Type Disp Enb Address What
1 breakpoint keep y 0x00007f9795205fe4 in EVP_CIPHER_CTX_set_key_length at ../crypto/evp/evp_enc.c:985
(gdb) disassemble EVP_CIPHER_CTX_set_key_length
Dump of assembler code for function EVP_CIPHER_CTX_set_key_length:
0x00007f9795205fc0 <+0>: push %r12
0x00007f9795205fc2 <+2>: mov %esi,%r12d
0x00007f9795205fc5 <+5>: push %rbp
0x00007f9795205fc6 <+6>: mov %rdi,%rbp
0x00007f9795205fc9 <+9>: sub $0xa8,%rsp
0x00007f9795205fd0 <+16>: mov %fs:0x28,%rax
0x00007f9795205fd9 <+25>: mov %rax,0x98(%rsp)
0x00007f9795205fe1 <+33>: mov (%rdi),%rax
0x00007f9795205fe4 <+36>: cmpq $0x0,0x78(%rax) <<<<<<<
0x00007f9795205fe9 <+41>: je 0x7f97952060d0 <EVP_CIPHER_CTX_set_key_length+272>
0x00007f9795205fef <+47>: pxor %xmm0,%xmm0
0x00007f9795205ff3 <+51>: movslq %esi,%rax
0x00007f9795205ff6 <+54>: mov %rax,0x38(%rsp)
.
https://sources.debian.org/src/openssl/3.0.4-2/crypto/evp/evp_enc.c/#L985
985 if (c->cipher->prov != NULL) {
Similar to
https://github.com/openssl/openssl/issues/14392 ?