diff --git a/gitlab-ci.yml b/gitlab-ci.yml
index e5b3925e49d5..f9496fcdc80c 100644
--- a/gitlab-ci.yml
+++ b/gitlab-ci.yml
@@ -186,12 +186,10 @@ build-full:debian:12:
         BUILD_TYPE: release
         CC: gcc-12
         CXX: g++-12
-        # gcc 12.2.0 has a bug that triggers a false positive warning with ASan
-        # in release builds (see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105562).
-        # Disable the address sanitizer for now.
         MESON_OPTIONS: >-
           ${MESON_ALL_OPTIONS}
           -D b_sanitize=none
+          -D cpp_debugstl=false
       - ARCH: amd64
         CC: clang
         CXX: clang++
@@ -206,6 +204,8 @@ build-full:debian:12:
         MESON_OPTIONS: >-
           ${MESON_ALL_OPTIONS}
           ${MESON_CLANG_LIBCPP_OPTIONS}
+          -D b_sanitize=none
+          -D cpp_debugstl=false
           -D qcam=disabled
 
 build-full:debian:13:
