Fixed in https://salsa.debian.org/mariadb-team/mariadb-server/-/commit/48ef3c2dcd2fde4e747852f5c3fda1fcc18f0e11 and full details in Bug#1112499. I will proceed to upload this to bookworm queue now and you can choose to release it to bookworm-proposed-updates if you approve.