Thread View: linux.debian.bugs.dist
7 messages
7 total messages
Started by Bjørn Mork
Mon, 23 Nov 2026 11:40
Bug#1154991: mariadb-client: ssl-verify-server-cert=false is broken
Author: Bjørn Mork
Date: Mon, 23 Nov 2026 11:40
Date: Mon, 23 Nov 2026 11:40
96 lines
5328 bytes
5328 bytes
Package: mariadb-client Version: 1:11.8.9+ds-0+deb13u1 Severity: normal Dear Maintainer, I cannot use TLS against servers with unverifiable certficates after upgrading to 1:11.8.9+ds-0+deb13u1 The client complains about Hostname verification regardless of the command line or config file setting: bjorn@brego:~$ mysql --ssl-verify-server-cert=false ERROR 2026 (HY000): TLS/SSL error: Hostname verification failed bjorn@brego:~$ mysql --ssl-verify-server-cert=true ERROR 2026 (HY000): TLS/SSL error: Hostname verification failed bjorn@brego:~$ mysql --version mysql from 11.8.9-MariaDB, client 15.2 for debian-linux-gnu (aarch64) using EditLine wrapper Note that the failure is expected with "ssl-verify-server-cert" enabled. The certificate presented by the server does not have a hostname i neither CommonName nor SAN Same commands using the previous trixie package (1:11.8.6-0+deb13u1): bjorn@brego:~$ mysql --ssl-verify-server-cert=true ERROR 2026 (HY000): TLS/SSL error: Hostname verification failed bjorn@brego:~$ mysql --ssl-verify-server-cert=false Welcome to the MariaDB monitor. Commands end with ; or \g. Your MySQL connection id is 121800 Server version: 26.10.0-cloud MySQL Enterprise - Cloud Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. root@10.2.1.11 ((none)) W> \s -------------- mysql from 11.8.6-MariaDB, client 15.2 for debian-linux-gnu (aarch64) using EditLine wrapper Connection id: 121800 Current database: Current user: root@brego.sub01201311080.m.oraclevcn.com SSL: Cipher in use is TLS_AES_128_GCM_SHA256, cert is UNKNOWN Current pager: stdout Using outfile: '' Using delimiter: ; Server: MySQL Server version: 26.10.0-cloud MySQL Enterprise - Cloud Protocol version: 10 Connection: 10.2.1.11 via TCP/IP Server characterset: utf8mb4 Db characterset: utf8mb4 Client characterset: utf8mb4 Conn. characterset: utf8mb4 TCP port: 3306 Uptime: 25 days 5 hours 24 min 48 sec Threads: 6 Questions: 11118815 Slow queries: 0 Opens: 37924 Flush tables: 3 Open tables: 1433 Queries per second avg: 5.101 -------------- -- System Information: Debian Release: 13.8 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: arm64 (aarch64) Kernel: Linux 6.12.118+deb13-arm64 (SMP w/4 CPU threads) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages mariadb-client depends on: ii debianutils 5.23.2 ii libc6 2.41-12+deb13u4.1 ii libconfig-inifiles-perl 3.000003-3+deb13u1 ii libgcc-s1 14.2.0-19 ii libpcre2-posix3 10.46-1~deb13u3 ii libssl3t64 3.5.9-1~deb13u1 ii libstdc++6 14.2.0-19 ii mariadb-client-core 1:11.8.9+ds-0+deb13u1 ii perl 5.40.1-6+deb13u1 ii zlib1g 1:1.3.dfsg+really1.3.1-1+deb13u1 Versions of packages mariadb-client recommends: pn libdbd-mariadb-perl | libdbd-mysql-perl <none> pn libdbi-perl <none> ii libterm-readkey-perl 2.38-2+b4 mariadb-client suggests no packages. -- no debconf information
Bug#1154991: mariadb-client: ssl-verify-server-cert=false is broken
Author: Bjørn Mork
Date: Mon, 23 Nov 2026 15:30
Date: Mon, 23 Nov 2026 15:30
54 lines
6261 bytes
6261 bytes
Package: mariadb-client
Version: 1:11.8.9+ds-0+deb13u1
Followup-For: Bug #1154991
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Dear Maintainer,
My initial report missed an important condition for reproducing the
bug. I had
ssl-ca=/home/bjorn/mysql-ca.pem
in ~/.my.cnf. This prevents
ssl-verify-server-cert=false
from having any effect in 11.8.9+ds. This is an upstream regression
from 11.8.6 caused by:
bjorn@canardo:/mnt/storage/sbuild/deb/mariadb-server$ git diff upstream/11.8.6..upstream/11.8.9+ds libmariadb/libmariadb/ma_tls.c
diff --git a/libmariadb/libmariadb/ma_tls.c b/libmariadb/libmariadb/ma_tls.c
index 615723a54fd3..440082413731 100644
- --- a/libmariadb/libmariadb/ma_tls.c
+++ b/libmariadb/libmariadb/ma_tls.c
@@ -115,7 +115,12 @@ int ma_pvio_tls_verify_server_cert(MARIADB_TLS *ctls, unsigned int flags)
/* Skip peer certificate verification */
if (mysql->options.extension->tls_allow_invalid_server_cert &&
- - (!mysql->options.extension->tls_fp && !mysql->options.extension->tls_fp_list))
+ (!mysql->options.extension->tls_fp &&
+ !mysql->options.extension->tls_fp_list &&
+ !mysql->options.extension->ssl_crl &&
+ !mysql->options.extension->ssl_crlpath &&
+ !mysql->options.ssl_ca &&
+ !mysql->options.ssl_capath))
{
/* Since OpenSSL implementation sets status during TLS handshake
we need to clear verification status */
@@ -269,7 +274,6 @@ static my_bool ma_pvio_tls_compare_fp(MARIADB_TLS *ctls,
if (!ma_tls_get_finger_print(ctls, hash_type, fp, fp_len))
return 1;
- - p= (char *)cert_fp;
c = fp;
for (p = (char*)cert_fp; p < cert_fp + cert_fp_len; c++, p += 2)
Bjørn
- -- System Information:
Debian Release: 13.8
APT prefers stable-updates
APT policy: (700, 'stable-updates'), (700, 'stable-security'), (700, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.12.118+deb13-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages mariadb-client depends on:
ii debianutils 5.23.2
ii libc6 2.41-12+deb13u5
ii libconfig-inifiles-perl 3.000003-3+deb13u1
ii libgcc-s1 14.2.0-19
ii libpcre2-posix3 10.46-1~deb13u3
ii libssl3t64 3.5.9-1~deb13u1
ii libstdc++6 14.2.0-19
ii mariadb-client-core 1:11.8.9+ds-0+deb13u1
ii perl 5.40.1-6+deb13u1
ii zlib1g 1:1.3.dfsg+really1.3.1-1+deb13u1
Versions of packages mariadb-client recommends:
ii libdbd-mysql-perl 4.053-1
ii libdbi-perl 1.656-1~deb13u1
ii libterm-readkey-perl 2.38-2+b4
mariadb-client suggests no packages.
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
iGwEAREKACwWIQR3fjfc8EF8nPbC0aDXSuqSjBsiyQUCawRXqw4cYmpvcm5AbW9y
ay5ubwAKCRDXSuqSjBsiyT9LAJ4mDsPxJQpvTkRd1r7M8+tqvMxUvgCfdrh3ZjRd
uhlqADOmC1Zb5LoCWP0=
=Ab6W
-----END PGP SIGNATURE-----
Bug#1154991: [debian-mysql] Bug#1154991: mariadb-client: ssl-verify-server-cert=false is broken
Author: Otto Kekäläinen
Date: Mon, 23 Nov 2026 16:40
Date: Mon, 23 Nov 2026 16:40
17 lines
3539 bytes
3539 bytes
Hi,
This is potentially related to this item in the changelog
(https://tracker.debian.org/media/packages/m/mariadb/changelog-111.8.9ds-0deb13u1):
* Backport upstream patch to fix CONC-821 (Closes: #1139473, #1141671,
#1144671)
I wonder why none of the original reporters had any follow-up and why
we haven't received any bug reports on this in Debian unstable/testing
in all these months since 1:11.8.9+ds-2 was uploaded. Perhaps nobody
else had the use case of connecting to a MySQL Server with the MariaDB
Client.
Can you try to reproduce this on a Debian unstable machine/container
and tell me if the issue is reproducible there too? Or if it only
affects this 1:11.8.9+ds-0+deb13u1 in Trixie?
Bug#1154991: [debian-mysql] Bug#1154991: mariadb-client: ssl-verify-server-cert=false is broken
Author: Bjørn Mork
Date: Mon, 23 Nov 2026 18:40
Date: Mon, 23 Nov 2026 18:40
87 lines
5607 bytes
5607 bytes
Otto Kekäläinen <otto@debian.org> writes:
> Hi,
>
> This is potentially related to this item in the changelog
> (https://tracker.debian.org/media/packages/m/mariadb/changelog-111.8.9ds-0deb13u1):
>
> * Backport upstream patch to fix CONC-821 (Closes: #1139473, #1141671,
> #1144671)
>
> I wonder why none of the original reporters had any follow-up and why
> we haven't received any bug reports on this in Debian unstable/testing
> in all these months since 1:11.8.9+ds-2 was uploaded. Perhaps nobody
> else had the use case of connecting to a MySQL Server with the MariaDB
> Client.
I assume the reason is that the issue depends on having "ssl-ca"
configured without actually doing any certificate validation. Which
I'll admit is pointless and probably rare configuration.
I was "lucky" enough to have a system configured like that for no good
reason, and that's why I noticed.
> Can you try to reproduce this on a Debian unstable machine/container
> and tell me if the issue is reproducible there too? Or if it only
> affects this 1:11.8.9+ds-0+deb13u1 in Trixie?
The issue is reproducible with mariadb-client from unstable:
frtest4:~# mysql --version
mysql from 11.8.9-MariaDB, client 15.2 for debian-linux-gnu (x86_64) using EditLine wrapper
frtest4:~# dpkg -S $(which mysql)
mariadb-client-core: /usr/bin/mysql
frtest4:~# apt policy mariadb-client-core
mariadb-client-core:
Installed: 1:11.8.9+ds-4
Candidate: 1:11.8.9+ds-4
Version table:
*** 1:11.8.9+ds-4 500
500 http://deb.debian.org/debian sid/main amd64 Packages
100 /var/lib/dpkg/status
frtest4:~# mysql --ssl=true --ssl-verify-server-cert=false --host=192.168.10.186 --user=remoteuser --password=$MPW test
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 23
Server version: 11.8.9-MariaDB-0+deb13u1 from Debian -- Please help get to 10k stars at https://github.com/MariaDB/Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [test]> ^DBye
frtest4:~# mysql --ssl=true --ssl-verify-server-cert=false --ssl-ca=/tmp/ca.crt --host=192.168.10.186 --user=remoteuser --password=$MPW test
ERROR 2026 (HY000): TLS/SSL error: Hostname verification failed
Here using a mariadb-server from trixie, with dummy certificates
generated like this:
openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -keyout ca.key -out ca.crt -days 16 -noenc -subj "/CN=foo CA"
openssl ecparam -name prime256v1 -genkey -noout -out server.key
openssl req -new -key server.key -out server.csr -subj "/CN=foo server"
openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt -days 14 -sha256
Bjørn
Bug#1154991: [debian-mysql] Bug#1154991: mariadb-client: ssl-verify-server-cert=false is broken
Author: Otto Kekäläinen
Date: Tue, 24 Nov 2026 04:30
Date: Tue, 24 Nov 2026 04:30
11 lines
3339 bytes
3339 bytes
Thanks for confirming this also affects the 11.8.9 in Debian unstable. There is a new version being prepared at https://salsa.debian.org/mariadb-team/mariadb-server/-/merge_requests/192 Can you easily download the build artifacts from https://salsa.debian.org/otto/mariadb-server/-/jobs/10700984, install them on your test system and check if 11.8.10 is still affected or if the upstream libmariadb3 changes there fixed it? If 11.8.10 is still affected we need to file an issue upstream at jira.mariadb.org.
Bug#1154991: [debian-mysql] Bug#1154991: mariadb-client: ssl-verify-server-cert=false is broken
Author: Bjørn Mork
Date: Tue, 24 Nov 2026 07:50
Date: Tue, 24 Nov 2026 07:50
46 lines
4193 bytes
4193 bytes
Otto Kekäläinen <otto@debian.org> writes: > There is a new version being prepared at > https://salsa.debian.org/mariadb-team/mariadb-server/-/merge_requests/192 > Can you easily download the build artifacts from > https://salsa.debian.org/otto/mariadb-server/-/jobs/10700984, install > them on your test system and check if 11.8.10 is still affected or if > the upstream libmariadb3 changes there fixed it? Looks like the new version works fine: frtest4:~# mysql --ssl-ca=/tmp/ca.crt --ssl-verify-server-cert=false --host=192.168.10.186 --user=remoteuser --password=$MPW test -e \\s -------------- mysql from 11.8.10-MariaDB, client 15.2 for debian-linux-gnu (x86_64) using EditLine wrapper Connection id: 39 Current database: test Current user: remoteuser@frtest4.lab.mork.no SSL: Cipher in use is TLS_AES_256_GCM_SHA384, cert is UNKNOWN Current pager: stdout Using outfile: '' Using delimiter: ; Server: MariaDB Server version: 11.8.9-MariaDB-0+deb13u1 from Debian -- Please help get to 10k stars at https://github.com/MariaDB/Server Protocol version: 10 Connection: 192.168.10.186 via TCP/IP Server characterset: utf8mb4 Db characterset: utf8mb4 Client characterset: utf8mb4 Conn. characterset: utf8mb4 TCP port: 3306 Uptime: 13 hours 36 min 42 sec Threads: 1 Questions: 138 Slow queries: 0 Opens: 19 Open tables: 12 Queries per second avg: 0.002 -------------- Thanks for the swift response and test cases! Bjørn
Bug#1154991: [debian-mysql] Bug#1154991: mariadb-client: ssl-verify-server-cert=false is broken
Author: Bjørn Mork
Date: Tue, 24 Nov 2026 08:00
Date: Tue, 24 Nov 2026 08:00
12 lines
3011 bytes
3011 bytes
FWIW, I took at quick look at the upstream changes between 11.8.9 and 11.8.10. The problem is known upstream: https://jira.mariadb.org/browse/CONC-854 And was fixed by this partial revert in 11.8.10: https://github.com/mariadb-corporation/mariadb-connector-c/commit/be67a4fc1e0493913732df90e562f122bff9dfe3 Bjørn
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads