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

OOB read in parser constructor on malformed Rows_log_event

    XMLWordPrintable

Details

    • Can result in hang or crash

    Description

      When parsing a Rows_log_event (v1 or v2; Write, Update, or Delete), the buffer size is not checked before reading the “number of columns” field, similar to Format_description_log_event::common_header_len before MDEV-40365.

      This means a (somehow) malformed Rows_log_event can trigger a memory error from an out-of-bounds read – although odds are slim since it’s only at most 9 bytes.
      It won’t lead to memory disclosure in the absence of a memory-error crash, either, because unless it’s 0, the fields following this number are checked against the passed buffer range.

      Attachments

        Issue Links

          Activity

            People

              ParadoxV5 Jimmy Hú
              ParadoxV5 Jimmy Hú
              Jimmy Hú Jimmy Hú
              Brandon Nesterenko Brandon Nesterenko
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.