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

a null pointer dereference in the my_decimal::to_binary() function, located in sql/my_decimal.cc at line 206.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Cannot Reproduce
    • 11.4.0
    • N/A
    • Server
    • None
    • ubuntu20.04, x86
    • Not for Release Notes

    Description

      This MariaDB vulnerability arises from a null pointer dereference in the my_decimal::to_binary() function, located in sql/my_decimal.cc at line 206. The crash occurs because this is nullptr, yet the function attempts to call my_decimal2decimal(this, &rounded) without checking for null. This issue can be triggered during sorting operations (filesort.cc) on decimal fields, potentially leading to a segmentation fault and denial-of-service (DoS) via crafted SQL input.

      Attachments

        Activity

          People

            Unassigned Unassigned
            yx yx
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

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