Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-38038

Potential Memory Leak Observation after upgrading glibc

    XMLWordPrintable

Details

    • Bug
    • Status: Needs Feedback (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.6.22
    • None
    • Memory management
    • Ubuntu 22.04.5 LTS


    Description

      We noticed that upon doing an upgrade to glibc to 2.35-0ubuntu3.11 on an Ubuntu 22.05.5 VM that it displayed issues with memory management. This resulted in an eventual OOM kill action by the kernel and mariadb was targeted (obv).

      The memory usage pattern shows a significant change after restarting mariadb, which reloaded the updated library. This particular upgrade was the first one that included a patch for CVE-2025-8058 which indicates malloc as the target. https://ubuntu.com/security/CVE-2025-8058

      The evidence for this being an issue with mariadb is anecdotal (hence suggestion of this being a potential issue) since we were not capturing process specific metrics. However, we figured it good enough that we should provide the information if others experience the same.

      This issue is still present on the affected systems.

      This server is part of a replicated cluster of 2 servers, the one here being the primary. As a result of the OOM kill, the second server was activated as primary write server and displays the same memory consumption pattern. We have this under observation right now.

      We will provide updates as they become available.

      $ ldd --version
      ldd (Ubuntu GLIBC 2.35-0ubuntu3.11) 2.35
      
      

      Start-Date: 2025-10-02  06:49:04
      Commandline: apt-get dist-upgrade -Vu
       
      Install: linux-image-5.15.0-157-generic:amd64 (5.15.0-157.167, automatic), linux-headers-5.15.0-157:amd64 (5.15.0-157.167, automatic), linux-tools-5.15.0-157-generic:amd64 (5.15.0-157.167, automatic), linux-modules-5.15.0-157-generic:amd64 (5.15.0-157.167, automatic), linux-tools-5.15.0-157:amd64 (5.15.0-157.167, automatic), linux-modules-extra-5.15.0-157-generic:amd64 (5.15.0-157.167, automatic), linux-headers-5.15.0-157-generic:amd64 (5.15.0-157.167, automatic)
      Upgrade: dpkg:amd64 (1.21.1ubuntu2.3, 1.21.1ubuntu2.6), libcurl4:amd64 (7.81.0-1ubuntu1.20, 7.81.0-1ubuntu1.21), linux-tools-common:amd64 (5.15.0-153.163, 5.15.0-157.167), bind9-host:amd64 (1:9.18.30-0ubuntu0.22.04.2, 1:9.18.39-0ubuntu0.22.04.1), linux-virtual:amd64 (5.15.0.153.153, 5.15.0.157.155), libcurl3-gnutls:amd64 (7.81.0-1ubuntu1.20, 7.81.0-1ubuntu1.21), linux-headers-generic:amd64 (5.15.0.153.153, 5.15.0.157.155), linux-image-virtual:amd64 (5.15.0.153.153, 5.15.0.157.155), landscape-common:amd64 (23.02-0ubuntu1~22.04.4, 23.02-0ubuntu1~22.04.6), libxml2:amd64 (2.9.13+dfsg-1ubuntu0.8, 2.9.13+dfsg-1ubuntu0.9), libmysqlclient21:amd64 (8.0.43-0ubuntu0.22.04.1, 8.0.43-0ubuntu0.22.04.2), linux-generic:amd64 (5.15.0.153.153, 5.15.0.157.155), libc6:amd64 (2.35-0ubuntu3.10, 2.35-0ubuntu3.11), locales:amd64 (2.35-0ubuntu3.10, 2.35-0ubuntu3.11), libssl3:amd64 (3.0.2-0ubuntu1.19, 3.0.2-0ubuntu1.20), open-vm-tools:amd64 (2:12.3.5-3~ubuntu0.22.04.2, 2:12.3.5-3~ubuntu0.22.04.3), bind9-dnsutils:amd64 (1:9.18.30-0ubuntu0.22.04.2, 1:9.18.39-0ubuntu0.22.04.1), systemd-hwe-hwdb:amd64 (249.11.5, 249.11.6), linux-image-generic:amd64 (5.15.0.153.153, 5.15.0.157.155), linux-tools-generic:amd64 (5.15.0.153.153, 5.15.0.157.155), linux-headers-virtual:amd64 (5.15.0.153.153, 5.15.0.157.155), bind9-libs:amd64 (1:9.18.30-0ubuntu0.22.04.2, 1:9.18.39-0ubuntu0.22.04.1), libc-bin:amd64 (2.35-0ubuntu3.10, 2.35-0ubuntu3.11), wazuh-agent:amd64 (4.12.0-1, 4.13.1-1), ruby-rubygems:amd64 (3.3.5-2ubuntu1.1, 3.3.5-2ubuntu1.2), needrestart:amd64 (3.5-5ubuntu2.4, 3.5-5ubuntu2.5), curl:amd64 (7.81.0-1ubuntu1.20, 7.81.0-1ubuntu1.21), openssl:amd64 (3.0.2-0ubuntu1.19, 3.0.2-0ubuntu1.20)
      End-Date: 2025-10-02  06:49:57
       
      Start-Date: 2025-10-02  06:50:37
      Commandline: apt autoremove
      Remove: linux-image-5.15.0-153-generic:amd64 (5.15.0-153.163), linux-headers-5.15.0-153:amd64 (5.15.0-153.163), linux-tools-5.15.0-153-generic:amd64 (5.15.0-153.163), linux-modules-5.15.0-153-generic:amd64 (5.15.0-153.163), linux-tools-5.15.0-153:amd64 (5.15.0-153.163), linux-modules-extra-5.15.0-153-generic:amd64 (5.15.0-153.163), linux-headers-5.15.0-153-generic:amd64 (5.15.0-153.163)
      End-Date: 2025-10-02  06:50:41
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            cp-chris Chris Pickett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.