Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-847

Out-of-bounds read in unpack_fields() via truncated field metadata packets

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 3.3.19, 3.4.9
    • 3.3.20, 3.4.10
    • Internal
    • None

    Description

      unpack_fields() in libmariadb/mariadb_lib.c parses 12 bytes of fixed-header metadata (charsetnr, length, type, flags, decimals) from each column descriptor without validating that the row data contains at least 12 bytes. A malicious or rogue server can send a truncated field descriptor payload ($0\text{--}11$ bytes) and trigger out-of-bounds reads on the client process.Originally reported by: Aisle Research

      Originally reported by Aisle Research

      Attachments

        Issue Links

          Activity

            People

              georg Georg Richter
              georg Georg Richter
              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.